{
  "resourceType": "StructureDefinition",
  "id": "ext-MedicationDispense-PrescriberLicense",
  "url": "https://bpcs.exchange/fhir/StructureDefinition/ext-MedicationDispense-PrescriberLicense",
  "name": "MedicationDispensePrescriberLicense",
  "title": "Medication Dispense Prescriber License",
  "status": "active",
  "experimental": false,
  "description": "Codes identitying the type of provider that prescribed the dispensed drug",
  "fhirVersion": "5.0.0",
  "mapping": [
    {
      "identity": "BPCS",
      "name": "Internal BPCS API"
    }
  ],
  "kind": "complex-type",
  "abstract": false,
  "context": [
    {
      "type": "element",
      "expression": "MedicationDispense"
    }
  ],
  "type": "Extension",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Extension",
        "path": "Extension",
        "definition": "Codes identitying the type of provider that prescribed the dispensed drug",
        "comment": "Handled as an extension to eliminate the need to walk through two contained resources (MedicationRequest and Practitioner) for a single non-typical element",
        "max": "1"
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "fixedUri": "https://bpcs.exchange/fhir/StructureDefinition/ext-MedicationDispense-PrescriberLicense"
      },
      {
        "id": "Extension.value[x]",
        "path": "Extension.value[x]",
        "type": [
          {
            "code": "Coding",
            "profile": [
              "https://bpcs.exchange/fhir/StructureDefinition/profile-Coding-simple"
            ]
          }
        ],
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSet": "https://bpcs.exchange/fhir/ValueSet/vs-PrescriberLicense"
        },
        "mapping": [
          {
            "identity": "BPCS",
            "map": "ReceiptDTO.licenseIdRef"
          }
        ]
      }
    ]
  }
}