<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="path-lm-Patient" />
  <text>
    <status value="empty" />
    <div xmlns="http://www.w3.org/1999/xhtml">No narrative is provided for definitional resources. A human-readable rendering can be found in the implementation guide(s) where this resource is used.</div>
  </text>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-type-characteristics">
    <valueCode value="can-be-target" />
  </extension>
  <url value="http://medmij.nl/fhir/StructureDefinition/path-lm-Patient" />
  <identifier>
    <use value="official" />
    <system value="urn:ietf:rfc:3986" />
    <value value="urn:oid:2.16.528.1.1023.3.5.1" />
  </identifier>
  <name value="PathLmPatient" />
  <title value="Patient" />
  <status value="draft" />
  <publisher value="MedMij" />
  <contact>
    <name value="MedMij" />
    <telecom>
      <system value="email" />
      <value value="info@medmij.nl" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="The person whose human tissue is analyzed in a pathology study." />
  <purpose value="This LogicalModel represents the Patient Clinical Information Model (CIM) for patient use cases in the context of Pathology. It is based on the Patient CIM defined within MedMij Core." />
  <copyright value="Copyright and related rights waived via CC0, https://creativecommons.org/publicdomain/zero/1.0/. This does not apply to information from third parties, for example a medical terminology system. The implementer alone is responsible for identifying and obtaining any necessary licenses or authorizations to utilize third party IP in connection with the specification or otherwise." />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="mercurius-core-dataset-2-0" />
    <name value="Mercurius Core Dataset 2.0" />
  </mapping>
  <kind value="logical" />
  <abstract value="false" />
  <type value="http://medmij.nl/fhir/StructureDefinition/path-lm-Patient" />
  <baseDefinition value="http://medmij.nl/fhir/StructureDefinition/medmij-core-lm-Patient" />
  <derivation value="specialization" />
  <differential>
    <element id="path-lm-Patient">
      <path value="path-lm-Patient" />
      <definition value="The person whose human tissue is analyzed in a pathology study." />
    </element>
    <element id="path-lm-Patient.NameInformation">
      <path value="path-lm-Patient.NameInformation" />
      <min value="1" />
    </element>
    <element id="path-lm-Patient.NameInformation.FirstNames">
      <path value="path-lm-Patient.NameInformation.FirstNames" />
      <max value="0" />
    </element>
    <element id="path-lm-Patient.NameInformation.Initials">
      <path value="path-lm-Patient.NameInformation.Initials" />
      <definition value="Initials of the patient in capitals, divided by dots." />
      <alias value="Voorletters" />
      <min value="1" />
      <mapping>
        <identity value="mercurius-core-dataset-2-0" />
        <map value="mercurius-core-rubriek-9" />
        <comment value="voorletters" />
      </mapping>
    </element>
    <element id="path-lm-Patient.NameInformation.GivenName">
      <path value="path-lm-Patient.NameInformation.GivenName" />
      <max value="0" />
    </element>
    <element id="path-lm-Patient.NameInformation.NameUsage">
      <path value="path-lm-Patient.NameInformation.NameUsage" />
      <max value="0" />
    </element>
    <element id="path-lm-Patient.NameInformation.LastName">
      <path value="path-lm-Patient.NameInformation.LastName" />
      <min value="1" />
    </element>
    <element id="path-lm-Patient.NameInformation.LastName.Prefix">
      <path value="path-lm-Patient.NameInformation.LastName.Prefix" />
      <mapping>
        <identity value="mercurius-core-dataset-2-0" />
        <map value="mercurius-core-rubriek-6" />
        <comment value="vvnaamman" />
      </mapping>
      <mapping>
        <identity value="mercurius-core-dataset-2-0" />
        <map value="mercurius-core-rubriek-8" />
        <comment value="vvnaamvrouw" />
      </mapping>
    </element>
    <element id="path-lm-Patient.NameInformation.LastName.LastName">
      <path value="path-lm-Patient.NameInformation.LastName.LastName" />
      <mapping>
        <identity value="mercurius-core-dataset-2-0" />
        <map value="mercurius-core-rubriek-5" />
        <comment value="naamman" />
      </mapping>
      <mapping>
        <identity value="mercurius-core-dataset-2-0" />
        <map value="mercurius-core-rubriek-7" />
        <comment value="naamvrouw" />
      </mapping>
    </element>
    <element id="path-lm-Patient.NameInformation.LastNamePartner">
      <path value="path-lm-Patient.NameInformation.LastNamePartner" />
      <max value="0" />
    </element>
    <element id="path-lm-Patient.NameInformation.Titles">
      <path value="path-lm-Patient.NameInformation.Titles" />
      <max value="0" />
    </element>
    <element id="path-lm-Patient.AddressInformation">
      <path value="path-lm-Patient.AddressInformation" />
      <max value="1" />
    </element>
    <element id="path-lm-Patient.AddressInformation.Street">
      <path value="path-lm-Patient.AddressInformation.Street" />
      <mapping>
        <identity value="mercurius-core-dataset-2-0" />
        <map value="mercurius-core-rubriek-16" />
        <comment value="straat" />
      </mapping>
    </element>
    <element id="path-lm-Patient.AddressInformation.HouseNumber">
      <path value="path-lm-Patient.AddressInformation.HouseNumber" />
      <mapping>
        <identity value="mercurius-core-dataset-2-0" />
        <map value="mercurius-core-rubriek-17" />
        <comment value="huisnummer" />
      </mapping>
    </element>
    <element id="path-lm-Patient.AddressInformation.HouseNumberLetter">
      <path value="path-lm-Patient.AddressInformation.HouseNumberLetter" />
      <max value="0" />
    </element>
    <element id="path-lm-Patient.AddressInformation.HouseNumberAddition">
      <path value="path-lm-Patient.AddressInformation.HouseNumberAddition" />
      <max value="0" />
    </element>
    <element id="path-lm-Patient.AddressInformation.HouseNumberIndication">
      <path value="path-lm-Patient.AddressInformation.HouseNumberIndication" />
      <max value="0" />
    </element>
    <element id="path-lm-Patient.AddressInformation.Postcode">
      <path value="path-lm-Patient.AddressInformation.Postcode" />
      <comment value="Dutch postal codes contain 4 numerical characters, a space and 2 letters in uppercase (_nnnn AA_). Codes attain values between 1000 and 9999. If the postal code is unknown, the dummy _0000 XX_ is used in Mercurius.&#xA;&#xA;Foreign postal codes are expressed in free text. If the postal code is unknown, the dummy _0009 XX_ is used in Mercurius.&#xA;&#xA;If the postal code retrieved from Mercurius (i.e. either _postcode_, mercurius-core-rubriek-18, or _postcodebuitenland_, mercurius-core-rubriek-20) attains one of the dummy values indicated above, this element SHALL be omitted." />
      <mapping>
        <identity value="mercurius-core-dataset-2-0" />
        <map value="mercurius-core-rubriek-18" />
        <comment value="postcode" />
      </mapping>
      <mapping>
        <identity value="mercurius-core-dataset-2-0" />
        <map value="mercurius-core-rubriek-20" />
        <comment value="postcodebuitenland" />
      </mapping>
    </element>
    <element id="path-lm-Patient.AddressInformation.PlaceOfResidence">
      <path value="path-lm-Patient.AddressInformation.PlaceOfResidence" />
      <mapping>
        <identity value="mercurius-core-dataset-2-0" />
        <map value="mercurius-core-rubriek-19" />
        <comment value="woonplaats" />
      </mapping>
    </element>
    <element id="path-lm-Patient.AddressInformation.Municipality">
      <path value="path-lm-Patient.AddressInformation.Municipality" />
      <max value="0" />
    </element>
    <element id="path-lm-Patient.AddressInformation.Country">
      <path value="path-lm-Patient.AddressInformation.Country" />
      <max value="0" />
    </element>
    <element id="path-lm-Patient.AddressInformation.AdditionalInformation">
      <path value="path-lm-Patient.AddressInformation.AdditionalInformation" />
      <max value="0" />
    </element>
    <element id="path-lm-Patient.AddressInformation.AddressType">
      <path value="path-lm-Patient.AddressInformation.AddressType" />
      <max value="0" />
    </element>
    <element id="path-lm-Patient.ContactInformation">
      <path value="path-lm-Patient.ContactInformation" />
      <max value="0" />
    </element>
    <element id="path-lm-Patient.PatientIdentificationNumber">
      <path value="path-lm-Patient.PatientIdentificationNumber" />
      <max value="0" />
    </element>
    <element id="path-lm-Patient.DateOfBirth">
      <path value="path-lm-Patient.DateOfBirth" />
      <comment value="If the birth date retrieved from Mercurius (i.e. _geboortedatum_, mercurius-core-rubriek-11) has the form YY-MM-DD, the birth century (i.e. _geboorteeeuw_, mercurius-core-rubriek-13) SHALL be used to convert this date to a date of the form YYYY-MM-DD." />
      <min value="1" />
      <mapping>
        <identity value="mercurius-core-dataset-2-0" />
        <map value="mercurius-core-rubriek-11" />
        <comment value="geboortedatum" />
      </mapping>
      <mapping>
        <identity value="mercurius-core-dataset-2-0" />
        <map value="mercurius-core-rubriek-13" />
        <comment value="geboorteeeuw (implicit)" />
      </mapping>
    </element>
    <element id="path-lm-Patient.Gender">
      <path value="path-lm-Patient.Gender" />
      <comment value="In Mercurius, codes from the MercuriusGender code system are used to convey the gender of the patient." />
      <min value="1" />
      <binding>
        <strength value="required" />
        <description value="Use ConceptMap MercuriusGender-to-GeslachtCodelijst to translate terminology from the Mercurius model to zib terminology in ValueSet GeslachtCodelijst." />
        <valueSet value="http://decor.nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.40.2.0.1.1--20200901000000">
          <extension url="http://hl7.org/fhir/StructureDefinition/11179-permitted-value-conceptmap">
            <valueCanonical value="http://medmij.nl/fhir/ConceptMap/MercuriusGender-to-GeslachtCodelijst" />
          </extension>
        </valueSet>
      </binding>
      <mapping>
        <identity value="mercurius-core-dataset-2-0" />
        <map value="mercurius-core-rubriek-10" />
        <comment value="geslacht" />
      </mapping>
    </element>
    <element id="path-lm-Patient.MultipleBirthIndicator">
      <path value="path-lm-Patient.MultipleBirthIndicator" />
      <max value="0" />
    </element>
    <element id="path-lm-Patient.DeathIndicator">
      <path value="path-lm-Patient.DeathIndicator" />
      <max value="0" />
    </element>
    <element id="path-lm-Patient.DateOfDeath">
      <path value="path-lm-Patient.DateOfDeath" />
      <max value="0" />
    </element>
    <element id="path-lm-Patient.BirthPlace">
      <path value="path-lm-Patient.BirthPlace" />
      <short value="Birth place" />
      <definition value="Place of birth." />
      <comment value="The place of birth is part of the CIS personalia as delivered by the CIS-GBA." />
      <alias value="Geboorteplaats" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <mapping>
        <identity value="mercurius-core-dataset-2-0" />
        <map value="mercurius-core-rubriek-14" />
        <comment value="geboorteplaats" />
      </mapping>
    </element>
    <element id="path-lm-Patient.BirthCountry">
      <path value="path-lm-Patient.BirthCountry" />
      <short value="Birth country" />
      <definition value="Country of birth." />
      <alias value="Geboorteland" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <mapping>
        <identity value="mercurius-core-dataset-2-0" />
        <map value="mercurius-core-rubriek-15" />
        <comment value="geboorteland" />
      </mapping>
    </element>
  </differential>
</StructureDefinition>