{
  "resourceType": "StructureDefinition",
  "id": "2252479f-98cb-4978-bad1-f0b230bb7e21",
  "url": "https://health.gov.on.ca/sadie/fhir/StructureDefinition/ProgramArea",
  "version": "1.0.0",
  "name": "ProgramArea",
  "title": "ProgramArea",
  "status": "active",
  "date": "2021-06-14T12:35:03.2521154+00:00",
  "description": "This profile is for the Program Areas.",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "servd",
      "uri": "http://www.omg.org/spec/ServD/1.0/",
      "name": "ServD"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Organization",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Organization",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Organization",
        "path": "Organization",
        "comment": "#### **_`FOR SADIE USE:  This is a Program Area. It uses the following:`_**\n\n- name  (name on the user interface)\n- alias (short description on the user interface)\n- help hyperlink (used by the user interface)\n- contact us hyperlink (used by the user interface)\n- a business identifier  (used internally for configuration)\n- a type which is always 'program'  (used to easily identify the type of organization record this is)"
      },
      {
        "id": "Organization.extension",
        "path": "Organization.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Organization.extension:AnnouncementsIndicator",
        "path": "Organization.extension",
        "sliceName": "AnnouncementsIndicator",
        "definition": "#### **_`FOR SADIE USE:  This is used to indicate there is at least one active Announcement for the ProgramArea `_**",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://health.gov.on.ca/sadie/fhir/StructureDefinition/AnnouncementsIndicator"
            ]
          }
        ]
      },
      {
        "id": "Organization.extension:AnnouncementsIndicator.id",
        "path": "Organization.extension.id",
        "fixedString": "urn:sadie:organization:announcementIndicator"
      },
      {
        "id": "Organization.extension:AnnouncementsIndicator.url",
        "path": "Organization.extension.url",
        "fixedUri": "https://health.gov.on.ca/sadie/fhir/StructureDefinition/AnnouncementsIndicator"
      },
      {
        "id": "Organization.extension:AssignableRoles",
        "path": "Organization.extension",
        "sliceName": "AssignableRoles",
        "definition": "#### **_`FOR SADIE USE:  This is the canonical url of a ValueSet that has a list of assignable roles for this Program Area.  For example,  for program area OSPD the valueSet will have 'ODSP-DELEGATE' and 'ODSP-DESIGNATE'.`_**",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://health.gov.on.ca/sadie/fhir/StructureDefinition/ProgramAreaAssignableRoles"
            ]
          }
        ]
      },
      {
        "id": "Organization.extension:AssignableRoles.id",
        "path": "Organization.extension.id",
        "fixedString": "urn:sadie:organization:assignableroles"
      },
      {
        "id": "Organization.extension:AssignableRoles.url",
        "path": "Organization.extension.url",
        "fixedUri": "https://health.gov.on.ca/sadie/fhir/StructureDefinition/ProgramAreaAssignableRoles"
      },
      {
        "id": "Organization.extension:Qualifications",
        "path": "Organization.extension",
        "sliceName": "Qualifications",
        "definition": "#### **_`FOR SADIE USE:  This is the canonical URL of a ValueSet that contains qualifications codes for professions this program area considers Requestors.  Example: For ODSP it is http://health.gov.on.ca/sadie/fhir/ValueSet/ODSP-RequestorQualificationTypes`_**",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://health.gov.on.ca/sadie/fhir/StructureDefinition/ProgramAreaQualifications"
            ]
          }
        ]
      },
      {
        "id": "Organization.extension:Qualifications.id",
        "path": "Organization.extension.id",
        "fixedString": "urn:sadie:organization:qualification"
      },
      {
        "id": "Organization.extension:Qualifications.url",
        "path": "Organization.extension.url",
        "fixedUri": "https://health.gov.on.ca/sadie/fhir/StructureDefinition/ProgramAreaQualifications"
      },
      {
        "id": "Organization.extension:Qualifications.value[x]",
        "path": "Organization.extension.value[x]",
        "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).\n\nhttp://health.gov.on.ca/sadie/fhir/ValueSet/ODSP-RequestorQualificationTypes",
        "min": 1
      },
      {
        "id": "Organization.identifier",
        "path": "Organization.identifier",
        "definition": "#### **_`FOR SADIE USE:  This is the internal code for this Program Area in our internal CodeSystem.  It will be used to help configure the Program Area`_**\n\nIdentifier for the organization that is used to identify the organization across multiple disparate systems.",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Organization.identifier.use",
        "path": "Organization.identifier.use",
        "max": "0"
      },
      {
        "id": "Organization.identifier.type",
        "path": "Organization.identifier.type",
        "max": "0"
      },
      {
        "id": "Organization.identifier.system",
        "path": "Organization.identifier.system",
        "definition": "#### **_`FOR SADIE USE:  The system is always our internal code system,  https://health.gov.on.ca/sadie/fhir/CodeSystem/FlexForms-Internal-Complete`_**\n\nEstablishes the namespace for the value - that is, a URL that describes a set values that are unique.",
        "min": 1,
        "fixedString": "https://health.gov.on.ca/sadie/fhir/CodeSystem/FlexForms-Internal-Complete"
      },
      {
        "id": "Organization.identifier.value",
        "path": "Organization.identifier.value",
        "definition": "#### **_`FOR SADIE USE:  This is the internal code for the Program Area`_**\n\nThe portion of the identifier typically relevant to the user and which is unique within the context of the system.",
        "binding": {
          "strength": "required",
          "valueSet": "http://health.gov.on.ca/sadie/fhir/ValueSet/FlexForms-ProgramAreas"
        }
      },
      {
        "id": "Organization.identifier.period",
        "path": "Organization.identifier.period",
        "max": "0"
      },
      {
        "id": "Organization.identifier.assigner",
        "path": "Organization.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Organization.active",
        "path": "Organization.active",
        "definition": "#### **_`FOR SADIE USE:  If it is active it will appear on the FlexForms UI`_**\n\nWhether the organization's record is still in active use.",
        "min": 1
      },
      {
        "id": "Organization.type",
        "path": "Organization.type",
        "definition": "#### **_`FOR SADIE USE:  This no longer needs to be populated.  There is now only one Profile that based on the Organization resource.`_**\n\nThe kind(s) of organization that this is.",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Organization.type.coding",
        "path": "Organization.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Organization.type.coding.system",
        "path": "Organization.type.coding.system",
        "definition": "#### **_`FOR SADIE USE:  The system should always be the interal code system https://health.gov.on.ca/sadie/fhir/CodeSystem/FlexForms-Internal-Complete`_**\n\nEstablishes the namespace for the value - that is, a URL that describes a set values that are unique.",
        "min": 1,
        "fixedString": "https://health.gov.on.ca/sadie/fhir/CodeSystem/FlexForms-Internal-Complete"
      },
      {
        "id": "Organization.type.coding.version",
        "path": "Organization.type.coding.version",
        "max": "0"
      },
      {
        "id": "Organization.type.coding.code",
        "path": "Organization.type.coding.code",
        "min": 1,
        "binding": {
          "strength": "required",
          "valueSet": "http://health.gov.on.ca/sadie/fhir/ValueSet/FlexForms-OrganizationTypes"
        }
      },
      {
        "id": "Organization.type.coding.display",
        "path": "Organization.type.coding.display",
        "max": "0"
      },
      {
        "id": "Organization.type.coding.userSelected",
        "path": "Organization.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Organization.type.text",
        "path": "Organization.type.text",
        "max": "0"
      },
      {
        "id": "Organization.name",
        "path": "Organization.name",
        "definition": "#### **_`FOR SADIE USE:  This is the name of the Program Area that appears on the user interface`_**\n\nA name associated with the organization.",
        "min": 1
      },
      {
        "id": "Organization.alias",
        "path": "Organization.alias",
        "definition": "#### **_`FOR SADIE USE:  This is the html description and footer. Description is always the first element and footer is second element.`_**",
        "slicing": {
          "description": "#### **_`FOR SADIE USE:  This is the html description and footer. Description is always the first element and footer is second element.`_**",
          "ordered": true,
          "rules": "open"
        },
        "max": "3"
      },
      {
        "id": "Organization.alias:description",
        "path": "Organization.alias",
        "definition": "#### **_`FOR SADIE USE:  This is the HTML description.`_**",
        "sliceName": "description",
        "max": "1"
      },
      {
        "id": "Organization.alias:header",
        "path": "Organization.alias",
        "sliceName": "header",
        "definition": "#### **_`FOR SADIE USE:  This is the HTML header.`_**",
        "max": "1"
      },
      {
        "id": "Organization.alias:footer",
        "path": "Organization.alias",
        "sliceName": "footer",
        "definition": "#### **_`FOR SADIE USE:  This is the HTML footer.`_**",
        "max": "1"
      },
      {
        "id": "Organization.telecom",
        "path": "Organization.telecom",
        "max": "0"
      },
      {
        "id": "Organization.address",
        "path": "Organization.address",
        "definition": "#### **_`FOR SADIE USE:  This is used to populate the address block in the pdf.`_**",
        "max": "1"
      },
      {
        "id": "Organization.address.use",
        "path": "Organization.address.use",
        "max": "0"
      },
      {
        "id": "Organization.address.type",
        "path": "Organization.address.type",
        "max": "0"
      },
      {
        "id": "Organization.address.text",
        "path": "Organization.address.text",
        "definition": "#### **_`FOR SADIE USE:  This is used to populate the address block in the pdf.`_**"
      },
      {
        "id": "Organization.address.line",
        "path": "Organization.address.line",
        "max": "0"
      },
      {
        "id": "Organization.address.city",
        "path": "Organization.address.city",
        "max": "0"
      },
      {
        "id": "Organization.address.district",
        "path": "Organization.address.district",
        "max": "0"
      },
      {
        "id": "Organization.address.state",
        "path": "Organization.address.state",
        "max": "0"
      },
      {
        "id": "Organization.address.postalCode",
        "path": "Organization.address.postalCode",
        "max": "0"
      },
      {
        "id": "Organization.address.country",
        "path": "Organization.address.country",
        "max": "0"
      },
      {
        "id": "Organization.address.period",
        "path": "Organization.address.period",
        "max": "0"
      },
      {
        "id": "Organization.contact",
        "path": "Organization.contact",
        "max": "0"
      },
      {
        "id": "Organization.partOf",
        "path": "Organization.partOf",
        "max": "0"
      },
      {
        "id": "Organization.endpoint",
        "path": "Organization.endpoint",
        "max": "0"
      }
    ]
  }
}