-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #193 from pieter-edelman-nictiz/TypeSliceCardinality
Add corner case check on type slice cardinality in derived profile
- Loading branch information
Showing
4 changed files
with
3,432 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<StructureDefinition xmlns="http://hl7.org/fhir"> | ||
<url value="https://example.org/fhir/StructureDefinition/slice-cardinality-base" /> | ||
<name value="SliceCardinalityBase" /> | ||
<status value="draft" /> | ||
<fhirVersion value="4.0.1" /> | ||
<kind value="resource" /> | ||
<abstract value="false" /> | ||
<type value="Observation" /> | ||
<baseDefinition value="http://hl7.org/fhir/StructureDefinition/Observation" /> | ||
<derivation value="constraint" /> | ||
<differential> | ||
<element id="Observation.effective[x]"> | ||
<path value="Observation.effective[x]" /> | ||
<min value="1" /> | ||
</element> | ||
</differential> | ||
</StructureDefinition> |
31 changes: 31 additions & 0 deletions
31
rX/snapshot-generation/slice-cardinality-derived-input.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<StructureDefinition xmlns="http://hl7.org/fhir"> | ||
<url value="https://example.org/fhir/StructureDefinition/slice-cardinality-derived-input" /> | ||
<name value="SliceCardinalityDerivedInput" /> | ||
<status value="draft" /> | ||
<fhirVersion value="4.0.1" /> | ||
<kind value="resource" /> | ||
<abstract value="false" /> | ||
<type value="Observation" /> | ||
<baseDefinition value="https://example.org/fhir/StructureDefinition/slice-cardinality-base" /> | ||
<derivation value="constraint" /> | ||
<differential> | ||
<element id="Observation.effective[x]"> | ||
<path value="Observation.effective[x]" /> | ||
<slicing> | ||
<discriminator> | ||
<type value="type" /> | ||
<path value="$this" /> | ||
</discriminator> | ||
<rules value="open" /> | ||
</slicing> | ||
</element> | ||
<element id="Observation.effective[x]:effectiveDateTime"> | ||
<path value="Observation.effective[x]" /> | ||
<sliceName value="effectiveDateTime" /> | ||
<type> | ||
<code value="dateTime" /> | ||
</type> | ||
</element> | ||
</differential> | ||
</StructureDefinition> |
Oops, something went wrong.