{
  "resourceType": "StructureDefinition",
  "url": "https://medico-emr.net/medico/r4/sd/ServiceRequest_Base_1",
  "name": "ServiceRequest_Base_1",
  "status": "draft",
  "description": "Basisprofile for the given service request profiles",
  "fhirVersion": "4.0.0",
  "kind": "resource",
  "abstract": true,
  "type": "ServiceRequest",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/ServiceRequest",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "ServiceRequest.id",
        "path": "ServiceRequest.id",
        "min": 1
      },
      {
        "id": "ServiceRequest.meta",
        "path": "ServiceRequest.meta",
        "min": 1
      },
      {
        "id": "ServiceRequest.meta.id",
        "path": "ServiceRequest.meta.id",
        "max": "0"
      },
      {
        "id": "ServiceRequest.meta.versionId",
        "path": "ServiceRequest.meta.versionId",
        "max": "0"
      },
      {
        "id": "ServiceRequest.meta.source",
        "path": "ServiceRequest.meta.source",
        "max": "0"
      },
      {
        "id": "ServiceRequest.meta.profile",
        "path": "ServiceRequest.meta.profile",
        "min": 1,
        "max": "1"
      },
      {
        "id": "ServiceRequest.meta.security",
        "path": "ServiceRequest.meta.security",
        "max": "0"
      },
      {
        "id": "ServiceRequest.implicitRules",
        "path": "ServiceRequest.implicitRules",
        "max": "0"
      },
      {
        "id": "ServiceRequest.language",
        "path": "ServiceRequest.language",
        "max": "0"
      },
      {
        "id": "ServiceRequest.text",
        "path": "ServiceRequest.text",
        "max": "0"
      },
      {
        "id": "ServiceRequest.contained",
        "path": "ServiceRequest.contained",
        "max": "0"
      },
      {
        "id": "ServiceRequest.identifier",
        "path": "ServiceRequest.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        },
        "min": 1,
        "max": "1"
      },
      {
        "id": "ServiceRequest.identifier:medicoResourceId",
        "path": "ServiceRequest.identifier",
        "sliceName": "medicoResourceId",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "https://medico-emr.net/medico/r4/sd/Identifier_medicoResourceId_1"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.instantiatesCanonical",
        "path": "ServiceRequest.instantiatesCanonical",
        "max": "0"
      },
      {
        "id": "ServiceRequest.instantiatesUri",
        "path": "ServiceRequest.instantiatesUri",
        "max": "0"
      },
      {
        "id": "ServiceRequest.basedOn.id",
        "path": "ServiceRequest.basedOn.id",
        "max": "0"
      },
      {
        "id": "ServiceRequest.basedOn.identifier",
        "path": "ServiceRequest.basedOn.identifier",
        "max": "0"
      },
      {
        "id": "ServiceRequest.basedOn.display",
        "path": "ServiceRequest.basedOn.display",
        "max": "0"
      },
      {
        "id": "ServiceRequest.replaces",
        "path": "ServiceRequest.replaces",
        "max": "0"
      },
      {
        "id": "ServiceRequest.priority",
        "path": "ServiceRequest.priority",
        "max": "0"
      },
      {
        "id": "ServiceRequest.doNotPerform",
        "path": "ServiceRequest.doNotPerform",
        "max": "0"
      },
      {
        "id": "ServiceRequest.encounter",
        "path": "ServiceRequest.encounter",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": [
              "https://medico-emr.net/medico/r4/sd/Reference_ContextEncounter_1"
            ],
            "targetProfile": [
              "https://medico-emr.net/medico/r4/sd/Encounter_Case_1"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.performerType",
        "path": "ServiceRequest.performerType",
        "max": "0"
      },
      {
        "id": "ServiceRequest.locationCode",
        "path": "ServiceRequest.locationCode",
        "max": "0"
      },
      {
        "id": "ServiceRequest.locationReference",
        "path": "ServiceRequest.locationReference",
        "max": "0"
      },
      {
        "id": "ServiceRequest.reasonReference",
        "path": "ServiceRequest.reasonReference",
        "max": "0"
      },
      {
        "id": "ServiceRequest.insurance",
        "path": "ServiceRequest.insurance",
        "max": "0"
      },
      {
        "id": "ServiceRequest.supportingInfo",
        "path": "ServiceRequest.supportingInfo",
        "max": "0"
      },
      {
        "id": "ServiceRequest.specimen",
        "path": "ServiceRequest.specimen",
        "max": "0"
      },
      {
        "id": "ServiceRequest.patientInstruction",
        "path": "ServiceRequest.patientInstruction",
        "max": "0"
      },
      {
        "id": "ServiceRequest.relevantHistory",
        "path": "ServiceRequest.relevantHistory",
        "max": "0"
      }
    ]
  }
}