<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="spark1699" />
  <meta>
    <versionId value="spark2136" />
    <lastUpdated value="2015-12-22T18:27:48.214+00:00" />
  </meta>
  <url value="http://premierinc.com/fhir/StructureDefinition/tdaf-organization" />
  <name value="TheraDoc Data Access Framework (TDAF) Organization Profile" />
  <display value="DAF-Organization" />
  <status value="draft" />
  <publisher value="Health Level Seven International (Infrastructure and Messaging - Data Access Framework)" />
  <contact>
    <telecom>
      <system value="other" />
      <value value="http://www.healthit.gov" />
    </telecom>
  </contact>
  <date value="2015-03-03" />
  <description value="Defines basic constraints and extensions on the Organization resource for use with other DAF resources" />
  <fhirVersion value="1.0.1" />
  <mapping>
    <identity value="v2" />
    <uri value="http://hl7.org/v2" />
    <name value="HL7 v2" />
  </mapping>
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM" />
  </mapping>
  <mapping>
    <identity value="servd" />
    <uri value="http://www.omg.org/spec/ServD/1.0/" />
    <name value="ServD" />
  </mapping>
  <mapping>
    <identity value="w5" />
    <uri value="http://hl7.org/fhir/w5" />
    <name value="W5 Mapping" />
  </mapping>
  <kind value="resource" />
  <constrainedType value="Organization" />
  <abstract value="false" />
  <base value="http://hl7.org/fhir/StructureDefinition/Organization" />
  <differential>
    <element>
      <path value="Organization" />
      <name value="DAF-Organization" />
      <short value="A grouping of people or organizations with a common purpose" />
      <definition value="A formally or informally recognized grouping of people or organizations formed for the purpose of achieving some form of collective action.  Includes companies, institutions, corporations, departments, community groups, healthcare practice groups, etc." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Organization" />
      </type>
      <mapping>
        <identity value="servd" />
        <map value="Organization" />
      </mapping>
    </element>
    <element>
      <path value="Organization.identifier" />
      <short value="Identifies this organization  across multiple systems" />
      <definition value="Identifier for the organization that is used to identify the organization across multiple disparate systems." />
      <requirements value="Organizations are known by a variety of ids. Some institutions maintain several, and most collect identifiers for exchange with other organizations concerning the organization." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Identifier" />
      </type>
      <condition value="org-1" />
      <mustSupport value="true" />
      <isSummary value="true" />
      <mapping>
        <identity value="servd" />
        <map value="n/a" />
      </mapping>
    </element>
    <element>
      <path value="Organization.active" />
      <short value="Whether the organization's record is still in active use" />
      <definition value="Whether the organization's record is still in active use." />
      <comments value="Default is true." />
      <requirements value="Need a flag to indicate a record is no longer to be used and should generally be hidden for the user in the UI." />
      <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="v2" />
        <map value="No equivalent in HL7 v2" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".status" />
      </mapping>
      <mapping>
        <identity value="servd" />
        <map value="./Status (however this concept in ServD more covers why the organization is active or not, could be delisted, deregistered, not operational yet) this could alternatively be derived from ./StartDate and ./EndDate and given a context date." />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="status" />
      </mapping>
    </element>
    <element>
      <path value="Organization.name" />
      <short value="Name used for the organization" />
      <definition value="A name associated with the organization." />
      <requirements value="Need to use the name as the label of the organization." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <condition value="org-1" />
      <mustSupport value="true" />
      <isSummary value="true" />
      <mapping>
        <identity value="servd" />
        <map value="./PrimaryAddress and ./OtherAddresses" />
      </mapping>
    </element>
    <element>
      <path value="Organization.address" />
      <short value="An address for the organization" />
      <definition value="An address for the organization." />
      <comments value="Organization may have multiple addresses with different uses or applicable periods. The use code home is not to be used." />
      <requirements value="May need to keep track of the organization's addresses for contacting, billing or reporting requirements." />
      <min value="0" />
      <max value="0" />
      <type>
        <code value="Address" />
      </type>
      <condition value="org-2" />
      <mapping>
        <identity value="servd" />
        <map value="n/a" />
      </mapping>
    </element>
    <element>
      <path value="Organization.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>
      <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="Organization.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" />
      <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="Organization.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>
      <isSummary value="true" />
      <binding>
        <strength value="required" />
        <description value="Two letter USPS alphabetic codes." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/usps-state" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="servd" />
        <map value="./Sites" />
      </mapping>
    </element>
    <element>
      <path value="Organization.address.postalCode" />
      <short value="US Zip Codes" />
      <definition value="US Zip Codes." />
      <alias value="Zip" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <exampleString value="9132" />
      <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>
  </differential>
</StructureDefinition>