Stream: shorthand
Topic: Setting Profile Parents
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?
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?
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.
Jose Costa Teixeira (Apr 06 2020 at 12:06):
@Nick Freiter I was not sure this was already there. You guys are quick/thorough :)
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