<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="pr-healthcare-organization" />
  <url value="https://fhir.icanbwell.com/4_0_0/StructureDefinition/pr-healthcare-organization" />
  <version value="1.2" />
  <name value="HealthcareOrganization" />
  <title value="Profile: Healthcare Organization" />
  <status value="active" />
  <date value="2024-03-18T21:31:25.3890503+00:00" />
  <publisher value="b.Well Connected Health" />
  <description value="Healthcare organizations including practices, claims billing organizations, and pharmacies." />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Organization" />
  <baseDefinition value="https://fhir.icanbwell.com/4_0_0/StructureDefinition/pr-organization" />
  <derivation value="constraint" />
  <differential>
    <element id="Organization.identifier">
      <path value="Organization.identifier" />
      <slicing>
        <description value="slice by type" />
        <rules value="open" />
      </slicing>
      <min value="1" />
    </element>
    <element id="Organization.identifier:NPI">
      <path value="Organization.identifier" />
      <sliceName value="NPI" />
      <short value="National Provider Identifier (type 2)" />
      <max value="1" />
      <patternIdentifier>
        <use value="official" />
        <type>
          <coding>
            <system value="http://terminology.hl7.org/CodeSystem/v2-0203" />
            <code value="NPI" />
          </coding>
        </type>
        <system value="http://hl7.org/fhir/sid/us-npi" />
      </patternIdentifier>
    </element>
    <element id="Organization.identifier:TIN">
      <path value="Organization.identifier" />
      <sliceName value="TIN" />
      <short value="Tax ID" />
      <alias value="tax-id" />
      <patternIdentifier>
        <use value="official" />
        <type>
          <coding>
            <system value="http://terminology.hl7.org/CodeSystem/v2-0203" />
            <code value="TAX" />
          </coding>
        </type>
        <system value="http://hl7.org/fhir/sid/us-tin" />
      </patternIdentifier>
    </element>
    <element id="Organization.identifier:facility-id">
      <path value="Organization.identifier" />
      <sliceName value="facility-id" />
      <short value="An id from another source system" />
    </element>
    <element id="Organization.active">
      <path value="Organization.active" />
      <definition value="Whether the organization's record is still in active use. When the Organization.id is an NPI, this is only determined by NPPES." />
      <comment value="This active flag is not intended to be used to mark an organization as temporarily closed or under construction. Instead the Location(s) within the Organization should have the suspended status. If further details of the reason for the suspension are required, then an extension on this element should be used.&#xA;&#xA;This element is labeled as a modifier because it may be used to mark that the resource was created in error.&#xD;&#xA;&#xD;&#xA;Default to true." />
    </element>
    <element id="Organization.type">
      <path value="Organization.type" />
      <short value="prov | pharmacy" />
      <example>
        <label value="practice-type" />
        <valueCodeableConcept>
          <coding>
            <system value="http://terminology.hl7.org/CodeSystem/organization-type" />
            <code value="prov" />
            <display value="Healthcare Provider" />
          </coding>
        </valueCodeableConcept>
      </example>
      <example>
        <label value="pharmacy-type" />
        <valueCodeableConcept>
          <coding>
            <system value="http://terminology.hl7.org/CodeSystem/organization-type" />
            <code value="pharmacy" />
            <display value="Pharmacy" />
          </coding>
        </valueCodeableConcept>
      </example>
    </element>
    <element id="Organization.address">
      <path value="Organization.address" />
      <short value="The business address for the organization" />
    </element>
  </differential>
</StructureDefinition>