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

Canonical FHIR Resource Enum #240

Closed
aivajoe opened this issue Aug 28, 2023 · 2 comments
Closed

Canonical FHIR Resource Enum #240

aivajoe opened this issue Aug 28, 2023 · 2 comments

Comments

@aivajoe
Copy link

aivajoe commented Aug 28, 2023

Is there a canonical enum representing the available FHIR resource types? I couldn't find it. Are implementers expected to roll their own lists? e.g. "Patient", "Practitioner", "PractitionerRole", ... and so on. Seems error-prone vs having a canonical enum from the protos.

Thank you.

@nickgeorge
Copy link
Collaborator

I think https://github.com/google/fhir/blob/master/proto/google/fhir/proto/r4/core/codes.proto#L3153 is a pretty good bet (assuming R4). This corresponds to the FHIR code system https://hl7.org/fhir/resource-types - which, bizarrely, I can't find on the fhir documentation, presumably because it was replaced in R5 with the valueset https://hl7.org/fhir/valueset-all-resource-types.html

@aivajoe
Copy link
Author

aivajoe commented Aug 29, 2023

@nickgeorge Thanks! Good catch.

@aivajoe aivajoe closed this as completed Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants