Skip to content

Commit

Permalink
update to issue #2
Browse files Browse the repository at this point in the history
  • Loading branch information
ziegm committed Dec 8, 2020
1 parent 818b3cf commit b96dd01
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 13 deletions.
6 changes: 3 additions & 3 deletions input/examples/bundle/AlisExampleComplete43.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,18 @@
</source>

<focus>
<reference value="Bundle/Transaction"/>
<reference value="urn:uuid:cbb59175-ad00-4316-8f0f-0cf75a0214b6"/>
<type value="Bundle"/>
</focus>

</MessageHeader>
</resource>
</entry>

<entry>
<fullUrl value="http://fhir.ch/ig/ch-alis/Bundle/Transaction"/>
<fullUrl value="urn:uuid:cbb59175-ad00-4316-8f0f-0cf75a0214b6"/>
<resource>
<Bundle>
<id value="Transaction"/>
<type value="transaction"/>

<entry>
Expand Down
30 changes: 20 additions & 10 deletions input/resources/structuredefinition/ch-alis-message.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,6 @@
</slicing>
<min value="2"/>
</element>
<element id="Bundle.entry.fullUrl">
<path value="Bundle.entry.fullUrl"/>
<min value="1"/>
<constraint>
<key value="ch-alis-message-1"/>
<severity value="error"/>
<human value="The fullUrl must be an absolute URL server address or an URI for UUID/OID"/>
<expression value="startsWith('http') or startsWith('urn:uuid:') = true"/>
</constraint>
</element>

<element id="Bundle.entry:MessageHeader">
<path value="Bundle.entry" />
Expand All @@ -85,6 +75,16 @@
<min value="1" />
<max value="1" />
</element>
<element id="Bundle.entry:MessageHeader.fullUrl">
<path value="Bundle.entry.fullUrl"/>
<min value="1"/>
<constraint>
<key value="ch-alis-message-1"/>
<severity value="error"/>
<human value="The fullUrl for the MessageHeader as first entry must be an absolute URL server address"/>
<expression value="startsWith('http') = true"/>
</constraint>
</element>
<element id="Bundle.entry:MessageHeader.resource">
<path value="Bundle.entry.resource" />
<min value="1" />
Expand All @@ -101,6 +101,16 @@
<min value="1" />
<max value="1" />
</element>
<element id="Bundle.entry:Transaction.fullUrl">
<path value="Bundle.entry.fullUrl"/>
<min value="1"/>
<constraint>
<key value="ch-alis-message-2"/>
<severity value="error"/>
<human value="The fullUrl must be an absolute URL server address or an URI for UUID/OID"/>
<expression value="startsWith('http') or startsWith('urn:uuid:') = true"/>
</constraint>
</element>
<element id="Bundle.entry:Transaction.resource">
<path value="Bundle.entry.resource" />
<min value="1" />
Expand Down

0 comments on commit b96dd01

Please sign in to comment.