Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ResourceType for FHIR Engine data access APIs #1277

Closed
jingtang10 opened this issue Apr 4, 2022 · 0 comments · Fixed by #1274
Closed

Use ResourceType for FHIR Engine data access APIs #1277

jingtang10 opened this issue Apr 4, 2022 · 0 comments · Fixed by #1274
Assignees
Labels
type:enhancement New feature or request

Comments

@jingtang10
Copy link
Collaborator

Describe the Issue

Using class parameter (e.g. Patient::class.java) as the input of the data access API has certain issues:

  • app developer is able to use Resource::class.java which isn't legal because you cannot have a resource that isn't a concrete resource type
  • app developer is able to use MyPatient::class.java which isn't legal as it's not a FHIR type

As a result we are refactoring the data access APIs to use the ResourceType (HAPI FHIR lib) as the input parameter to specify the type of FHIR resource in the operations.

Would you like to work on the issue?
yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement New feature or request
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants