<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="signal-organization" />
  <url value="https://signalbhn.org/fhir/StructureDefinition/organization" />
  <name value="SignalOrganization" />
  <title value="Organization Profile" />
  <status value="draft" />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Organization" />
  <baseDefinition value="http://hl7.org/fhir/us/core/StructureDefinition/us-core-organization" />
  <derivation value="constraint" />
  <differential>
    <element id="Organization.extension:qualification">
      <path value="Organization.extension" />
      <sliceName value="qualification" />
      <type>
        <code value="Extension" />
        <profile value="https://signalbhn.org/fhir/StructureDefinition/qualification" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="Organization.extension:qualification.extension:code">
      <path value="Organization.extension.extension" />
      <sliceName value="code" />
    </element>
    <element id="Organization.extension:qualification.extension:code.value[x]">
      <path value="Organization.extension.extension.value[x]" />
      <binding>
        <strength value="required" />
        <valueSet value="https://signalbhn.org/fhir/ValueSet/signal-organization-license" />
      </binding>
    </element>
    <element id="Organization.extension:photo">
      <path value="Organization.extension" />
      <sliceName value="photo" />
      <short value="Image or logo for the organization" />
      <type>
        <code value="Extension" />
        <profile value="https://signalbhn.org/fhir/StructureDefinition/SignalOrgPhotoAttachment" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="Organization.identifier:EIN">
      <path value="Organization.identifier" />
      <sliceName value="EIN" />
      <short value="Employer Identification Number (EIN)" />
      <definition value="An Employer Identification Number (EIN) is also known as a Federal Tax Identification Number, and is used to identify a business entity. Generally, businesses need an EIN. Provided by the US Internal Revenue Service (IRS)" />
      <comment value="An Employer Identification Number (EIN), also known as a Federal Tax Identification Number, is used to identify a business entity." />
      <patternIdentifier>
        <system value="urn:oid:2.16.840.1.113883.4.4" />
      </patternIdentifier>
    </element>
    <element id="Organization.identifier:MMIS">
      <path value="Organization.identifier" />
      <sliceName value="MMIS" />
      <short value="Medicaid Management Information System (MMIS)" />
      <definition value="Medicaid Management Information System (MMIS) is the official title of Colorado's patient and provider processing network." />
      <comment value="The Colorado MMIS, interChange, is currently operated by Gainwell Technologies. Learn more at https://hcpf.colorado.gov/mmis-procurement" />
      <patternIdentifier>
        <system value="https://signalbhn.org//identifiers/organization-mmis/" />
      </patternIdentifier>
    </element>
    <element id="Organization.identifier:StateAgencyID">
      <path value="Organization.identifier" />
      <sliceName value="StateAgencyID" />
      <short value="State Agency ID coming from Julota Referral system" />
      <definition value="State Agency ID is an identifier thats a free form text field in Gigafish coming from Julota referral system used to identify a State Agency." />
      <patternIdentifier>
        <system value="https://signalbhn.org/fhir/sid/julota-state-agency-id" />
      </patternIdentifier>
    </element>
    <element id="Organization.identifier:ProviderID">
      <path value="Organization.identifier" />
      <sliceName value="ProviderID" />
      <short value="Provider identifier" />
      <definition value="Provider Identifier is created to store the identifier information from EDI extraction." />
      <patternIdentifier>
        <system value="https://signalbhn.org/fhir/sid/edi/provider-id" />
      </patternIdentifier>
    </element>
    <element id="Organization.identifier:PayerID">
      <path value="Organization.identifier" />
      <sliceName value="PayerID" />
      <short value="Payer Identifier" />
      <definition value="Payer Identifier is created to store the identifier information from EDI extraction." />
      <patternIdentifier>
        <system value="https://signalbhn.org/fhir/sid/edi/payer-id" />
      </patternIdentifier>
    </element>
    <element id="Organization.identifier:PrimaryLocationID">
      <path value="Organization.identifier" />
      <sliceName value="PrimaryLocationID" />
      <short value="Primary Location Identifier" />
      <definition value="Primary Location Identifier is created to store the identifier information from EDI extraction." />
      <patternIdentifier>
        <system value="https://signalbhn.org/fhir/sid/edi/provider-location-id" />
      </patternIdentifier>
    </element>
    <element id="Organization.type">
      <path value="Organization.type" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="coding.system" />
        </discriminator>
        <description value="Differentiate on code system used to capture information." />
        <rules value="open" />
      </slicing>
      <binding>
        <strength value="required" />
        <valueSet value="https://signalbhn.org/fhir/us/core/ValueSet/signal-organization-type" />
      </binding>
    </element>
    <element id="Organization.type:npiTaxonomy">
      <path value="Organization.type" />
      <sliceName value="npiTaxonomy" />
      <short value="NPI Provider Taxonomy Code" />
      <definition value="A taxonomy code is a unique 10-character code that designates your classification and specialization. You will use this code when applying for a National Provider Identifier, commonly referred to as an NPI." />
      <comment value="For NPI Taxonomy, use this ValueSet: Valueset-provider-taxonomy - FHIR v5.0.0 (hl7.org). More information:&#xD;&#xA;&#xD;&#xA;https://taxonomy.nucc.org/&#xD;&#xA;The Health Care Provider Taxonomy code set is an external, nonmedical data code set designed for use in an electronic environment, specifically within the ASC X12N Health Care transactions. This includes the transactions mandated under HIPAA.&#xD;&#xA;The taxonomy code is a unique alphanumeric code, ten characters in length. The code set is structured into three distinct &quot;Levels&quot; including Provider Grouping, Classification, and Area of Specialization.&#xD;&#xA;Find Your Taxonomy Code | CMS (https://www.cms.gov/medicare/provider-enrollment-and-certification/find-your-taxonomy-code)&#xD;&#xA;&#xD;&#xA;Note: You may select more than one code or code description when applying for an NPI, but you must indicate one of them as the primary code." />
      <min value="1" />
      <binding>
        <strength value="required" />
        <valueSet value="http://hl7.org/fhir/ValueSet/provider-taxonomy" />
      </binding>
    </element>
  </differential>
</StructureDefinition>