{
  "resourceType": "StructureDefinition",
  "id": "Routing-Options-EXT",
  "url": "http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/Routing-Options-EXT",
  "name": "RoutingOptions",
  "title": "RoutingOptions",
  "status": "draft",
  "description": "Some referral processes may ask the referrer to provide some data that impacts the performer's automated referral processing rules. The rules for how a performer processes their referrals can be unique to the performer. Some examples include routing based on:  \n - The type of referrer (from the hospital, primary care, out of province, etc...) \n - The patient's Postal Code FSA (e.g., K8N, L0L, etc...)  \n - The first letter of the patient's last name (e.g., A-J, K-Z)  To handle this, use this extension, which is included in both the ServiceRequest AND MessageHeader (for add-service-request event) resources. By also including the extension in the MessageHeader, it makes it easier for implementers to find the key routing-related data fields without needing to dig further into the referral payload. \n\n  **Note**: When the eReferral process is combined with a service directory, the directory should be able to publish the valueSet of referral options that are available for a selected service.",
  "fhirVersion": "4.0.1",
  "kind": "complex-type",
  "abstract": false,
  "context": [
    {
      "type": "element",
      "expression": "ServiceRequest"
    },
    {
      "type": "element",
      "expression": "MessageHeader"
    }
  ],
  "type": "Extension",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Extension",
        "path": "Extension",
        "definition": "For Referral Source Type identification. Only one referral routing object is expected."
      },
      {
        "id": "Extension.extension",
        "path": "Extension.extension",
        "max": "0"
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "fixedUri": "http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/Routing-Options-EXT"
      },
      {
        "id": "Extension.value[x]",
        "path": "Extension.value[x]",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "http://fhir.infoway-inforoute.ca/io/CA-eReC/ValueSet/referral-source-types"
        }
      }
    ]
  }
}