{
  "resourceType": "StructureDefinition",
  "url": "http://bookplan.dk/fhir/StructureDefinition/Service",
  "version": "1.0",
  "name": "Service",
  "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": "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": "anesthesia",
        "short": "Anesthesia in Bookplan of an Appointment or a Service resource.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "anesthesia"
            ]
          }
        ],
        "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": "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": "name",
        "short": "The name of a Anesthesia, ExecutionStatus, Service, ServiceCategory or ServiceType resource.",
        "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": "patientDisplayName",
        "short": "Name which can be displayed for the patient.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://bookplan.dk/fhir/StructureDefinition/service-patientDisplayName"
            ]
          }
        ],
        "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": "ActualOperativePeriod",
        "short": "The actual operative period of a service.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "actualOperativePeriod"
            ]
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "path": "DomainResource.extension.id",
        "max": "0"
      },
      {
        "path": "DomainResource.extension.valuePositiveInt",
        "min": 1
      },
      {
        "path": "DomainResource.extension",
        "name": "serviceCategory",
        "short": "List of service categories this service refers to",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "serviceCategory"
            ]
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "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": "arrivalLocationAtCitizen",
        "short": "Whether or not an appointment with this service is suited to take place at the citizens home address (dk: Hos borger)",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://bookplan.dk/fhir/StructureDefinition/service-arrivalLocationAtCitizen"
            ]
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "path": "DomainResource.extension.id",
        "max": "0"
      },
      {
        "path": "DomainResource.extension.valueBoolean",
        "min": 1
      },
      {
        "path": "DomainResource.extension",
        "name": "arrivalLocationVirtual",
        "short": "Whether or not an appointment with this service is suited to take place virtually (dk: Virtuelt)",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://bookplan.dk/fhir/StructureDefinition/service-arrivalLocationVirtual"
            ]
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "path": "DomainResource.extension.id",
        "max": "0"
      },
      {
        "path": "DomainResource.extension.valueBoolean",
        "min": 1
      },
      {
        "path": "DomainResource.extension",
        "name": "arrivalLocationViaPrimaryLocation",
        "short": "Whether or not an appointment with this service is suited to take place at the arrival location of the primary location (dk: via primær lokation",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://bookplan.dk/fhir/StructureDefinition/service-arrivalLocationViaPrimaryLocation"
            ]
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "path": "DomainResource.extension.id",
        "max": "0"
      },
      {
        "path": "DomainResource.extension.valueBoolean",
        "min": 1
      },
      {
        "path": "DomainResource.extension",
        "name": "arrivalLocation",
        "short": "List of arrival locations this service refers to",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://bookplan.dk/fhir/StructureDefinition/service-arrivalLocation"
            ]
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "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": "arrivalDateTimeOffset",
        "short": "Expected offset from the appointment start to the patients planned arrival date and time using this service. The offset is defined in minutes",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://bookplan.dk/fhir/StructureDefinition/service-arrivalDateTimeOffset"
            ]
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "path": "DomainResource.extension.id",
        "max": "0"
      },
      {
        "path": "DomainResource.extension.valuePositiveInt",
        "min": 1
      },
      {
        "path": "DomainResource.extension",
        "name": "patientParticipationRequired",
        "short": "Whether or not the patient is required to participate in the appointment. Possible values: required, information-only",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://bookplan.dk/fhir/StructureDefinition/service-patientParticipationRequired"
            ]
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "path": "DomainResource.extension.id",
        "max": "0"
      },
      {
        "path": "DomainResource.extension.valueCode",
        "min": 1
      },
      {
        "path": "DomainResource.extension",
        "name": "subscriptionMarkerCode",
        "short": "List of subscription marker codes at the service",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://bookplan.dk/fhir/StructureDefinition/service-subscriptionMarkerCode"
            ]
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "path": "DomainResource.extension.id",
        "max": "0"
      },
      {
        "path": "DomainResource.extension.valueCode",
        "min": 1
      },
      {
        "path": "DomainResource.extension",
        "name": "devicePackage",
        "short": "device Package (dk: Koderne for de valgte udstyrspakker i Bookplan",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://bookplan.dk/fhir/StructureDefinition/service-devicePackage-active"
            ]
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "path": "DomainResource.extension.id",
        "max": "0"
      },
      {
        "path": "DomainResource.extension.valueCode",
        "min": 1
      },
      {
        "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": "BookplanServiceOId"
      },
      {
        "path": "DomainResource.extension.valueIdentifier.value",
        "min": 1
      },
      {
        "path": "DomainResource.extension.valueIdentifier.period",
        "max": "0"
      },
      {
        "path": "DomainResource.extension.valueIdentifier.assigner",
        "max": "0"
      },
      {
        "path": "DomainResource.extension",
        "name": "intendedParticipant",
        "short": "List of intended participants for this service (Dk: opgaveressourcekrav)",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://bookplan.dk/fhir/StructureDefinition/service-intendedParticipant"
            ]
          }
        ],
        "isModifier": false,
        "isSummary": true
      },
      {
        "path": "DomainResource.extension.id",
        "max": "0"
      }
    ]
  }
}