Skip to content

Instantly share code, notes, and snippets.

@mmsmits
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mmsmits/3a3e7ca67a31cbdbd0f5 to your computer and use it in GitHub Desktop.
Save mmsmits/3a3e7ca67a31cbdbd0f5 to your computer and use it in GitHub Desktop.
FHIR Slicing on extension with ValueCode as discriminator
<?xml version="1.0" encoding="UTF-8"?>
<element>
<path value="CarePlan.activity" />
<slicing>
<discriminator value="extension.valueCode" />
<ordered value="true" />
<rules value="closed" />
</slicing>
<definition>
<short value="Action to occur as part of plan" />
<formal value="Identifies a planned action to occur as part of the plan. For example, a medication to be used, lab tests to perform, self-monitoring, education, etc." />
<min value="0" />
<max value="5" />
<isModifier value="false" />
<mapping>
<identity value="rim" />
<map value=".outboundRelationship[typeCode=COMP].target" />
</mapping>
</definition>
</element>
<element>
<path value="CarePlan.activity" />
<name value="Opphold" />
<definition>
<short value="Action to occur as part of plan" />
<formal value="Identifies a planned action to occur as part of the plan. For example, a medication to be used, lab tests to perform, self-monitoring, education, etc." />
<min value="0" />
<max value="1" />
<isModifier value="false" />
<mapping>
<identity value="rim" />
<map value=".outboundRelationship[typeCode=COMP].target" />
</mapping>
</definition>
</element>
<element>
<path value="CarePlan.activity.extension.value/>
<name value="Code for the Opphold phase of the operation" />
<definition>
<short value="Code for the Opphold phase of the operation" />
<formal value="Code for the Opphold phase of the operation" />
<min value="1" />
<max value="1" />
<valueCode value="Opphold"/> <!-- this is the discriminator -->
<isModifier value="false" />
</definition>
</element>
<element>
<path value="CarePlan.activity" />
<name value="Forberedelse" />
<definition>
<short value="Action to occur as part of plan" />
<formal value="Identifies a planned action to occur as part of the plan. For example, a medication to be used, lab tests to perform, self-monitoring, education, etc." />
<min value="0" />
<max value="1" />
<isModifier value="false" />
<mapping>
<identity value="rim" />
<map value=".outboundRelationship[typeCode=COMP].target" />
</mapping>
</definition>
</element>
<element>
<path value="CarePlan.activity.extension.value/>
<name value="Code for the Opphold phase of the operation" />
<definition>
<short value="Code for the Opphold phase of the operation" />
<formal value="Code for the Opphold phase of the operation" />
<min value="1" />
<max value="1" />
<valueCode value="Forberedelse"/> <!-- this is the discriminator -->
<isModifier value="false" />
</definition>
</element>
<element>
<path value="CarePlan.activity" />
<name value="Anestesi" />
<definition>
<short value="Action to occur as part of plan" />
<formal value="Identifies a planned action to occur as part of the plan. For example, a medication to be used, lab tests to perform, self-monitoring, education, etc." />
<min value="0" />
<max value="1" />
<isModifier value="false" />
<mapping>
<identity value="rim" />
<map value=".outboundRelationship[typeCode=COMP].target" />
</mapping>
</definition>
</element>
<element>
<path value="CarePlan.activity.extension.value/>
<name value="Code for the Opphold phase of the operation" />
<definition>
<short value="Code for the Opphold phase of the operation" />
<formal value="Code for the Opphold phase of the operation" />
<min value="1" />
<max value="1" />
<valueCode value="Anestesi"/> <!-- this is the discriminator -->
<isModifier value="false" />
</definition>
</element>
<element>
<path value="CarePlan.activity" />
<name value="Knivtid" />
<definition>
<short value="Action to occur as part of plan" />
<formal value="Identifies a planned action to occur as part of the plan. For example, a medication to be used, lab tests to perform, self-monitoring, education, etc." />
<min value="0" />
<max value="1" />
<isModifier value="false" />
<mapping>
<identity value="rim" />
<map value=".outboundRelationship[typeCode=COMP].target" />
</mapping>
</definition>
</element>
<element>
<path value="CarePlan.activity.extension.value />
<name value="Code for the Opphold phase of the operation" />
<definition>
<short value="Code for the Opphold phase of the operation" />
<formal value="Code for the Opphold phase of the operation" />
<min value="1" />
<max value="1" />
<valueCode value="Knivtid"/> <!-- this is the discriminator -->
<isModifier value="false" />
</definition>
</element>
<element>
<path value="CarePlan.activity" />
<name value="Transport" />
<definition>
<short value="Action to occur as part of plan" />
<formal value="Identifies a planned action to occur as part of the plan. For example, a medication to be used, lab tests to perform, self-monitoring, education, etc." />
<min value="0" />
<max value="1" />
<isModifier value="false" />
<mapping>
<identity value="rim" />
<map value=".outboundRelationship[typeCode=COMP].target" />
</mapping>
</definition>
</element>
<element>
<path value="CarePlan.activity.extension.value />
<name value="Code for the Opphold phase of the operation" />
<definition>
<short value="Code for the Opphold phase of the operation" />
<formal value="Code for the Opphold phase of the operation" />
<min value="1" />
<max value="1" />
<valueCode value="Transport"/> <!-- this is the discriminator -->
<isModifier value="false" />
</definition>
</element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment