Skip to content

Commit

Permalink
adding support for Composition resource type (Custom grouping) (faste…
Browse files Browse the repository at this point in the history
  • Loading branch information
AnalogJ authored Jan 11, 2023
1 parent ba333fc commit f903c38
Show file tree
Hide file tree
Showing 80 changed files with 18,420 additions and 876 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,5 @@ vendor
fasten.db
test.go
/.couchdb

config.dev.yaml
11 changes: 11 additions & 0 deletions backend/pkg/constants.go
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
package pkg

const (
ContextKeyTypeConfig string = "CONFIG"
ContextKeyTypeDatabase string = "REPOSITORY"
ContextKeyTypeLogger string = "LOGGER"

ContextKeyTypeAuthUsername string = "AUTH_USERNAME"
ContextKeyTypeAuthToken string = "AUTH_TOKEN"

FhirResourceTypeComposition string = "Composition"
)
1 change: 1 addition & 0 deletions backend/pkg/database/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ type DatabaseRepository interface {
AddResourceAssociation(ctx context.Context, source *models.SourceCredential, resourceType string, resourceId string, relatedSource *models.SourceCredential, relatedResourceType string, relatedResourceId string) error
RemoveResourceAssociation(ctx context.Context, source *models.SourceCredential, resourceType string, resourceId string, relatedSource *models.SourceCredential, relatedResourceType string, relatedResourceId string) error
GetFlattenedResourceGraph(ctx context.Context) ([]*models.ResourceFhir, []*models.ResourceFhir, error)
AddResourceComposition(ctx context.Context, compositionTitle string, resources []*models.ResourceFhir) error
//UpsertProfile(context.Context, *models.Profile) error
//UpsertOrganziation(context.Context, *models.Organization) error

Expand Down
257 changes: 254 additions & 3 deletions backend/pkg/database/mock/mock_database.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f903c38

Please sign in to comment.