Stream: shorthand
Topic: Assigning to a Profile's base elementDefinition
Jamie Jones (May 26 2021 at 15:30):
When defining a profile in FSH, to increase the value of generated 'resource content' tables and 'detailed description' pages, it would be nice to assign values to that profile's base elementDefinition entry. I don't see a way that FSH syntax allows this, as the base type is stripped from assignments (e.g Observation.code ^short is just code ^short).
I'd like to assign a "short" and "definition" to the first elementDefinition but elements in snapshot and differential can't be written to directly, Observation ^short isn't correct syntax due to the stripping and ^short doesn't exist as written either.
The end goal is to make the first line of the table and first entry in the detailed description of, for example http://hl7.org/fhir/us/mcode/2021MAY/StructureDefinition-mcode-tumor-size.html be specific to that profile rather than what is inherited from base Observation. This was possible via the old spreadsheet method (see, for example, http://hl7.org/fhir/uv/genomics-reporting/variant-definitions.html). Any thoughts?
Chris Moesel (May 26 2021 at 15:35):
Hi @Jamie Jones -- you can access the root element via the special . path. For example:
Profile: Profile
Parent: Patient
* . ^short = "My Profile on Patient"
* . ^definition = "Specific constraints on patient useful for Use Case A"
Chris Moesel (May 26 2021 at 15:36):
This is covered in the spec here: http://hl7.org/fhir/uv/shorthand/reference.html#caret-paths
Jamie Jones (May 26 2021 at 15:43):
thanks for the fast response @Chris Moesel ! That documentation is exactly what I needed and it builds properly :fishing:
Last updated: Apr 12 2022 at 19:14 UTC