Merge pull request #67 from lmckenzi/Extension-snapshot-issue

New test for snapshot generation not exposing extensions
This commit is contained in:
Grahame Grieve 2019-08-01 08:10:22 +10:00 committed by GitHub
commit abba91bf99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5227 additions and 1 deletions

View File

@ -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"/>

View File

@ -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

View File

@ -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>