<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="pr-patient" />
  <url value="https://fhir.icanbwell.com/4_0_0/StructureDefinition/pr-patient" />
  <version value="1.1" />
  <name value="Patient" />
  <title value="Profile: Patient" />
  <status value="active" />
  <experimental value="false" />
  <date value="2024-03-18T21:23:08.4464077+00:00" />
  <publisher value="b.Well Connected Health" />
  <description value="Describes an individual in the context of a given client. This includes but is not limited to:&#xD;&#xA;- beneficiary of an insurance plan&#xD;&#xA;- receiver of healthcare services&#xD;&#xA;- bWell application user&#xD;&#xA;- client's employee" />
  <jurisdiction>
    <coding>
      <system value="urn:iso:std:iso:3166" />
      <code value="US" />
      <display value="United States of America" />
    </coding>
    <text value="United States of America" />
  </jurisdiction>
  <purpose value="Aims to conform to the following external IGs:&#xD;&#xA;- http://hl7.org/fhir/us/carin-bb/StructureDefinition/C4BB-Patient&#xD;&#xA;- http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient" />
  <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">
      <path value="Patient" />
      <short value="An individual within the context of a client" />
    </element>
    <element id="Patient.id">
      <path value="Patient.id" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Patient.meta">
      <path value="Patient.meta" />
      <min value="1" />
      <type>
        <code value="Meta" />
        <profile value="https://fhir.icanbwell.com/4_0_0/StructureDefinition/de-meta" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Patient.extension:race">
      <path value="Patient.extension" />
      <sliceName value="race" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/us/core/StructureDefinition/us-core-race" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="Patient.extension:race.extension">
      <path value="Patient.extension.extension" />
      <min value="1" />
    </element>
    <element id="Patient.extension:ethnicity">
      <path value="Patient.extension" />
      <sliceName value="ethnicity" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="Patient.extension:ethnicity.extension">
      <path value="Patient.extension.extension" />
      <min value="1" />
    </element>
    <element id="Patient.identifier">
      <path value="Patient.identifier" />
      <slicing>
        <description value="slice by type" />
        <rules value="open" />
      </slicing>
      <min value="1" />
      <type>
        <code value="Identifier" />
        <profile value="https://fhir.icanbwell.com/4_0_0/StructureDefinition/de-identifier" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Patient.identifier:member-number">
      <path value="Patient.identifier" />
      <sliceName value="member-number" />
      <short value="insurance coverage's unique identifier for the individual" />
      <max value="1" />
      <patternIdentifier id="member-number">
        <type>
          <coding id="member-number-type">
            <system value="http://terminology.hl7.org/CodeSystem/v2-0203" />
            <code value="MB" />
          </coding>
        </type>
      </patternIdentifier>
      <example>
        <label value="identifier-member-number" />
        <valueIdentifier>
          <use value="usual" />
          <type>
            <coding>
              <system value="http://terminology.hl7.org/CodeSystem/v2-0203" />
              <code value="MB" />
              <display value="Member Number" />
            </coding>
          </type>
          <system value="https://www.foo.com" />
          <value value="M1234" />
        </valueIdentifier>
      </example>
    </element>
    <element id="Patient.identifier:employee-id">
      <path value="Patient.identifier" />
      <sliceName value="employee-id" />
      <short value="employer's's unique identifier for the individual" />
      <max value="1" />
      <patternIdentifier id="employee-id">
        <type>
          <coding id="employee-id-type">
            <system value="http://terminology.hl7.org/CodeSystem/v2-0203" />
            <code value="EI" />
          </coding>
        </type>
      </patternIdentifier>
      <example>
        <label value="identifier-employee-id" />
        <valueIdentifier>
          <use value="usual" />
          <type>
            <coding>
              <system value="http://terminology.hl7.org/CodeSystem/v2-0203" />
              <code value="EI" />
            </coding>
          </type>
          <system value="https://www.foo.com" />
          <value value="E1234" />
        </valueIdentifier>
      </example>
    </element>
    <element id="Patient.identifier:medicare-id">
      <path value="Patient.identifier" />
      <sliceName value="medicare-id" />
      <short value="Medicare Beneficiary Identifier" />
      <max value="1" />
      <patternIdentifier>
        <type>
          <coding>
            <system value="http://terminology.hl7.org/CodeSystem/v2-0203" />
            <code value="MC" />
          </coding>
        </type>
        <system value="http://hl7.org/fhir/sid/us-mbi" />
      </patternIdentifier>
    </element>
    <element id="Patient.identifier:medicaid-id">
      <path value="Patient.identifier" />
      <sliceName value="medicaid-id" />
      <max value="1" />
      <patternIdentifier>
        <type>
          <coding>
            <system value="http://terminology.hl7.org/CodeSystem/v2-0203" />
            <code value="MA" />
          </coding>
        </type>
      </patternIdentifier>
      <example>
        <label value="example-medicaid-id" />
        <valueIdentifier>
          <use value="official" />
          <type>
            <coding>
              <system value="http://terminology.hl7.org/CodeSystem/v2-0203" />
              <code value="MA" />
            </coding>
            <text value="Medicaid ID" />
          </type>
          <value value="M123" />
        </valueIdentifier>
      </example>
    </element>
    <element id="Patient.active">
      <path value="Patient.active" />
      <comment value="default to true" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Patient.name">
      <path value="Patient.name" />
      <min value="1" />
      <type>
        <code value="HumanName" />
        <profile value="https://fhir.icanbwell.com/4_0_0/StructureDefinition/de-human-name" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Patient.telecom">
      <path value="Patient.telecom" />
      <slicing>
        <description value="slice by use &amp; type" />
        <rules value="open" />
      </slicing>
      <type>
        <code value="ContactPoint" />
        <profile value="https://fhir.icanbwell.com/4_0_0/StructureDefinition/de-contact-point" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Patient.telecom:phone">
      <path value="Patient.telecom" />
      <sliceName value="phone" />
      <short value="Phone number for the individual" />
      <patternContactPoint>
        <system value="phone" />
      </patternContactPoint>
      <example>
        <label value="home-phone" />
        <valueContactPoint>
          <system value="phone" />
          <value value="555-555-5555" />
          <use value="home" />
        </valueContactPoint>
      </example>
    </element>
    <element id="Patient.telecom:email">
      <path value="Patient.telecom" />
      <sliceName value="email" />
      <short value="An e-mail address for the individual" />
      <patternContactPoint>
        <system value="email" />
      </patternContactPoint>
      <example>
        <label value="email-address" />
        <valueContactPoint>
          <system value="email" />
          <value value="someone@mail.com" />
        </valueContactPoint>
      </example>
    </element>
    <element id="Patient.telecom:work-phone">
      <path value="Patient.telecom" />
      <sliceName value="work-phone" />
      <short value="A business phone number for the individual" />
      <max value="1" />
      <patternContactPoint>
        <system value="phone" />
        <use value="work" />
      </patternContactPoint>
      <example>
        <label value="work-phone" />
        <valueContactPoint>
          <system value="phone" />
          <value value="555-555-5555" />
          <use value="work" />
        </valueContactPoint>
      </example>
    </element>
    <element id="Patient.gender">
      <path value="Patient.gender" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Patient.birthDate">
      <path value="Patient.birthDate" />
      <example>
        <label value="example-birthdate" />
        <valueDate value="2020-01-01" />
      </example>
      <mustSupport value="true" />
    </element>
    <element id="Patient.deceased[x]">
      <path value="Patient.deceased[x]" />
      <mustSupport value="true" />
    </element>
    <element id="Patient.address">
      <path value="Patient.address" />
      <type>
        <code value="Address" />
        <profile value="https://fhir.icanbwell.com/4_0_0/StructureDefinition/de-address" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Patient.maritalStatus">
      <path value="Patient.maritalStatus" />
      <type>
        <code value="CodeableConcept" />
        <profile value="https://fhir.icanbwell.com/4_0_0/StructureDefinition/de-codeable-concept" />
      </type>
    </element>
    <element id="Patient.photo">
      <path value="Patient.photo" />
      <type>
        <code value="Attachment" />
        <profile value="https://fhir.icanbwell.com/4_0_0/StructureDefinition/de-attachment-image" />
      </type>
    </element>
    <element id="Patient.contact">
      <path value="Patient.contact" />
      <mustSupport value="true" />
    </element>
    <element id="Patient.contact.relationship">
      <path value="Patient.contact.relationship" />
      <type>
        <code value="CodeableConcept" />
        <profile value="https://fhir.icanbwell.com/4_0_0/StructureDefinition/de-codeable-concept" />
      </type>
    </element>
    <element id="Patient.contact.name">
      <path value="Patient.contact.name" />
      <type>
        <code value="HumanName" />
        <profile value="https://fhir.icanbwell.com/4_0_0/StructureDefinition/de-human-name" />
      </type>
    </element>
    <element id="Patient.contact.telecom">
      <path value="Patient.contact.telecom" />
      <type>
        <code value="ContactPoint" />
        <profile value="https://fhir.icanbwell.com/4_0_0/StructureDefinition/de-contact-point" />
      </type>
    </element>
    <element id="Patient.contact.address">
      <path value="Patient.contact.address" />
      <type>
        <code value="Address" />
        <profile value="https://fhir.icanbwell.com/4_0_0/StructureDefinition/de-address" />
      </type>
    </element>
    <element id="Patient.communication">
      <path value="Patient.communication" />
      <mustSupport value="true" />
    </element>
    <element id="Patient.communication.id">
      <path value="Patient.communication.id" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Patient.communication.language">
      <path value="Patient.communication.language" />
      <type>
        <code value="CodeableConcept" />
        <profile value="https://fhir.icanbwell.com/4_0_0/StructureDefinition/de-codeable-concept" />
      </type>
      <example>
        <label value="example-language" />
        <valueCodeableConcept>
          <coding>
            <system value="urn:ietf:bcp:47" />
            <code value="en" />
            <display value="English" />
          </coding>
          <text value="English" />
        </valueCodeableConcept>
      </example>
      <mustSupport value="true" />
    </element>
    <element id="Patient.communication.preferred">
      <path value="Patient.communication.preferred" />
      <mustSupport value="true" />
    </element>
    <element id="Patient.generalPractitioner">
      <path value="Patient.generalPractitioner" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.icanbwell.com/4_0_0/StructureDefinition/pr-healthcare-organization" />
        <targetProfile value="https://fhir.icanbwell.com/4_0_0/StructureDefinition/pr-practitioner" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Patient.link">
      <path value="Patient.link" />
      <requirements value="There are multiple use cases:   &#xA;&#xA;* Duplicate patient records due to the clerical errors associated with the difficulties of identifying humans consistently, and &#xA;* Distribution of patient information across multiple servers.&#xD;&#xA;&#xD;&#xA;b.Well internal documentation: https://icanbwell.atlassian.net/wiki/spaces/ENTARCH/pages/3947855873/EMPI+-+MVP+FHIR+Person-Patient+Implementation+and+Example" />
    </element>
    <element id="Patient.link.other">
      <path value="Patient.link.other" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
        <targetProfile value="https://fhir.icanbwell.com/4_0_0/StructureDefinition/pr-patient" />
      </type>
    </element>
  </differential>
</StructureDefinition>