{
  "resourceType": "StructureDefinition",
  "url": "http://www.agfa.com/ei/fhir/StructureDefinition/ei_requestedprocedure_extension",
  "name": "Requested_Procedure_Extension",
  "status": "draft",
  "fhirVersion": "4.0.0",
  "mapping": [
    {
      "identity": "agfa-ei-model",
      "name": "Enterprise Imaging DB model"
    }
  ],
  "kind": "complex-type",
  "abstract": false,
  "context": [
    {
      "type": "element",
      "expression": "ServiceRequest"
    }
  ],
  "type": "Extension",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation": "constraint",
  "snapshot": {},
  "differential": {
    "element": [
      {
        "id": "Extension.extension",
        "path": "Extension.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Extension.extension:Type",
        "path": "Extension.extension",
        "sliceName": "Type",
        "min": 1,
        "max": "1",
        "binding": {
          "strength": "required",
          "valueSet": "http://www.agfa.com/ei/fhir/ValueSet/ei-vs-servicerequest-type"
        }
      },
      {
        "id": "Extension.extension:Type.url",
        "path": "Extension.extension.url",
        "fixedUri": "Type"
      },
      {
        "id": "Extension.extension:Type.value[x]",
        "path": "Extension.extension.value[x]",
        "code": [
          {
            "system": "http://www.agfa.com/ei/fhir/ValueSet/ei-vs-servicerequest-type",
            "code": "REQUESTED_PROCEDURE",
            "display": "REQUESTED_PROCEDURE"
          }
        ],
        "short": "SERVICE_REQUEST | REQUESTED_PROCEDURE | SCHEDULED_PROCEDURE_STEP",
        "min": 1,
        "type": [
          {
            "code": "code",
            "profile": [
              "http://www.agfa.com/ei/fhir/ValueSet/ei-vs-servicerequest-type"
            ]
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "http://www.agfa.com/ei/fhir/ValueSet/ei-vs-servicerequest-type"
        }
      },
      {
        "id": "Extension.extension:Laterality",
        "path": "Extension.extension",
        "sliceName": "Laterality",
        "max": "1",
        "mapping": [
          {
            "identity": "agfa-ei-model",
            "map": "TODO: should most probably be a code system - value set -> as indicated by Peter K  -> maybe a genereal EI code system and then separate value sets with limited sets of codes to support? I know I've not don't this properly... it's just a 'placeholder' to address after reviewing the profiles ..."
          }
        ]
      },
      {
        "id": "Extension.extension:Laterality.url",
        "path": "Extension.extension.url",
        "fixedUri": "Laterality"
      },
      {
        "id": "Extension.extension:Laterality.value[x]",
        "path": "Extension.extension.value[x]",
        "code": [
          {
            "code": "L",
            "display": "Left"
          },
          {
            "code": "R",
            "display": "Right"
          },
          {
            "code": "B",
            "display": "Both"
          },
          {
            "code": "U",
            "display": "Unilateral"
          },
          {
            "code": "empty",
            "display": "Not defined"
          }
        ],
        "type": [
          {
            "code": "code"
          }
        ]
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "fixedUri": "http://www.agfa.com/ei/fhir/StructureDefinition/ei_requestedprocedure_extension"
      },
      {
        "id": "Extension.value[x]",
        "path": "Extension.value[x]",
        "max": "0"
      }
    ]
  }
}