{
  "resourceType": "StructureDefinition",
  "id": "90b2cce1-7638-4281-bf2b-0b6a1cba97b7",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2021-06-14T12:35:05.905+00:00"
  },
  "text": {
    "status": "generated",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">Testing</div>"
  },
  "url": "https://health.gov.on.ca/sadie/fhir/StructureDefinition/ProgramArea",
  "name": "ProgramArea",
  "title": "Organization (Program Area)",
  "status": "draft",
  "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",
  "snapshot": {},
  "differential": {
    "element": [
      {
        "id": "Organization",
        "path": "Organization",
        "comment": "#### **_`FOR SADIE USE:  This is a Program Area. It uses the following:`_**\r\n\r\n- name  (name on the user interface)\r\n- alias (short description on the user interface)\r\n- help hyperlink (used by the user interface)\r\n- contact us hyperlink (used by the user interface)\r\n- a business identifier  (used internally for configuration)\r\n- a type which is always 'program'  (used to easily identify the type of organization record this is)"
      },
      {
        "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 organization`_**\r\n\r\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",
        "max": "0"
      },
      {
        "id": "Organization.identifier.value",
        "path": "Organization.identifier.value",
        "definition": "#### **_`FOR SADIE USE:  This is the internal code for the Program Area`_**\r\n\r\nThe portion of the identifier typically relevant to the user and which is unique within the context of the system.",
        "binding": {
          "strength": "required",
          "valueSetUnknownType_StructureDefinition.differential.element[5].binding": "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.type",
        "path": "Organization.type",
        "definition": "#### **_`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.`_**\r\n\r\nThe kind(s) of organization that this is.",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Organization.type.coding",
        "path": "Organization.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Organization.type.coding.system",
        "path": "Organization.type.coding.system",
        "max": "0"
      },
      {
        "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",
          "valueSetUnknownType_StructureDefinition.differential.element[12].binding": "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`_**\r\n\r\nA name associated with the organization.",
        "min": 1
      },
      {
        "id": "Organization.alias",
        "path": "Organization.alias",
        "definition": "#### **_`FOR SADIE USE:  This is the short description of the Program Area that appears on the user interface.`_**\r\n\r\nA list of alternate names that the organization is known as, or was known as in the past.",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Organization.telecom",
        "path": "Organization.telecom",
        "max": "0"
      },
      {
        "id": "Organization.address",
        "path": "Organization.address",
        "max": "0"
      },
      {
        "id": "Organization.partOf",
        "path": "Organization.partOf",
        "max": "0"
      },
      {
        "id": "Organization.contact",
        "path": "Organization.contact",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "purpose.coding.code"
            }
          ],
          "rules": "open"
        },
        "definition": "#### **_`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`_**\r\n\r\nContact for the organization for a certain purpose.",
        "max": "2"
      },
      {
        "id": "Organization.contact:helpLink",
        "path": "Organization.contact",
        "sliceName": "helpLink",
        "short": "This is the Help Link for the Program Area",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Organization.contact:contactLink",
        "path": "Organization.contact",
        "sliceName": "contactLink",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Organization.endpoint",
        "path": "Organization.endpoint",
        "max": "0"
      }
    ]
  }
}