xml
<StructureDefinition xmlns="http://hl7.org/fhir">
<url value="https://IrisPatient.org/fhir/StructureDefinition/IrisPatient" />
<name value="IrisPatient" />
<status value="draft" />
<description value="This is a test patient for the Furore FHIR modelling training" />
<fhirVersion value="4.0.1" />
<kind value="resource" />
<abstract value="false" />
<type value="Patient" />
<baseDefinition value="http://hl7.org/fhir/StructureDefinition/Patient" />
<derivation value="constraint" />
<differential>
<element id="Patient.extension">
<path value="Patient.extension" />
<min value="1" />
</element>
<element id="Patient.extension:birthPlace">
<path value="Patient.extension" />
<sliceName value="birthPlace" />
<type>
<code value="Extension" />
<profile value="http://hl7.org/fhir/StructureDefinition/patient-birthPlace" />
</type>
<isModifier value="false" />
</element>
<element id="Patient.extension:irisExtension">
<path value="Patient.extension" />
<sliceName value="irisExtension" />
<min value="1" />
<max value="1" />
<type>
<code value="Extension" />
<profile value="https://IrisExtension.org/fhir/StructureDefinition/IrisExtension" />
</type>
<isModifier value="false" />
</element>
<element id="Patient.extension:occupation">
<path value="Patient.extension" />
<sliceName value="occupation" />
<short value="Occupation of the patient" />
<definition value="Occupation of the patient." />
<alias value="Work" />
<max value="1" />
<type>
<code value="Extension" />
<profile value="https://occupation.org/fhir/StructureDefinition/Occupation" />
</type>
<mustSupport value="false" />
<isModifier value="false" />
<binding>
<strength value="example" />
<description value="Occupations" />
<valueSet value="http://example/org/ValueSet/IrisOccupations" />
</binding>
</element>
<element id="Patient.identifier">
<path value="Patient.identifier" />
<slicing>
<discriminator>
<type value="value" />
<path value="system" />
</discriminator>
<description value="Omschrijving" />
<rules value="open" />
</slicing>
<definition value="Identifier(s) for this patient." />
</element>
<element id="Patient.identifier:HospitalIdentifier">
<path value="Patient.identifier" />
<sliceName value="HospitalIdentifier" />
<short value="This internal hospital identifier for this patient" />
<max value="1" />
</element>
<element id="Patient.identifier:HospitalIdentifier.system">
<path value="Patient.identifier.system" />
<min value="1" />
<fixedUri value="http://national.registry.org/ids" />
</element>
<element id="Patient.identifier:HospitalIdentifier.value">
<path value="Patient.identifier.value" />
<min value="1" />
</element>
<element id="Patient.identifier:BSN">
<path value="Patient.identifier" />
<sliceName value="BSN" />
<short value="Official identifier" />
<min value="1" />
<max value="1" />
</element>
<element id="Patient.name">
<path value="Patient.name" />
<min value="1" />
<type>
<code value="HumanName" />
<profile value="https://example.org/fhir/StructureDefinition/MyHumanName" />
</type>
</element>
<element id="Patient.telecom">
<path value="Patient.telecom" />
<slicing>
<discriminator>
<type value="value" />
<path value="use" />
</discriminator>
<rules value="open" />
</slicing>
</element>
<element id="Patient.telecom:homeCategory">
<path value="Patient.telecom" />
<sliceName value="homeCategory" />
<min value="1" />
<max value="1" />
</element>
<element id="Patient.telecom:homeCategory.value">
<path value="Patient.telecom.value" />
<min value="1" />
</element>
<element id="Patient.telecom:homeCategory.use">
<path value="Patient.telecom.use" />
<min value="1" />
<fixedCode value="home" />
</element>
<element id="Patient.telecom:workCategory">
<path value="Patient.telecom" />
<sliceName value="workCategory" />
<max value="1" />
</element>
<element id="Patient.telecom:workCategory.value">
<path value="Patient.telecom.value" />
<min value="1" />
</element>
<element id="Patient.telecom:workCategory.use">
<path value="Patient.telecom.use" />
<min value="1" />
<fixedCode value="work" />
</element>
<element id="Patient.birthDate">
<path value="Patient.birthDate" />
<min value="1" />
</element>
<element id="Patient.address">
<path value="Patient.address" />
<constraint>
<key value="Temp.Adress" />
<severity value="error" />
<human value="If the patient has a temporary address, the period this address is in use should be" />
<expression value="(use = 'temp') implies period.exists()" />
</constraint>
</element>
<element id="Patient.address.use">
<path value="Patient.address.use" />
<condition value="Temp.Adress" />
</element>
<element id="Patient.address.period">
<path value="Patient.address.period" />
<condition value="Temp.Adress" />
</element>
</differential>
</StructureDefinition>