Stream: IG creation
Topic: type of root element in profiles
Richard Townley-O'Neill (Sep 04 2018 at 00:43):
In the tree view of resource the root element shows its name in the name column and has its base definition in the type column.
In the tree view of profiles created by the ig publisher the root element shows its type in the name column and has nothing in the type column.
Why?
from MedicationResource.png
from MedicationResource profile.png
Richard Townley-O'Neill (Sep 04 2018 at 01:12):
It might make profiling a tiny bit clearer if, for profiles, the name and type columns held the name and type of the profile, so in the example I gave the name would be "AUBasePrescription" and the type would be "MedicationRequest".
But such a change would probably cause more disruption than benefit.
Lloyd McKenzie (Sep 04 2018 at 02:01):
@Richard Townley-O'Neill, can you submit a change request?
Richard Townley-O'Neill (Sep 04 2018 at 03:11):
Michel Rutten (Sep 04 2018 at 10:32):
Shouldn't that be the other way around? The root element path remains equal to "MedicationRequest", but the type has been further constrained to "AUBasePrescription".
Richard Townley-O'Neill (Sep 04 2018 at 22:51):
The structure definition file for the profile contains
<name value="AUBasePrescription"/>
and
<type value="MedicationRequest"/>
and the names of the columns are "Name" and "Type".
Richard Townley-O'Neill (Sep 04 2018 at 22:54):
The full profile is at http://build.fhir.org/ig/hl7au/au-fhir-base/StructureDefinition-au-prescription.html
Lloyd McKenzie (Sep 04 2018 at 23:24):
The yellow box is only there for official releases. The footer is always there - including the CI build
Michel Rutten (Sep 05 2018 at 08:20):
@Richard Townley-O'Neill, indeed, however the profile type property refers to the base (root) type and the profile name property identifies the current type. The interpretation differs from the regular element type property, which describes the actual type of that element.
Richard Townley-O'Neill (Sep 05 2018 at 23:31):
Thanks @Michel Rutten . That makes sense. I was confused.
The names of elements are in element.path.
The types of elements are in element.type.
The root element of a structure has no type, only it children do.
The root element of profiles is displayed correctly.
Last updated: Apr 12 2022 at 19:14 UTC