{
  "resourceType": "StructureDefinition",
  "id": "ServiceRequest-tracAI-Order",
  "url": "https://tracai.de/fhir/StructureDefinition/ServiceRequest-tracAI-Order",
  "version": "0.1.0",
  "name": "ServiceRequest_tracAI_Order",
  "title": "ServiceRequest-tracAI-Order",
  "status": "draft",
  "publisher": "tracAI",
  "description": "Profil auf ServiceRequest, um ausschließlich die erlaubten tracAI-Order-Felder per JSON/FHIR zu übertragen. Keine Stammdaten, keine Bilddaten.",
  "fhirVersion": "4.3.0",
  "kind": "resource",
  "abstract": false,
  "type": "ServiceRequest",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/ServiceRequest",
  "derivation": "constraint",
  "differential": {
    "element": [
      { "id": "ServiceRequest", "path": "ServiceRequest" },

      {
        "id": "ServiceRequest.meta",
        "path": "ServiceRequest.meta",
        "min": 0
      },

      {
        "id": "ServiceRequest.status",
        "path": "ServiceRequest.status",
        "min": 1,
        "fixedCode": "active",
        "short": "Fix auf 'active'",
        "definition": "Der Status ist für diese Übertragung fest auf 'active' gesetzt (Auftrag gesendet)."
      },

      {
        "id": "ServiceRequest.code",
        "path": "ServiceRequest.code",
        "min": 1,
        "binding": {
          "strength": "required",
          "valueSet": "https://tracai.de/fhir/ValueSet/servicerequest-type"
        },
        "short": "Typ der ServiceRequest fixiert",
        "definition": "Kennzeichnet, dass es sich um eine tracAI-Order-ServiceRequest handelt."
      },
      { "id": "ServiceRequest.code.coding", "path": "ServiceRequest.code.coding", "min": 1 },
      { "id": "ServiceRequest.code.coding.system", "path": "ServiceRequest.code.coding.system", "min": 1, "fixedUri": "https://tracai.de/fhir/CodeSystem/servicerequest-type" },
      { "id": "ServiceRequest.code.coding.code", "path": "ServiceRequest.code.coding.code", "min": 1, "fixedCode": "tracai-order" },

      { "id": "ServiceRequest.subject", "path": "ServiceRequest.subject", "max": "0", "short": "Keine Stammdaten", "definition": "Patientenbezug wird nicht übertragen." },
      { "id": "ServiceRequest.occurrence[x]", "path": "ServiceRequest.occurrence[x]", "max": "0", "short": "Keine effektive Zeit" },
      { "id": "ServiceRequest.requester", "path": "ServiceRequest.requester", "max": "0" },
      { "id": "ServiceRequest.performer", "path": "ServiceRequest.performer", "max": "0" },
      { "id": "ServiceRequest.performerType", "path": "ServiceRequest.performerType", "max": "0" },
      { "id": "ServiceRequest.reasonCode", "path": "ServiceRequest.reasonCode", "max": "0" },
      { "id": "ServiceRequest.bodySite", "path": "ServiceRequest.bodySite", "max": "0" },
      { "id": "ServiceRequest.specimen", "path": "ServiceRequest.specimen", "max": "0" },

      {
        "id": "ServiceRequest.extension",
        "path": "ServiceRequest.extension",
        "min": 1,
        "slicing": {
          "discriminator": [ { "type": "value", "path": "url" } ],
          "ordered": false,
          "rules": "closed"
        },
        "short": "Nur die folgenden Extensions sind erlaubt"
      },

      { "id": "ServiceRequest.extension:orderid-ext", "path": "ServiceRequest.extension", "sliceName": "orderid-ext", "min": 1, "max": "1", "type": [ { "code": "Extension", "profile": [ "https://tracai.de/fhir/StructureDefinition/ext-orderid-ext" ] } ] },
      { "id": "ServiceRequest.extension:fileserver", "path": "ServiceRequest.extension", "sliceName": "fileserver", "min": 1, "max": "1", "type": [ { "code": "Extension", "profile": [ "https://tracai.de/fhir/StructureDefinition/ext-fileserver" ] } ] },
      { "id": "ServiceRequest.extension:filename-compressed", "path": "ServiceRequest.extension", "sliceName": "filename-compressed", "min": 1, "max": "1", "type": [ { "code": "Extension", "profile": [ "https://tracai.de/fhir/StructureDefinition/ext-filename-compressed" ] } ] },
      { "id": "ServiceRequest.extension:filecount", "path": "ServiceRequest.extension", "sliceName": "filecount", "min": 1, "max": "1", "type": [ { "code": "Extension", "profile": [ "https://tracai.de/fhir/StructureDefinition/ext-filecount" ] } ] },
      { "id": "ServiceRequest.extension:filesize", "path": "ServiceRequest.extension", "sliceName": "filesize", "min": 1, "max": "1", "type": [ { "code": "Extension", "profile": [ "https://tracai.de/fhir/StructureDefinition/ext-filesize" ] } ] },
      { "id": "ServiceRequest.extension:filehash", "path": "ServiceRequest.extension", "sliceName": "filehash", "min": 1, "max": "1", "type": [ { "code": "Extension", "profile": [ "https://tracai.de/fhir/StructureDefinition/ext-filehash" ] } ] },
      { "id": "ServiceRequest.extension:creation-date", "path": "ServiceRequest.extension", "sliceName": "creation-date", "min": 1, "max": "1", "type": [ { "code": "Extension", "profile": [ "https://tracai.de/fhir/StructureDefinition/ext-creation-date" ] } ] },
      { "id": "ServiceRequest.extension:send-fhir-date", "path": "ServiceRequest.extension", "sliceName": "send-fhir-date", "min": 1, "max": "1", "type": [ { "code": "Extension", "profile": [ "https://tracai.de/fhir/StructureDefinition/ext-send-fhir-date" ] } ] },
      { "id": "ServiceRequest.extension:well-finish-date", "path": "ServiceRequest.extension", "sliceName": "well-finish-date", "min": 0, "max": "1", "type": [ { "code": "Extension", "profile": [ "https://tracai.de/fhir/StructureDefinition/ext-well-finish-date" ] } ] },
      { "id": "ServiceRequest.extension:plattenid", "path": "ServiceRequest.extension", "sliceName": "plattenid", "min": 0, "max": "1", "type": [ { "code": "Extension", "profile": [ "https://tracai.de/fhir/StructureDefinition/ext-plattenid" ] } ] },
      { "id": "ServiceRequest.extension:teiluntersuchung", "path": "ServiceRequest.extension", "sliceName": "teiluntersuchung", "min": 0, "max": "*", "type": [ { "code": "Extension", "profile": [ "https://tracai.de/fhir/StructureDefinition/ext-teiluntersuchung" ] } ] },
      { "id": "ServiceRequest.extension:mikroscopeinstellung", "path": "ServiceRequest.extension", "sliceName": "mikroscopeinstellung", "min": 0, "max": "*", "type": [ { "code": "Extension", "profile": [ "https://tracai.de/fhir/StructureDefinition/ext-mikroscopeinstellung" ] } ] }
    ]
  }
}