<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="spark1707" />
  <meta>
    <versionId value="spark2112" />
    <lastUpdated value="2015-12-18T18:18:09.898+00:00" />
  </meta>
  <url value="http://premierinc.com/fhir/StructureDefinition/tdaf-patient" />
  <name value="TheraDoc Data Access Framework (TDAF) Patient Profile" />
  <display value="TDAF-Patient" />
  <status value="draft" />
  <publisher value="NA" />
  <contact>
    <telecom>
      <system value="other" />
      <value value="http://www.healthit.gov" />
    </telecom>
  </contact>
  <date value="2014-08-21" />
  <description value="Defines constraints and extensions on the patient resource for use in querying and retrieving patient demographic information." />
  <fhirVersion value="1.0.1" />
  <kind value="resource" />
  <constrainedType value="Patient" />
  <abstract value="false" />
  <base value="http://hl7.org/fhir/StructureDefinition/Patient" />
  <differential>
    <element>
      <path value="Patient" />
      <name value="TDAF-Patient" />
      <short value="Information about an individual or animal receiving health care services" />
      <definition value="Demographics and other administrative information about an individual or animal receiving care or other health-related services." />
      <alias value="SubjectOfCare Client Resident" />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Patient" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="Patient[classCode=PAT]" />
      </mapping>
      <mapping>
        <identity value="cda" />
        <map value="ClinicalDocument.recordTarget.patientRole" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="administrative.individual" />
      </mapping>
    </element>
    <element>
      <path value="Patient.extension" />
      <slicing>
        <discriminator value="url" />
        <rules value="openAtEnd" />
      </slicing>
    </element>
    <element>
      <path value="Patient.extension" />
      <name value="race" />
      <label value="race" />
      <short value="race" />
      <definition value="http://hl7.org/fhir/StructureDefinition/us-core-race" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/StructureDefinition/us-core-race" />
      </type>
      <mustSupport value="true" />
    </element>
    <element>
      <path value="Patient.extension" />
      <name value="Age" />
      <label value="Age" />
      <short value="Age of the Patient " />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/StructureDefinition/Age" />
      </type>
      <mustSupport value="true" />
    </element>
    <element>
      <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="1" />
      <max value="*" />
      <type>
        <code value="Identifier" />
      </type>
      <mustSupport value="true" />
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="PID-3" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="id" />
      </mapping>
      <mapping>
        <identity value="cda" />
        <map value=".id" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="id" />
      </mapping>
    </element>
    <element>
      <path value="Patient.identifier.type" />
      <short value="Description of identifier" />
      <definition value="Description of identifier." />
      <comments value="This element deals only with general categories of identifiers.  It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage.   Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type." />
      <requirements value="Allows users to make use of identifiers when the identifier system is not known." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <mustSupport value="true" />
      <isSummary value="true" />
      <binding>
        <strength value="extensible" />
        <description value="A coded type for an identifier that can be used to determine which identifier to use for a specific purpose." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/identifier-type" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="v2" />
        <map value="CX.5" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="Role.code or implied by context" />
      </mapping>
    </element>
    <element>
      <path value="Patient.identifier.system" />
      <short value="The namespace for the identifier" />
      <definition value="Establishes the namespace in which set of possible id values is unique." />
      <requirements value="There are many sequences of identifiers.  To perform matching, we need to know what sequence we're dealing with. The system identifies a particular sequence or set of unique identifiers." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="uri" />
      </type>
      <exampleUri value="http://www.acme.com/identifiers/patient or urn:ietf:rfc:3986 if the Identifier.value itself is a full uri" />
      <mustSupport value="true" />
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="CX.4 / EI-2-4" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="II.root or Role.id.root" />
      </mapping>
      <mapping>
        <identity value="servd" />
        <map value="./IdentifierType" />
      </mapping>
    </element>
    <element>
      <path value="Patient.identifier.value" />
      <short value="The value that is unique within the system." />
      <definition value="The value that is unique within the system." />
      <comments value="If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <exampleString value="123456" />
      <mustSupport value="true" />
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="CX.1 / EI.1" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)" />
      </mapping>
      <mapping>
        <identity value="servd" />
        <map value="./Value" />
      </mapping>
    </element>
    <element>
      <path value="Patient.active" />
      <short value="Whether this patient's record is in active use" />
      <definition value="Whether this patient record is in active use." />
      <comments value="Default is true. If a record is inactive, and linked to an active record, then future patient/record updates should occur on the other patient." />
      <requirements value="Need to be able to mark a patient record as not to be used because it was created in error." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="boolean" />
      </type>
      <defaultValueBoolean value="true" />
      <mustSupport value="true" />
      <isModifier value="true" />
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="statusCode" />
      </mapping>
      <mapping>
        <identity value="cda" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="status" />
      </mapping>
    </element>
    <element>
      <path value="Patient.name" />
      <short value="A name associated with the patient" />
      <definition value="A name associated with the individual." />
      <comments value="A patient may have multiple names with different uses or applicable periods. For animals, the name is a &quot;HumanName&quot; in the sense that is assigned and used by humans and has the same patterns." />
      <requirements value="Need to be able to track the patient by multiple names. Examples are your official name and a partner name." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="HumanName" />
      </type>
      <mustSupport value="true" />
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="PID-5, PID-9" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="name" />
      </mapping>
      <mapping>
        <identity value="cda" />
        <map value=".patient.name" />
      </mapping>
    </element>
    <element>
      <path value="Patient.name.extension" />
      <slicing>
        <discriminator value="url" />
        <rules value="openAtEnd" />
      </slicing>
    </element>
    <element>
      <path value="Patient.name.extension" />
      <name value="middle" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://simplifier.net/fhir/KYtest/StructureDefinition/spark1705" />
      </type>
      <mustSupport value="true" />
    </element>
    <element>
      <path value="Patient.name.text" />
      <short value="Text representation of the full name" />
      <definition value="A full text representation of the name." />
      <comments value="Can provide both a text representation and structured parts." />
      <requirements value="A renderable, unencoded form." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <mustSupport value="true" />
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="implied by XPN.11" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="./formatted" />
      </mapping>
    </element>
    <element>
      <path value="Patient.name.family" />
      <short value="Family name (often called 'Surname')" />
      <definition value="The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father." />
      <comments value="For family name, hyphenated names such as &quot;Smith-Jones&quot; are a single name, but names with spaces such as &quot;Smith Jones&quot; are broken into multiple parts." />
      <alias value="surname" />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="string" />
      </type>
      <mustSupport value="true" />
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="XPN.1" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="./part[partType = FAM]" />
      </mapping>
      <mapping>
        <identity value="servd" />
        <map value="./FamilyName" />
      </mapping>
    </element>
    <element>
      <path value="Patient.name.given" />
      <short value="Given names (not always 'first'). Includes middle names" />
      <definition value="Given name." />
      <comments value="If only initials are recorded, they may be used in place of the full name.  Not called &quot;first name&quot; since given names do not always come first." />
      <alias value="first name" />
      <alias value="middle name" />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="string" />
      </type>
      <mustSupport value="true" />
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="XPN.2 + XPN.3" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="./part[partType = GIV]" />
      </mapping>
      <mapping>
        <identity value="servd" />
        <map value="./GivenNames" />
      </mapping>
    </element>
    <element>
      <path value="Patient.name.suffix" />
      <short value="Parts that come after the name" />
      <definition value="Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="string" />
      </type>
      <mustSupport value="true" />
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="XPN/4" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="./part[partType = SFX]" />
      </mapping>
    </element>
    <element>
      <path value="Patient.telecom" />
      <short value="A contact detail for the individual" />
      <definition value="A contact detail (e.g. a telephone number or an email address) by which the individual may be contacted." />
      <comments value="A Patient may have multiple ways to be contacted with different uses or applicable periods.  May need to have options for contacting the person urgently and also to help with identification. The address may not go directly to the individual, but may reach another party that is able to proxy for the patient (i.e. home phone, or pet owner's phone)." />
      <requirements value="People have (primary) ways to contact them in some way such as phone, email." />
      <min value="0" />
      <max value="0" />
      <type>
        <code value="ContactPoint" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="PID-13, PID-14, PID-40" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="telecom" />
      </mapping>
      <mapping>
        <identity value="cda" />
        <map value=".telecom" />
      </mapping>
    </element>
    <element>
      <path value="Patient.telecom.system" />
      <short value="phone | fax | email | pager | other" />
      <definition value="Telecommunications form for contact point - what communications system is required to make use of the contact." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
      <condition value="cpt-2" />
      <mustSupport value="true" />
      <isSummary value="true" />
      <binding>
        <strength value="required" />
        <description value="Telecommunications form for contact point" />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/contact-point-system" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="v2" />
        <map value="XTN.3" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="./scheme" />
      </mapping>
      <mapping>
        <identity value="servd" />
        <map value="./ContactPointType" />
      </mapping>
    </element>
    <element>
      <path value="Patient.telecom.value" />
      <short value="The actual contact point details" />
      <definition value="The actual contact point details, in a form that is meaningful to the designated communication system (i.e. phone number or email address)." />
      <comments value="Additional text data such as phone extension numbers, or notes about use of the contact are sometimes included in the value." />
      <requirements value="Need to support legacy numbers that are not in a tightly controlled format." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <mustSupport value="true" />
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="XTN.1 (or XTN.12)" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="./url" />
      </mapping>
      <mapping>
        <identity value="servd" />
        <map value="./Value" />
      </mapping>
    </element>
    <element>
      <path value="Patient.telecom.use" />
      <short value="home | work | temp | old | mobile - purpose of this contact point" />
      <definition value="Identifies the purpose for the contact point." />
      <comments value="This is labeled as &quot;Is Modifier&quot; because applications should not mistake a temporary or old contact etc.for a current/permanent one. Applications can assume that a contact is current unless it explicitly says that it is temporary or old." />
      <requirements value="Need to track the way a person uses this contact, so a user can choose which is appropriate for their purpose." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
      <mustSupport value="true" />
      <isModifier value="true" />
      <isSummary value="true" />
      <binding>
        <strength value="required" />
        <description value="Use of contact point" />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/contact-point-use" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="v2" />
        <map value="XTN.2 - but often indicated by field" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="unique(./use)" />
      </mapping>
      <mapping>
        <identity value="servd" />
        <map value="./ContactPointPurpose" />
      </mapping>
    </element>
    <element>
      <path value="Patient.gender" />
      <short value="male | female | other | unknown" />
      <definition value="Administrative Gender - the gender that the patient is considered to have for administration and record keeping purposes." />
      <comments value="The gender may not match the biological sex as determined by genetics, or the individual's preferred identification. Note that for both humans and particularly animals, there are other legitimate possibilities than M and F, though the vast majority of systems and contexts only support M and F.  Systems providing decision support or enforcing business rules should ideally do this on the basis of Observations dealing with the specific gender aspect of interest (anatomical, chromosonal, social, etc.)  However, because these observations are infrequently recorded, defaulting to the administrative gender is common practice.  Where such defaulting occurs, rule enforcement should allow for the variation between administrative and biological, chromosonal and other gender aspects.  For example, an alert about a hysterectomy on a male should be handled as a warning or overrideable error, not a &quot;hard&quot; error." />
      <requirements value="Needed for identification of the individual, in combination with (at least) name and birth date. Gender of individual drives many clinical processes." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
      <mustSupport value="true" />
      <isSummary value="true" />
      <binding>
        <strength value="required" />
        <description value="The gender of a person used for administrative purposes." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/administrative-gender" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="v2" />
        <map value="PID-8" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="player[classCode=PSN|ANM and determinerCode=INSTANCE]/administrativeGender" />
      </mapping>
      <mapping>
        <identity value="cda" />
        <map value=".patient.administrativeGenderCode" />
      </mapping>
    </element>
    <element>
      <path value="Patient.birthDate" />
      <short value="The date of birth for the individual" />
      <definition value="The date of birth for the individual." />
      <comments value="At least an estimated year should be provided as a guess if the real DOB is unknown  There is a standard extension &quot;patient-birthTime&quot; available that should be used where Time is required (such as in maternaty/infant care systems)." />
      <requirements value="Age of the individual drives many clinical processes." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="date" />
      </type>
      <mustSupport value="true" />
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="PID-7" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="player[classCode=PSN|ANM and determinerCode=INSTANCE]/birthTime" />
      </mapping>
      <mapping>
        <identity value="cda" />
        <map value=".patient.birthTime" />
      </mapping>
      <mapping>
        <identity value="loinc" />
        <map value="21112-8" />
      </mapping>
    </element>
    <element>
      <path value="Patient.deceased[x]" />
      <short value="Indicates if the individual is deceased or not" />
      <definition value="Indicates if the individual is deceased or not." />
      <comments value="If there's no value in the instance it means there is no statement on whether or not the individual is deceased. Most systems will interpret the absence of a value as a sign of the person being alive." />
      <requirements value="The fact that a patient is deceased influences the clinical process. Also, in human communication and relation management it is necessary to know whether the person is alive." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="boolean" />
      </type>
      <type>
        <code value="dateTime" />
      </type>
      <mustSupport value="true" />
      <isModifier value="true" />
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="PID-30  (bool) and PID-29 (datetime)" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="player[classCode=PSN|ANM and determinerCode=INSTANCE]/deceasedInd, player[classCode=PSN|ANM and determinerCode=INSTANCE]/deceasedTime" />
      </mapping>
      <mapping>
        <identity value="cda" />
        <map value="n/a" />
      </mapping>
    </element>
    <element>
      <path value="Patient.address" />
      <short value="Addresses for the individual" />
      <definition value="Addresses for the individual." />
      <comments value="Patient may have multiple addresses with different uses or applicable periods." />
      <requirements value="May need to keep track of patient addresses for contacting, billing or reporting requirements and also to help with identification." />
      <min value="0" />
      <max value="0" />
      <type>
        <code value="Address" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="PID-11" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="addr" />
      </mapping>
      <mapping>
        <identity value="cda" />
        <map value=".addr" />
      </mapping>
    </element>
    <element>
      <path value="Patient.address.line" />
      <short value="Street name, number, direction &amp; P.O. Box etc." />
      <definition value="This component contains the house number, apartment number, street name, street direction,  P.O. Box number, delivery hints, and similar address information." />
      <requirements value="home | work | temp | old - purpose of this address." />
      <min value="1" />
      <max value="*" />
      <type>
        <code value="string" />
      </type>
      <exampleString value="137 Nowhere Street" />
      <mustSupport value="true" />
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="XAD.1 + XAD.2 (note: XAD.1 and XAD.2 have different meanings for a company address than for a person address)" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="AD.part[parttype = AL]" />
      </mapping>
      <mapping>
        <identity value="vcard" />
        <map value="street" />
      </mapping>
      <mapping>
        <identity value="servd" />
        <map value="./StreetAddress (newline delimitted)" />
      </mapping>
    </element>
    <element>
      <path value="Patient.address.city" />
      <short value="Name of city, town etc." />
      <definition value="The name of the city, town, village or other community or delivery center." />
      <alias value="Municpality" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <exampleString value="Erewhon" />
      <mustSupport value="true" />
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="XAD.3" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="AD.part[parttype = CTY]" />
      </mapping>
      <mapping>
        <identity value="vcard" />
        <map value="locality" />
      </mapping>
      <mapping>
        <identity value="servd" />
        <map value="./Jurisdiction" />
      </mapping>
    </element>
    <element>
      <path value="Patient.address.state" />
      <short value="Sub-unit of country (abbreviations ok)" />
      <definition value="Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (i.e. US 2 letter state codes)." />
      <alias value="Province" />
      <alias value="Territory" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <mustSupport value="true" />
      <isSummary value="true" />
      <binding>
        <strength value="required" />
        <description value="2 letter state list" />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/usps-state" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="v2" />
        <map value="XAD.4" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="AD.part[parttype = STA]" />
      </mapping>
      <mapping>
        <identity value="vcard" />
        <map value="region" />
      </mapping>
      <mapping>
        <identity value="servd" />
        <map value="./Region" />
      </mapping>
    </element>
    <element>
      <path value="Patient.address.postalCode" />
      <short value="Postal code for area" />
      <definition value="A postal code designating a region defined by the postal service." />
      <alias value="Zip" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <exampleString value="9132" />
      <condition value="inv-1" />
      <constraint>
        <key value="inv-1" />
        <severity value="error" />
        <human value="(Zip or Postal Code) SHALL be formatted as 99999[-9999] for US Zip or ZIP +4 codes or as A9A9A9 for Canadian postal codes." />
        <xpath value="f:matches(issued,[0-9]{5}(-[0-9]{4}){0,1} )" />
      </constraint>
      <mustSupport value="true" />
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="XAD.5" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="AD.part[parttype = ZIP]" />
      </mapping>
      <mapping>
        <identity value="vcard" />
        <map value="code" />
      </mapping>
      <mapping>
        <identity value="servd" />
        <map value="./PostalIdentificationCode" />
      </mapping>
    </element>
    <element>
      <path value="Patient.address.country" />
      <short value="Country (can be ISO 3166 3 letter code)" />
      <definition value="Country - a nation as commonly understood or generally accepted." />
      <comments value="ISO 3166 3 letter codes can be used in place of a full country name." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <mustSupport value="true" />
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="XAD.6" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="AD.part[parttype = CNT]" />
      </mapping>
      <mapping>
        <identity value="vcard" />
        <map value="country" />
      </mapping>
      <mapping>
        <identity value="servd" />
        <map value="./Country" />
      </mapping>
    </element>
    <element>
      <path value="Patient.maritalStatus" />
      <short value="Marital (civil) status of a patient" />
      <definition value="This field contains a patient's most recent marital (civil) status." />
      <requirements value="Most, if not all systems capture it." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <description value="The domestic partnership status of a person." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/marital-status" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="v2" />
        <map value="PID-16" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="player[classCode=PSN]/maritalStatusCode" />
      </mapping>
      <mapping>
        <identity value="cda" />
        <map value=".patient.maritalStatusCode" />
      </mapping>
    </element>
    <element>
      <path value="Patient.multipleBirth[x]" />
      <short value="Whether patient is part of a multiple birth" />
      <definition value="Indicates whether the patient is part of a multiple or indicates the actual birth order." />
      <requirements value="For disambiguation of multiple-birth children, especially relevant where the care provider doesn't meet the patient, such as labs." />
      <min value="0" />
      <max value="0" />
      <type>
        <code value="boolean" />
      </type>
      <type>
        <code value="integer" />
      </type>
      <mapping>
        <identity value="v2" />
        <map value="PID-24 (bool), PID-25 (integer)" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="player[classCode=PSN|ANM and determinerCode=INSTANCE]/multipleBirthInd,  player[classCode=PSN|ANM and determinerCode=INSTANCE]/multipleBirthOrderNumber" />
      </mapping>
      <mapping>
        <identity value="cda" />
        <map value="n/a" />
      </mapping>
    </element>
    <element>
      <path value="Patient.contact" />
      <short value="A contact party (e.g. guardian, partner, friend) for the patient" />
      <definition value="A contact party (e.g. guardian, partner, friend) for the patient." />
      <comments value="Contact covers all kinds of contact parties: family members, business contacts, guardians, caregivers. Not applicable to register pedigree and family ties beyond use of having contact." />
      <requirements value="Need to track people you can contact about the patient." />
      <min value="0" />
      <max value="0" />
      <type>
        <code value="BackboneElement" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="player[classCode=PSN|ANM and determinerCode=INSTANCE]/scopedRole[classCode=CON]" />
      </mapping>
      <mapping>
        <identity value="cda" />
        <map value="n/a" />
      </mapping>
    </element>
    <element>
      <path value="Patient.contact.relationship" />
      <short value="The kind of relationship" />
      <definition value="The nature of the relationship between the patient and the contact person." />
      <requirements value="Used to determine which contact person is the most relevant to approach, depending on circumstances." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <description value="Type of relationship" />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/patient-contact-relationship" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="v2" />
        <map value="NK1-7, NK1-3" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="code" />
      </mapping>
      <mapping>
        <identity value="cda" />
        <map value="n/a" />
      </mapping>
    </element>
    <element>
      <path value="Patient.contact.name" />
      <short value="A name associated with the contact person" />
      <definition value="A name associated with the contact person." />
      <requirements value="Contact persons need to be identified by name, but it is uncommon to need details about multiple other names for that contact person." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="HumanName" />
      </type>
      <mustSupport value="true" />
      <mapping>
        <identity value="v2" />
        <map value="NK1-2" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="name" />
      </mapping>
      <mapping>
        <identity value="cda" />
        <map value="n/a" />
      </mapping>
    </element>
    <element>
      <path value="Patient.contact.telecom" />
      <short value="A contact detail for the person" />
      <definition value="A contact detail for the person, e.g. a telephone number or an email address." />
      <comments value="Contact may have multiple ways to be contacted with different uses or applicable periods.  May need to have options for contacting the person urgently, and also to help with identification." />
      <requirements value="People have (primary) ways to contact them in some way such as phone, email." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="ContactPoint" />
      </type>
      <mustSupport value="true" />
      <mapping>
        <identity value="v2" />
        <map value="NK1-5, NK1-6, NK1-40" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="telecom" />
      </mapping>
      <mapping>
        <identity value="cda" />
        <map value="n/a" />
      </mapping>
    </element>
    <element>
      <path value="Patient.contact.address" />
      <short value="Address for the contact person" />
      <definition value="Address for the contact person." />
      <requirements value="Need to keep track where the contact person can be contacted per postal mail or visited." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Address" />
      </type>
      <mustSupport value="true" />
      <mapping>
        <identity value="v2" />
        <map value="NK1-4" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="addr" />
      </mapping>
      <mapping>
        <identity value="cda" />
        <map value="n/a" />
      </mapping>
    </element>
    <element>
      <path value="Patient.contact.address.use" />
      <short value="home | work | temp | old - purpose of this address" />
      <definition value="The purpose of this address." />
      <comments value="This is labeled as &quot;Is Modifier&quot; because applications should not mistake a temporary or old address etc.for a current/permanent one. Applications can assume that an address is current unless it explicitly says that it is temporary or old." />
      <requirements value="Allows an appropriate address to be chosen from a list of many." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
      <exampleCode value="home" />
      <mustSupport value="true" />
      <isModifier value="true" />
      <isSummary value="true" />
      <binding>
        <strength value="required" />
        <description value="The use of an address" />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/address-use" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="v2" />
        <map value="XAD.7" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="unique(./use)" />
      </mapping>
      <mapping>
        <identity value="servd" />
        <map value="./AddressPurpose" />
      </mapping>
    </element>
    <element>
      <path value="Patient.contact.address.line" />
      <short value="Street name, number, direction &amp; P.O. Box etc." />
      <definition value="This component contains the house number, apartment number, street name, street direction,  P.O. Box number, delivery hints, and similar address information." />
      <requirements value="home | work | temp | old - purpose of this address." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="string" />
      </type>
      <exampleString value="137 Nowhere Street" />
      <mustSupport value="true" />
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="XAD.1 + XAD.2 (note: XAD.1 and XAD.2 have different meanings for a company address than for a person address)" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="AD.part[parttype = AL]" />
      </mapping>
      <mapping>
        <identity value="vcard" />
        <map value="street" />
      </mapping>
      <mapping>
        <identity value="servd" />
        <map value="./StreetAddress (newline delimitted)" />
      </mapping>
    </element>
    <element>
      <path value="Patient.contact.address.city" />
      <short value="Name of city, town etc." />
      <definition value="The name of the city, town, village or other community or delivery center." />
      <alias value="Municpality" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <exampleString value="Erewhon" />
      <mustSupport value="true" />
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="XAD.3" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="AD.part[parttype = CTY]" />
      </mapping>
      <mapping>
        <identity value="vcard" />
        <map value="locality" />
      </mapping>
      <mapping>
        <identity value="servd" />
        <map value="./Jurisdiction" />
      </mapping>
    </element>
    <element>
      <path value="Patient.contact.address.state" />
      <short value="Sub-unit of country (abbreviations ok)" />
      <definition value="Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (i.e. US 2 letter state codes)." />
      <alias value="Province" />
      <alias value="Territory" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <mustSupport value="true" />
      <isSummary value="true" />
      <binding>
        <strength value="required" />
        <description value="2 letter state list" />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/usps-state" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="v2" />
        <map value="XAD.4" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="AD.part[parttype = STA]" />
      </mapping>
      <mapping>
        <identity value="vcard" />
        <map value="region" />
      </mapping>
      <mapping>
        <identity value="servd" />
        <map value="./Region" />
      </mapping>
    </element>
    <element>
      <path value="Patient.contact.address.postalCode" />
      <short value="Postal code for area" />
      <definition value="A postal code designating a region defined by the postal service." />
      <alias value="Zip" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <exampleString value="9132" />
      <condition value="inv-2" />
      <constraint>
        <key value="inv-2" />
        <severity value="error" />
        <human value="(Zip or Postal Code) SHALL be formatted as 99999[-9999] for US Zip or ZIP +4 codes or as A9A9A9 for Canadian postal codes." />
        <xpath value="f:matches(issued,[0-9]{5}(-[0-9]{4}){0,1} )" />
      </constraint>
      <mustSupport value="true" />
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="XAD.5" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="AD.part[parttype = ZIP]" />
      </mapping>
      <mapping>
        <identity value="vcard" />
        <map value="code" />
      </mapping>
      <mapping>
        <identity value="servd" />
        <map value="./PostalIdentificationCode" />
      </mapping>
    </element>
    <element>
      <path value="Patient.contact.address.country" />
      <short value="ISO 3166 2 or 3 letter Country Code" />
      <definition value="ISO 3166 2 or 3 letter Country Code." />
      <comments value="ISO 3166 3 letter codes can be used in place of a full country name." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <mustSupport value="true" />
      <isSummary value="true" />
      <binding>
        <strength value="required" />
        <description value="ISO 2 letter country codes." />
        <valueSetUri value="http://www.iso.org/iso/country_codes.htm" />
      </binding>
      <mapping>
        <identity value="v2" />
        <map value="XAD.6" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="AD.part[parttype = CNT]" />
      </mapping>
      <mapping>
        <identity value="vcard" />
        <map value="country" />
      </mapping>
      <mapping>
        <identity value="servd" />
        <map value="./Country" />
      </mapping>
    </element>
    <element>
      <path value="Patient.animal" />
      <short value="This patient is known to be an animal (non-human)" />
      <definition value="This patient is known to be an animal." />
      <comments value="The animal element is labeled &quot;Is Modifier&quot; since patients may be non-human. Systems SHALL either handle patient details appropriately (e.g. inform users patient is not human) or reject declared animal records.   The absense of the animal element does not imply that the patient is a human. If a system requires such a positive assertion that the patient is human, an extension will be required.  (Do not use a species of homo-sapiens in animal species, as this would incorrectly infer that the patient is an animal)." />
      <requirements value="Many clinical systems are extended to care for animal patients as well as human." />
      <min value="0" />
      <max value="0" />
      <type>
        <code value="BackboneElement" />
      </type>
      <isModifier value="true" />
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="player[classCode=ANM]" />
      </mapping>
      <mapping>
        <identity value="cda" />
        <map value="n/a" />
      </mapping>
    </element>
    <element>
      <path value="Patient.communication" />
      <short value="A list of Languages which may be used to communicate with the patient about his or her health" />
      <definition value="Languages which may be used to communicate with the patient about his or her health." />
      <comments value="If no language is specified, this *implies* that the default local language is spoken.  If you need to convey proficiency for multiple modes then you need multiple Patient.Communication associations.   For animals, language is not a relevant field, and should be absent from the instance. If the Patient does not speak the default local language, then the Interpreter Required Standard can be used to explicitly declare that an interpreter is required." />
      <requirements value="If a patient does not speak the local language, interpreters may be required, so languages spoken and proficiency is an important things to keep track of both for patient and other persons of interest." />
      <min value="0" />
      <max value="0" />
      <type>
        <code value="BackboneElement" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="LanguageCommunication" />
      </mapping>
      <mapping>
        <identity value="cda" />
        <map value="patient.languageCommunication" />
      </mapping>
    </element>
    <element>
      <path value="Patient.communication.language" />
      <short value="The language which can be used to communicate with the patient about his or her health" />
      <definition value="The ISO-639-1 alpha 2 code in lower case for the language, optionally followed by a hyphen and the ISO-3166-1 alpha 2 code for the region in upper case; e.g. &quot;en&quot; for English, or &quot;en-US&quot; for American English versus &quot;en-EN&quot; for England English." />
      <comments value="The structure aa-BB with this exact casing is one the most widely used notations for locale. However not all systems actually code this but instead have it as free text. Hence CodeableConcept instead of code as the data type." />
      <requirements value="Most systems in multilingual countries will want to convey language. Not all systems actually need the regional dialect." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <description value="A human language." />
        <valueSetUri value="http://tools.ietf.org/html/bcp47" />
      </binding>
      <mapping>
        <identity value="v2" />
        <map value="PID-15, LAN-2" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="player[classCode=PSN|ANM and determinerCode=INSTANCE]/languageCommunication/code" />
      </mapping>
      <mapping>
        <identity value="cda" />
        <map value=".languageCode" />
      </mapping>
    </element>
    <element>
      <path value="Patient.careProvider" />
      <short value="Patient's nominated primary care provider" />
      <definition value="Patient's nominated care provider." />
      <comments value="This may be the primary care provider (in a GP context), or it may be a patient nominated care manager in a community/disablity setting, or even organization that will provide people to perform the care provider roles.  This is not to be used to record Care Teams, these should be recorded on either the CarePlan or EpisodeOfCare resources." />
      <min value="0" />
      <max value="0" />
      <type>
        <code value="Reference" />
        <profile value="http://premierinc.com/fhir/StructureDefinition/tdaf-organization" />
      </type>
      <type>
        <code value="Reference" />
        <profile value="http://premierinc.com/fhir/StructureDefinition/tdaf-pract" />
      </type>
      <mustSupport value="true" />
      <mapping>
        <identity value="v2" />
        <map value="PD1-4" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="subjectOf.CareEvent.performer.AssignedEntity" />
      </mapping>
      <mapping>
        <identity value="cda" />
        <map value="n/a" />
      </mapping>
    </element>
    <element>
      <path value="Patient.managingOrganization" />
      <short value="Organization that is the custodian of the patient record" />
      <definition value="Organization that is the custodian of the patient record." />
      <comments value="There is only one managing organization for a specific patient record. Other organizations will have their own Patient record, and may use the Link property to join the records together (or a Person resource which can include confidence ratings for the association)." />
      <requirements value="Need to know who recognizes this patient record, manages and updates it." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <profile value="http://premierinc.com/fhir/StructureDefinition/tdaf-organization" />
      </type>
      <mustSupport value="true" />
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="scoper" />
      </mapping>
      <mapping>
        <identity value="cda" />
        <map value=".providerOrganization" />
      </mapping>
    </element>
  </differential>
</StructureDefinition>