FHIR Chat · Setting Profile Parents · shorthand

Stream: shorthand

Topic: Setting Profile Parents


view this post on Zulip Richard Kavanagh (Apr 06 2020 at 10:52):

If you have a project that has multiple dependencies

"dependencies": { "hl7.fhir.r4.core": "4.0.1", "hl7.fhir.us.core": "3.1.0" },
and then create a profile against a base resource that exists in both
Profile: MyPatient Parent: Patient

Which base definition will be used (by default) and how can you specify a particular version that should be used?

view this post on Zulip Jose Costa Teixeira (Apr 06 2020 at 11:08):

For specifying a particular version, should we be able to point to a profile's full URL?

view this post on Zulip Nick Freiter (Apr 06 2020 at 11:54):

@Richard Kavanagh in the case you specified, the hl7.fhir.r4.core version will be used, since it has an id of Patient, while the hl7.fhir.us.core version has an id of us-core-patient. So there actually isn't a name conflict between those dependencies in this case.

However, if you are in a situation with naming conflicts, and you want to be explicit about which profile to use, you can always use the URL of the profile as @Jose Costa Teixeira suggested.

view this post on Zulip Jose Costa Teixeira (Apr 06 2020 at 12:06):

@Nick Freiter I was not sure this was already there. You guys are quick/thorough :)

view this post on Zulip Chris Moesel (Apr 06 2020 at 13:18):

And if you're going to use the URL a lot, then you can always create an alias to the URL and use that everywhere instead.


Last updated: Apr 12 2022 at 19:14 UTC