FHIR Chat · IGPublisher replaces Reference(Any) with Reference(Resource) · IG creation

Stream: IG creation

Topic: IGPublisher replaces Reference(Any) with Reference(Resource)


view this post on Zulip Igor Sirkovich (Apr 16 2020 at 06:44):

@Grahame Grieve, @Lloyd McKenzie, I've noticed that whenever there is a Reference(Any) pointing to https://www.hl7.org/fhir/resourcelist.html in the FHIR resource, IGPublisher replaces it with Reference(Resource) pointing to http://hl7.org/fhir/r4/resource.html in the generated profile. I'm wondering if this is a known bug in IGPublisher.

Some examples:
MedicationDispense.supportingInformation at https://build.fhir.org/ig/scratch-fhir-profiles/CA-Core/profile-medicationdispense.html
MedicationRequest.supportingInformation at https://build.fhir.org/ig/HL7/US-Core-R4/StructureDefinition-us-core-medicationrequest.html
MedicationStatement.derivedFrom at https://build.fhir.org/ig/HL7/fhir-ips/StructureDefinition-MedicationStatement-uv-ips.html

view this post on Zulip Grahame Grieve (Apr 16 2020 at 06:46):

it's not a bug. Any is not a resource

view this post on Zulip Igor Sirkovich (Apr 16 2020 at 06:49):

I agree that Any is not a resource. But I'm not sure if pointing to the base resource (http://hl7.org/fhir/r4/resource.html) rather resourcelist is right.

view this post on Zulip Igor Sirkovich (Apr 16 2020 at 06:50):

Doesn't this imply that only base resource is allowed in this reference by the profile?

view this post on Zulip Grahame Grieve (Apr 16 2020 at 06:53):

since it's an abstract type, no.

view this post on Zulip Igor Sirkovich (Apr 16 2020 at 06:53):

Thank you!


Last updated: Apr 12 2022 at 19:14 UTC