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

Unnecessary aliases for FHIR resources #113

Open
markkramerus opened this issue May 13, 2021 · 1 comment
Open

Unnecessary aliases for FHIR resources #113

markkramerus opened this issue May 13, 2021 · 1 comment

Comments

@markkramerus
Copy link

markkramerus commented May 13, 2021

GoFSH is defining unnecessary* aliases for base FHIR resources, e.g.:

Alias: $Identifier = https://hl7.org/fhir/StructureDefinition/Identifier
Alias: $Composition = https://hl7.org/fhir/StructureDefinition/Composition
Alias: $Endpoint = https://hl7.org/fhir/StructureDefinition/Endpoint
Alias: $HealthcareService = https://hl7.org/fhir/StructureDefinition/HealthcareService
Alias: $Observation = https://hl7.org/fhir/StructureDefinition/Observation
Alias: $PractitionerRole = https://hl7.org/fhir/StructureDefinition/PractitionerRole

One complicating factor is that this IG defines a profile named "Composition" that is based on Composition (really horrible style), so maybe this is necessary??

afourquet/us-odh@40c7487

@mint-thompson
Copy link
Collaborator

Unfortunately, I think these aliases are necessary. I verified that each of these aliases corresponds to a FHIR resource that shares a name with a resource defined in the IG:

  • Identifier: input/resources/structuredefinition/obf-datatype-Identifier-extension.json
  • Composition: input/resources/structuredefinition/obf-Composition.json
  • Endpoint: input/resources/structuredefinition/obf-Endpoint.json
  • HealthcareService: input/resources/structuredefinition/obf-HealthcareService.json
  • Observation: input/resources/structuredefinition/obf-Observation.json
  • PractitionerRole: input/resources/structuredefinition/obf-PractitionerRole.json

This behavior is expected based on the test case that asserts GoFSH should not resolve a URL to the name of a core FHIR resource if it shares a name with a local StructureDefinition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants