adding patternIdentifier samples

This commit is contained in:
Oliver Egger 2019-05-30 12:03:23 +02:00
parent e3faaa5ccc
commit 6d94627465
9 changed files with 745 additions and 385 deletions

View File

@ -0,0 +1,12 @@
<Patient xmlns="http://hl7.org/fhir">
<id value="patient-patternidenitiferslice-bad"/>
<text>
<status value="generated"/>
<div xmlns="http://www.w3.org/1999/xhtml">
</div>
</text>
<identifier>
<system value="urn:oid:2.16.756.5.30.999999.1.2"/>
<value value="012/08.111111"/>
</identifier>
</Patient>

View File

@ -0,0 +1,22 @@
<Patient xmlns="http://hl7.org/fhir">
<id value="patient-patternidentifier-good"/>
<text>
<status value="generated"/>
<div xmlns="http://www.w3.org/1999/xhtml">
</div>
</text>
<identifier>
<type>
<coding>
<system value="http://terminology.hl7.org/CodeSystem/v2-0203" />
<code value="MR" />
</coding>
</type>
<system value="urn:oid:2.16.756.5.30.999999.1"/>
<value value="012/08.111111"/>
</identifier>
<identifier>
<system value="urn:oid:2.16.756.5.30.999999.1.2"/>
<value value="012/08.111111"/>
</identifier>
</Patient>

View File

@ -0,0 +1,18 @@
<Patient xmlns="http://hl7.org/fhir">
<id value="patient-patternidentifier-good"/>
<text>
<status value="generated"/>
<div xmlns="http://www.w3.org/1999/xhtml">
</div>
</text>
<identifier>
<type>
<coding>
<system value="http://terminology.hl7.org/CodeSystem/v2-0203" />
<code value="MR" />
</coding>
</type>
<system value="urn:oid:2.16.756.5.30.999999.1"/>
<value value="012/08.111111"/>
</identifier>
</Patient>

View File

@ -0,0 +1,47 @@
<?xml version="1.0" encoding="UTF-8"?>
<StructureDefinition xmlns="http://hl7.org/fhir">
<id value="patient-patternidentifier-profile" />
<url
value="http://hl7.org/fhir/StructureDefinition/patient-patternidentifier-profile" />
<name value="PatientConformProfile" />
<status value="draft" />
<description value="Test profile for patternIdentifier" />
<kind value="resource" />
<abstract value="false" />
<type value="Patient" />
<baseDefinition
value="http://hl7.org/fhir/StructureDefinition/Patient" />
<derivation value="constraint" />
<differential>
<element id="Patient">
<path value="Patient" />
</element>
<element id="Patient.identifier">
<path value="Patient.identifier" />
<short value="An identifier for this patient" />
<definition value="An identifier for this patient." />
<requirements
value="Patients are almost always assigned specific numerical identifiers." />
<min value="0" />
<max value="*" />
<base>
<path value="Patient.identifier" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Identifier" />
</type>
<patternIdentifier>
<type>
<coding>
<system
value="http://terminology.hl7.org/CodeSystem/v2-0203" />
<code value="MR" />
</coding>
</type>
<system value="urn:oid:2.16.756.5.30.999999.1" />
</patternIdentifier>
</element>
</differential>
</StructureDefinition>

View File

@ -0,0 +1,12 @@
<Patient xmlns="http://hl7.org/fhir">
<id value="patient-patternidenitifer-bad"/>
<text>
<status value="generated"/>
<div xmlns="http://www.w3.org/1999/xhtml">
</div>
</text>
<identifier>
<system value="urn:oid:2.16.756.5.30.999999.1.2"/>
<value value="012/08.111111"/>
</identifier>
</Patient>

View File

@ -0,0 +1,18 @@
<Patient xmlns="http://hl7.org/fhir">
<id value="patient-patternidentifier-good"/>
<text>
<status value="generated"/>
<div xmlns="http://www.w3.org/1999/xhtml">
</div>
</text>
<identifier>
<type>
<coding>
<system value="http://terminology.hl7.org/CodeSystem/v2-0203" />
<code value="MR" />
</coding>
</type>
<system value="urn:oid:2.16.756.5.30.999999.1"/>
<value value="012/08.111111"/>
</identifier>
</Patient>

View File

@ -0,0 +1,22 @@
<Patient xmlns="http://hl7.org/fhir">
<id value="patient-patternidentifierslice-goodmultiple"/>
<text>
<status value="generated"/>
<div xmlns="http://www.w3.org/1999/xhtml">
</div>
</text>
<identifier>
<type>
<coding>
<system value="http://terminology.hl7.org/CodeSystem/v2-0203" />
<code value="MR" />
</coding>
</type>
<system value="urn:oid:2.16.756.5.30.999999.1"/>
<value value="012/08.111111"/>
</identifier>
<identifier>
<system value="urn:oid:2.16.756.5.30.999999.1.2"/>
<value value="012/08.111111"/>
</identifier>
</Patient>

View File

@ -0,0 +1,48 @@
<?xml version="1.0" encoding="UTF-8"?>
<StructureDefinition xmlns="http://hl7.org/fhir">
<id value="patient-patternidentifierslice-profile" />
<url
value="http://hl7.org/fhir/StructureDefinition/patient-patternidentifier-profile" />
<name value="PatientConformProfile" />
<status value="draft" />
<description value="Test profile for slicing on Identifier with patternIdentifier" />
<kind value="resource" />
<abstract value="false" />
<type value="Patient" />
<baseDefinition
value="http://hl7.org/fhir/StructureDefinition/Patient" />
<derivation value="constraint" />
<differential>
<element id="Patient">
<path value="Patient" />
</element>
<element id="Patient.identifier">
<path value="Patient.identifier" />
<slicing>
<discriminator>
<type value="pattern" />
<path value="$this" />
</discriminator>
<rules value="open" />
</slicing>
</element>
<element id="Patient.identifier:MR">
<path value="Patient.identifier" />
<sliceName value="MR" />
<short value="An identifier for this patient" />
<definition value="An identifier for this patient." />
<min value="1" />
<max value="1" />
<patternIdentifier>
<type>
<coding>
<system
value="http://terminology.hl7.org/CodeSystem/v2-0203" />
<code value="MR" />
</coding>
</type>
<system value="urn:oid:2.16.756.5.30.999999.1" />
</patternIdentifier>
</element>
</differential>
</StructureDefinition>