<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="90b2cce1-7638-4281-bf2b-0b6a1cba97b7" />
  <meta>
    <versionId value="1" />
    <lastUpdated value="2021-06-14T12:35:05.905+00:00" />
  </meta>
  <text>
    <status value="generated" />
    <div xmlns="http://www.w3.org/1999/xhtml">Testing</div>
  </text>
  <url value="https://health.gov.on.ca/sadie/fhir/StructureDefinition/ProgramArea" />
  <name value="ProgramArea" />
  <title value="Organization (Program Area)" />
  <status value="draft" />
  <date value="2021-06-14T12:35:03.2521154+00:00" />
  <description value="This profile is for the Program Areas." />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="v2" />
    <uri value="http://hl7.org/v2" />
    <name value="HL7 v2 Mapping" />
  </mapping>
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </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/fivews" />
    <name value="FiveWs Pattern Mapping" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Organization" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Organization" />
  <derivation value="constraint" />
  <differential>
    <element id="Organization">
      <path value="Organization" />
      <comment value="#### **_`FOR SADIE USE:  This is a Program Area. It uses the following:`_**&#xD;&#xA;&#xD;&#xA;- name  (name on the user interface)&#xD;&#xA;- alias (short description on the user interface)&#xD;&#xA;- help hyperlink (used by the user interface)&#xD;&#xA;- contact us hyperlink (used by the user interface)&#xD;&#xA;- a business identifier  (used internally for configuration)&#xD;&#xA;- a type which is always 'program'  (used to easily identify the type of organization record this is)" />
    </element>
    <element id="Organization.identifier">
      <path value="Organization.identifier" />
      <definition value="#### **_`FOR SADIE USE:  This is the internal code for this Program Area in our internal CodeSystem.  It will be used to help configure the organization`_**&#xD;&#xA;&#xD;&#xA;Identifier for the organization that is used to identify the organization across multiple disparate systems." />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Organization.identifier.use">
      <path value="Organization.identifier.use" />
      <max value="0" />
    </element>
    <element id="Organization.identifier.type">
      <path value="Organization.identifier.type" />
      <max value="0" />
    </element>
    <element id="Organization.identifier.system">
      <path value="Organization.identifier.system" />
      <max value="0" />
    </element>
    <element id="Organization.identifier.value">
      <path value="Organization.identifier.value" />
      <definition value="#### **_`FOR SADIE USE:  This is the internal code for the Program Area`_**&#xD;&#xA;&#xD;&#xA;The portion of the identifier typically relevant to the user and which is unique within the context of the system." />
      <binding>
        <strength value="required" />
        <valueSet value="http://health.gov.on.ca/sadie/fhir/ValueSet/FlexForms-ProgramAreas" />
      </binding>
    </element>
    <element id="Organization.identifier.period">
      <path value="Organization.identifier.period" />
      <max value="0" />
    </element>
    <element id="Organization.identifier.assigner">
      <path value="Organization.identifier.assigner" />
      <max value="0" />
    </element>
    <element id="Organization.type">
      <path value="Organization.type" />
      <definition value="#### **_`FOR SADIE USE:  The FHIR Organization resource is used to store Program Areas and Requestor Teams,  this code stores which type of record this is.`_**&#xD;&#xA;&#xD;&#xA;The kind(s) of organization that this is." />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Organization.type.coding">
      <path value="Organization.type.coding" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Organization.type.coding.system">
      <path value="Organization.type.coding.system" />
      <max value="0" />
    </element>
    <element id="Organization.type.coding.version">
      <path value="Organization.type.coding.version" />
      <max value="0" />
    </element>
    <element id="Organization.type.coding.code">
      <path value="Organization.type.coding.code" />
      <min value="1" />
      <binding>
        <strength value="required" />
        <valueSet value="http://health.gov.on.ca/sadie/fhir/ValueSet/FlexForms-OrganizationTypes" />
      </binding>
    </element>
    <element id="Organization.type.coding.display">
      <path value="Organization.type.coding.display" />
      <max value="0" />
    </element>
    <element id="Organization.type.coding.userSelected">
      <path value="Organization.type.coding.userSelected" />
      <max value="0" />
    </element>
    <element id="Organization.type.text">
      <path value="Organization.type.text" />
      <max value="0" />
    </element>
    <element id="Organization.name">
      <path value="Organization.name" />
      <definition value="#### **_`FOR SADIE USE:  This is the name of the Program Area that appears on the user interface`_**&#xD;&#xA;&#xD;&#xA;A name associated with the organization." />
      <min value="1" />
    </element>
    <element id="Organization.alias">
      <path value="Organization.alias" />
      <definition value="#### **_`FOR SADIE USE:  This is the short description of the Program Area that appears on the user interface.`_**&#xD;&#xA;&#xD;&#xA;A list of alternate names that the organization is known as, or was known as in the past." />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Organization.telecom">
      <path value="Organization.telecom" />
      <max value="0" />
    </element>
    <element id="Organization.address">
      <path value="Organization.address" />
      <max value="0" />
    </element>
    <element id="Organization.partOf">
      <path value="Organization.partOf" />
      <max value="0" />
    </element>
    <element id="Organization.contact">
      <path value="Organization.contact" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="purpose.coding.code" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <definition value="#### **_`FOR SADIE USE:  This is sliced into 2 contacts, the first one is the Help URL the second is the Contact Us URL.   This section will be completed later`_**&#xD;&#xA;&#xD;&#xA;Contact for the organization for a certain purpose." />
      <max value="2" />
    </element>
    <element id="Organization.contact:helpLink">
      <path value="Organization.contact" />
      <sliceName value="helpLink" />
      <short value="This is the Help Link for the Program Area" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Organization.contact:contactLink">
      <path value="Organization.contact" />
      <sliceName value="contactLink" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Organization.endpoint">
      <path value="Organization.endpoint" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>