<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="shr-core-ContactDetail" />
  <text>
    <status value="generated" />
    <div xmlns="http://www.w3.org/1999/xhtml">
      <p>
        <b>SHR ContactDetail Profile</b>
      </p>
      <p>Describes an individual and how to reach them.</p>
      <p>
        <b>SHR Mapping Summary</b>
      </p>
      <p>
        <pre>shr.core.ContactDetail maps to ContactDetail:
  HumanName.string maps to name
  ContactPoint maps to telecom
</pre>
      </p>
    </div>
  </text>
  <url value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-core-ContactDetail" />
  <identifier>
    <system value="http://standardhealthrecord.org" />
    <value value="shr.core.ContactDetail" />
  </identifier>
  <version value="0.0.1" />
  <name value="SHR ContactDetail Profile" />
  <status value="draft" />
  <date value="2017-12-20" />
  <publisher value="The MITRE Corporation: Standard Health Record Collaborative" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://standardhealthrecord.org" />
    </telecom>
  </contact>
  <description value="Describes an individual and how to reach them." />
  <purpose value="Need to track contact information in the same way across multiple resources." />
  <fhirVersion value="3.0.1" />
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <kind value="complex-type" />
  <abstract value="false" />
  <type value="ContactDetail" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/ContactDetail" />
  <derivation value="constraint" />
  <snapshot>
    <element id="ContactDetail:shr-core-ContactDetail">
      <path value="ContactDetail" />
      <short value="SHR ContactDetail Profile" />
      <definition value="Describes an individual and how to reach them." />
      <min value="0" />
      <max value="*" />
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="ContactDetail:shr-core-ContactDetail.id">
      <path value="ContactDetail.id" />
      <representation value="xmlAttr" />
      <short value="xml:id (or equivalent in JSON)" />
      <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="ContactDetail:shr-core-ContactDetail.extension">
      <path value="ContactDetail.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <rules value="open" />
      </slicing>
      <short value="Additional Content defined by implementations" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <alias value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="ContactDetail:shr-core-ContactDetail.name">
      <path value="ContactDetail.name" />
      <short value="Name of an individual to contact" />
      <definition value="The name of an individual to contact." />
      <comment value="If there is no named individual, the telecom information is for the organization as a whole." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <isSummary value="true" />
    </element>
    <element id="ContactDetail:shr-core-ContactDetail.telecom">
      <path value="ContactDetail.telecom" />
      <short value="Contact details for individual or organization" />
      <definition value="The contact details for the individual (if a name was provided) or the organization." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="ContactPoint" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-core-ContactPoint" />
      </type>
      <isSummary value="true" />
    </element>
  </snapshot>
  <differential>
    <element id="ContactDetail:shr-core-ContactDetail">
      <path value="ContactDetail" />
      <short value="SHR ContactDetail Profile" />
      <definition value="Describes an individual and how to reach them." />
    </element>
    <element id="ContactDetail:shr-core-ContactDetail.telecom">
      <path value="ContactDetail.telecom" />
      <type>
        <code value="ContactPoint" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-core-ContactPoint" />
      </type>
    </element>
  </differential>
</StructureDefinition>