{
  "resourceType": "StructureDefinition",
  "url": "http://bookplan.dk/fhir/StructureDefinition/ExecutionStatus",
  "version": "1.0",
  "name": "ExecutionStatus",
  "status": "active",
  "publisher": "Capgemini Danmark A/S",
  "fhirVersion": "1.0.2",
  "kind": "resource",
  "constrainedType": "DomainResource",
  "abstract": false,
  "contextType": "resource",
  "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
  "differential": {
    "element": [
      {
        "path": "DomainResource.id",
        "min": 1,
        "maxLength": 36
      },
      {
        "path": "DomainResource.meta",
        "max": "0"
      },
      {
        "path": "DomainResource.implicitRules",
        "max": "0"
      },
      {
        "path": "DomainResource.language",
        "max": "0"
      },
      {
        "path": "DomainResource.text",
        "max": "0"
      },
      {
        "path": "DomainResource.contained",
        "max": "0"
      },
      {
        "path": "DomainResource.extension",
        "slicing": {
          "discriminator": [
            "url"
          ],
          "rules": "closed"
        }
      },
      {
        "path": "DomainResource.extension",
        "name": "shortName",
        "short": "The short name of a number of FHIR-Resources.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "shortName"
            ]
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "path": "DomainResource.extension.id",
        "max": "0"
      },
      {
        "path": "DomainResource.extension.valueString",
        "min": 1
      },
      {
        "path": "DomainResource.extension",
        "name": "oldNameWithLocalName",
        "short": "The local name of an ExecutionStatus",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "name"
            ]
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "path": "DomainResource.extension.id",
        "max": "0"
      },
      {
        "path": "DomainResource.extension.valueString",
        "min": 1
      },
      {
        "path": "DomainResource.extension",
        "name": "name",
        "short": "The name of a Anesthesia, ExecutionStatus, Service, ServiceCategory or ServiceType resource.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://bookplan.dk/fhir/StructureDefinition/executionStatus-name"
            ]
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "path": "DomainResource.extension.id",
        "max": "0"
      },
      {
        "path": "DomainResource.extension.valueString",
        "min": 1
      },
      {
        "path": "DomainResource.extension",
        "name": "localName",
        "short": "The local name of an ExecutionStatus",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://bookplan.dk/fhir/StructureDefinition/executionStatus-localName"
            ]
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "path": "DomainResource.extension.id",
        "max": "0"
      },
      {
        "path": "DomainResource.extension.valueString",
        "min": 1
      },
      {
        "path": "DomainResource.extension",
        "name": "active",
        "short": "Whether or not a Anesthesia, ExecutionStatus, Service, ServiceCategory or ServiceType resource is currently active.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "active"
            ]
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "path": "DomainResource.extension.id",
        "max": "0"
      },
      {
        "path": "DomainResource.extension.valueBoolean",
        "min": 1
      },
      {
        "path": "DomainResource.extension",
        "name": "order",
        "short": "Where this execution status is placed in an ordered list",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "order"
            ]
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "path": "DomainResource.extension.id",
        "max": "0"
      },
      {
        "path": "DomainResource.extension.valuePositiveInt",
        "min": 1
      },
      {
        "path": "DomainResource.extension",
        "name": "type",
        "short": "The type of execution status with the possible values being: PREOP|OP|POSTOP",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "type"
            ]
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "path": "DomainResource.extension.id",
        "max": "0"
      },
      {
        "path": "DomainResource.extension.valueCode",
        "min": 1
      },
      {
        "path": "DomainResource.extension",
        "name": "statustype",
        "short": "The type of status based on NepoStatus-type (1:16)",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "statustype"
            ]
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "path": "DomainResource.extension.id",
        "max": "0"
      },
      {
        "path": "DomainResource.extension.valuePositiveInt",
        "min": 1
      },
      {
        "path": "DomainResource.extension",
        "name": "serviceType",
        "short": "A reference to the type of service associated with a ExecutionStatus or Service resource.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "serviceType"
            ]
          }
        ],
        "isModifier": false,
        "isSummary": true
      },
      {
        "path": "DomainResource.extension.id",
        "max": "0"
      },
      {
        "path": "DomainResource.extension.valueReference",
        "min": 1
      },
      {
        "path": "DomainResource.extension.valueReference.id",
        "max": "0"
      },
      {
        "path": "DomainResource.extension.valueReference.reference",
        "min": 1
      },
      {
        "path": "DomainResource.extension.valueReference.display",
        "max": "0"
      },
      {
        "path": "DomainResource.extension",
        "name": "identifierSimpleUrl",
        "short": "The Bookplan specific technical id, also known as the oid, of a Anesthesia, ExecutionStatus, Service, ServiceCategory or ServiceType resource.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "identifier"
            ]
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "path": "DomainResource.extension.id",
        "max": "0"
      },
      {
        "path": "DomainResource.extension.valueIdentifier",
        "min": 1
      },
      {
        "path": "DomainResource.extension.valueIdentifier.id",
        "max": "0"
      },
      {
        "path": "DomainResource.extension.valueIdentifier.use",
        "max": "0"
      },
      {
        "path": "DomainResource.extension.valueIdentifier.type",
        "max": "0"
      },
      {
        "path": "DomainResource.extension.valueIdentifier.system",
        "min": 1,
        "fixedUri": "BookplanExecutionStatusOId"
      },
      {
        "path": "DomainResource.extension.valueIdentifier.value",
        "min": 1
      },
      {
        "path": "DomainResource.extension.valueIdentifier.period",
        "max": "0"
      },
      {
        "path": "DomainResource.extension.valueIdentifier.assigner",
        "max": "0"
      }
    ]
  }
}