{
  "resourceType": "StructureDefinition",
  "id": "ClosedOnSite",
  "url": "http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/ClosedOnSite/v1",
  "version": "1.0",
  "name": "ClosedOnSite",
  "status": "active",
  "date": "2024-01-10T14:25:44.7798514+00:00",
  "description": "This extension is used to indicate when a registration has been completed on site, including the\r\nreason for it, the associated note and whether the patient has signed.",
  "fhirVersion": "4.0.1",
  "kind": "complex-type",
  "abstract": false,
  "context": [
    {
      "type": "element",
      "expression": "Encounter"
    }
  ],
  "type": "Extension",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "fixedUri": "http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/ClosedOnSite/v1"
      },
      {
        "id": "Extension.value[x]",
        "path": "Extension.value[x]",
        "type": [
          {
            "code": "boolean"
          },
          {
            "code": "string"
          },
          {
            "code": "Coding"
          }
        ]
      },
      {
        "id": "Extension.value[x].extension",
        "path": "Extension.value[x].extension",
        "min": 1
      },
      {
        "id": "Extension.value[x].extension:cause",
        "path": "Extension.value[x].extension",
        "sliceName": "cause",
        "definition": "Cause if closed on site.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/Cause/v1"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Extension.value[x].extension:note",
        "path": "Extension.value[x].extension",
        "sliceName": "note",
        "definition": "Note related to the cause.",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/Note/v1"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Extension.value[x].extension:signature",
        "path": "Extension.value[x].extension",
        "sliceName": "signature",
        "definition": "Must be used if cause is “Completed against given advice”. Flag to tell if the patient has signed that advice is given from the prehospital staff.\r\n\r\nTrue if patient signs “Completed against given advice”.\r\n\r\nFalse if patient will not sign “Completed against given advice”.",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/Signature/v1"
            ]
          }
        ],
        "isModifier": false
      }
    ]
  }
}