Merge pull request #67 from lmckenzi/Extension-snapshot-issue
New test for snapshot generation not exposing extensions
This commit is contained in:
commit
abba91bf99
|
@ -1,4 +1,4 @@
|
||||||
<snapshot-generation-tests>
|
<snapshot-generation-tests>
|
||||||
<test gen="true" id="t1">
|
<test gen="true" id="t1">
|
||||||
<rule text="The snapshot must have the same number of elements, in the same order, with matching paths" fhirpath="fixture('t1-output').snapshot.element.select(path) = fixture('patient').snapshot.element.select(path)"/>
|
<rule text="The snapshot must have the same number of elements, in the same order, with matching paths" fhirpath="fixture('t1-output').snapshot.element.select(path) = fixture('patient').snapshot.element.select(path)"/>
|
||||||
<rule text="The snapshot elements must be the same - check short description" fhirpath="fixture('t1-output').snapshot.element.all(aliasAs('A').short = fixture('patient').snapshot.element.where(path = alias('A').path).short)"/>
|
<rule text="The snapshot elements must be the same - check short description" fhirpath="fixture('t1-output').snapshot.element.all(aliasAs('A').short = fixture('patient').snapshot.element.where(path = alias('A').path).short)"/>
|
||||||
|
@ -220,6 +220,7 @@
|
||||||
<rule text="The element definition for value[x] quantity slice should have sliceName = 'Quantity'" fhirpath="fixture('t44-output').snapshot.element.where(id = 'Observation.value[x]:valueQuantity').check(exists(), 'no slice').sliceName = 'valueQuantity'"/>
|
<rule text="The element definition for value[x] quantity slice should have sliceName = 'Quantity'" fhirpath="fixture('t44-output').snapshot.element.where(id = 'Observation.value[x]:valueQuantity').check(exists(), 'no slice').sliceName = 'valueQuantity'"/>
|
||||||
<rule text="The element definition for value[x].value quantity slice should have sliceName = 'Quantity'" fhirpath="fixture('t44-output').snapshot.element.where(id = 'Observation.value[x]:valueQuantity.value').check(exists(), 'no slice').min = 1"/>
|
<rule text="The element definition for value[x].value quantity slice should have sliceName = 'Quantity'" fhirpath="fixture('t44-output').snapshot.element.where(id = 'Observation.value[x]:valueQuantity.value').check(exists(), 'no slice').min = 1"/>
|
||||||
</test>
|
</test>
|
||||||
|
<test gen="true" sort="true" id="t45" register="t45-defn"/>
|
||||||
<test gen="true" id="samply1"/>
|
<test gen="true" id="samply1"/>
|
||||||
<test gen="true" id="au1" include="au1a"/>
|
<test gen="true" id="au1" include="au1a"/>
|
||||||
<test gen="true" id="au2"/>
|
<test gen="true" id="au2"/>
|
||||||
|
|
|
@ -0,0 +1,48 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<StructureDefinition xmlns="http://hl7.org/fhir">
|
||||||
|
<id value="profile-claim"/>
|
||||||
|
<url value="http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-claim"/>
|
||||||
|
<name value="PASClaim"/>
|
||||||
|
<status value="draft"/>
|
||||||
|
<fhirVersion value="4.0.0"/>
|
||||||
|
<kind value="resource"/>
|
||||||
|
<abstract value="false"/>
|
||||||
|
<type value="Claim"/>
|
||||||
|
<baseDefinition value="http://hl7.org/fhir/StructureDefinition/Claim"/>
|
||||||
|
<derivation value="constraint"/>
|
||||||
|
<differential>
|
||||||
|
<element id="Claim">
|
||||||
|
<path value="Claim"/>
|
||||||
|
<isModifier value="false"/>
|
||||||
|
</element>
|
||||||
|
<element id="Claim.supportingInfo">
|
||||||
|
<path value="Claim.supportingInfo"/>
|
||||||
|
<slicing>
|
||||||
|
<discriminator>
|
||||||
|
<type value="pattern"/>
|
||||||
|
<path value="category"/>
|
||||||
|
</discriminator>
|
||||||
|
<rules value="open"/>
|
||||||
|
</slicing>
|
||||||
|
<isModifier value="false"/>
|
||||||
|
</element>
|
||||||
|
<element id="Claim.supportingInfo:RelatedCauses">
|
||||||
|
<path value="Claim.supportingInfo"/>
|
||||||
|
<sliceName value="RelatedCauses"/>
|
||||||
|
<isModifier value="false"/>
|
||||||
|
</element>
|
||||||
|
<element id="Claim.supportingInfo:RelatedCauses.category">
|
||||||
|
<path value="Claim.supportingInfo.category"/>
|
||||||
|
<type>
|
||||||
|
<code value="CodeableConcept"/>
|
||||||
|
</type>
|
||||||
|
<patternCodeableConcept>
|
||||||
|
<coding>
|
||||||
|
<system value="http://hl7.org/us/davinci-pas/CodeSystem/PASSupportingInfoType"/>
|
||||||
|
<code value="relatedCauses"/>
|
||||||
|
</coding>
|
||||||
|
</patternCodeableConcept>
|
||||||
|
<isModifier value="false"/>
|
||||||
|
</element>
|
||||||
|
</differential>
|
||||||
|
</StructureDefinition>
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,32 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<StructureDefinition xmlns="http://hl7.org/fhir">
|
||||||
|
<id value="profile-claim-update"/>
|
||||||
|
<url value="http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-claim-update"/>
|
||||||
|
<name value="PASClaimUpdate"/>
|
||||||
|
<status value="draft"/>
|
||||||
|
<fhirVersion value="4.0.0"/>
|
||||||
|
<kind value="resource"/>
|
||||||
|
<abstract value="false"/>
|
||||||
|
<type value="Claim"/>
|
||||||
|
<baseDefinition value="http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-claim"/>
|
||||||
|
<derivation value="constraint"/>
|
||||||
|
<differential>
|
||||||
|
<element id="Claim">
|
||||||
|
<path value="Claim"/>
|
||||||
|
<isModifier value="false"/>
|
||||||
|
</element>
|
||||||
|
<element id="Claim.supportingInfo">
|
||||||
|
<path value="Claim.supportingInfo"/>
|
||||||
|
<isModifier value="false"/>
|
||||||
|
</element>
|
||||||
|
<element id="Claim.supportingInfo.extension:SupportingInfoAbsent">
|
||||||
|
<path value="Claim.supportingInfo.extension"/>
|
||||||
|
<sliceName value="SupportingInfoAbsent"/>
|
||||||
|
<type>
|
||||||
|
<code value="Extension"/>
|
||||||
|
<profile value="http://hl7.org/fhir/StructureDefinition/data-absent-reason"/>
|
||||||
|
</type>
|
||||||
|
<isModifier value="false"/>
|
||||||
|
</element>
|
||||||
|
</differential>
|
||||||
|
</StructureDefinition>
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue