{
  "resourceType": "StructureDefinition",
  "url": "https://digives.gov.lv/fhir/StructureDefinition/ServiceRequest",
  "version": "0.1",
  "name": "ServiceRequest",
  "title": "Pakalpojuma pieprasījums",
  "status": "draft",
  "publisher": "LDVC",
  "fhirVersion": "5.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "ServiceRequest",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/ServiceRequest",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "ServiceRequest.meta",
        "path": "ServiceRequest.meta",
        "short": "Metadata about a resource",
        "definition": "The metadata about a resource. This is content in the resource that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
        "min": 1,
        "type": [
          {
            "code": "Meta",
            "profile": [
              "https://digives.gov.lv/fhir/StructureDefinition/MedicalMeta"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.extension",
        "path": "ServiceRequest.extension",
        "min": 1
      },
      {
        "id": "ServiceRequest.extension:patientGroup",
        "path": "ServiceRequest.extension",
        "sliceName": "patientGroup",
        "min": 1,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://digives.gov.lv/fhir/StructureDefinition/PatientGroup"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.extension:patientContact",
        "path": "ServiceRequest.extension",
        "sliceName": "patientContact",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://digives.gov.lv/fhir/StructureDefinition/PatientContact"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.extension:patientContact.value[x]",
        "path": "ServiceRequest.extension.value[x]",
        "min": 1
      },
      {
        "id": "ServiceRequest.extension:relatedPerson",
        "path": "ServiceRequest.extension",
        "sliceName": "relatedPerson",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://digives.gov.lv/fhir/StructureDefinition/Extension/RelatedPerson"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.extension:statusReason",
        "path": "ServiceRequest.extension",
        "sliceName": "statusReason",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/request-statusReason"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.extension:statusReason.value[x].coding",
        "path": "ServiceRequest.extension.value[x].coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "ServiceRequest.extension:statusReason.value[x].coding.system",
        "path": "ServiceRequest.extension.value[x].coding.system",
        "min": 1,
        "fixedUri": "urn:oid:1.3.6.1.4.1.38760.2.822"
      },
      {
        "id": "ServiceRequest.extension:statusReason.value[x].coding.code",
        "path": "ServiceRequest.extension.value[x].coding.code",
        "min": 1,
        "binding": {
          "strength": "required",
          "valueSet": "http://digives.gov.lv/fhir/ValueSet/1.3.6.1.4.1.38760.2.822"
        }
      },
      {
        "id": "ServiceRequest.extension:statusReason.value[x].coding.display",
        "path": "ServiceRequest.extension.value[x].coding.display",
        "min": 1
      },
      {
        "id": "ServiceRequest.identifier",
        "path": "ServiceRequest.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "type.coding.code"
            }
          ],
          "rules": "closed"
        }
      },
      {
        "id": "ServiceRequest.identifier:placerId",
        "path": "ServiceRequest.identifier",
        "sliceName": "placerId",
        "max": "1"
      },
      {
        "id": "ServiceRequest.identifier:placerId.type",
        "path": "ServiceRequest.identifier.type",
        "min": 1
      },
      {
        "id": "ServiceRequest.identifier:placerId.type.coding",
        "path": "ServiceRequest.identifier.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "ServiceRequest.identifier:placerId.type.coding.code",
        "path": "ServiceRequest.identifier.type.coding.code",
        "min": 1,
        "fixedCode": "PLAC"
      },
      {
        "id": "ServiceRequest.identifier:placerId.type.coding.display",
        "path": "ServiceRequest.identifier.type.coding.display",
        "min": 1
      },
      {
        "id": "ServiceRequest.identifier:placerId.system",
        "path": "ServiceRequest.identifier.system",
        "max": "0"
      },
      {
        "id": "ServiceRequest.identifier:placerId.value",
        "path": "ServiceRequest.identifier.value",
        "min": 1
      },
      {
        "id": "ServiceRequest.identifier:placerId.assigner",
        "path": "ServiceRequest.identifier.assigner",
        "min": 1
      },
      {
        "id": "ServiceRequest.identifier:placerId.assigner.reference",
        "path": "ServiceRequest.identifier.assigner.reference",
        "min": 1
      },
      {
        "id": "ServiceRequest.identifier:placerId.assigner.type",
        "path": "ServiceRequest.identifier.assigner.type",
        "min": 1,
        "fixedUri": "Organization"
      },
      {
        "id": "ServiceRequest.identifier:fillerId",
        "path": "ServiceRequest.identifier",
        "sliceName": "fillerId",
        "max": "1"
      },
      {
        "id": "ServiceRequest.identifier:fillerId.type",
        "path": "ServiceRequest.identifier.type",
        "min": 1
      },
      {
        "id": "ServiceRequest.identifier:fillerId.type.coding",
        "path": "ServiceRequest.identifier.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "ServiceRequest.identifier:fillerId.type.coding.code",
        "path": "ServiceRequest.identifier.type.coding.code",
        "min": 1,
        "fixedCode": "FILL"
      },
      {
        "id": "ServiceRequest.identifier:fillerId.type.coding.display",
        "path": "ServiceRequest.identifier.type.coding.display",
        "min": 1
      },
      {
        "id": "ServiceRequest.identifier:fillerId.value",
        "path": "ServiceRequest.identifier.value",
        "min": 1
      },
      {
        "id": "ServiceRequest.identifier:fillerId.assigner",
        "path": "ServiceRequest.identifier.assigner",
        "min": 1
      },
      {
        "id": "ServiceRequest.identifier:fillerId.assigner.reference",
        "path": "ServiceRequest.identifier.assigner.reference",
        "min": 1
      },
      {
        "id": "ServiceRequest.identifier:fillerId.assigner.type",
        "path": "ServiceRequest.identifier.assigner.type",
        "min": 1,
        "fixedUri": "Organization"
      },
      {
        "id": "ServiceRequest.requisition",
        "path": "ServiceRequest.requisition",
        "min": 1
      },
      {
        "id": "ServiceRequest.requisition.type",
        "path": "ServiceRequest.requisition.type",
        "min": 1
      },
      {
        "id": "ServiceRequest.requisition.type.coding",
        "path": "ServiceRequest.requisition.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "ServiceRequest.requisition.type.coding.code",
        "path": "ServiceRequest.requisition.type.coding.code",
        "min": 1
      },
      {
        "id": "ServiceRequest.requisition.type.coding.display",
        "path": "ServiceRequest.requisition.type.coding.display",
        "min": 1
      },
      {
        "id": "ServiceRequest.requisition.value",
        "path": "ServiceRequest.requisition.value",
        "min": 1
      },
      {
        "id": "ServiceRequest.requisition.assigner",
        "path": "ServiceRequest.requisition.assigner",
        "min": 1
      },
      {
        "id": "ServiceRequest.requisition.assigner.reference",
        "path": "ServiceRequest.requisition.assigner.reference",
        "min": 1
      },
      {
        "id": "ServiceRequest.requisition.assigner.type",
        "path": "ServiceRequest.requisition.assigner.type",
        "min": 1,
        "fixedUri": "Organization"
      },
      {
        "id": "ServiceRequest.intent",
        "path": "ServiceRequest.intent",
        "fixedCode": "original-order"
      },
      {
        "id": "ServiceRequest.category",
        "path": "ServiceRequest.category",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "coding.system"
            }
          ],
          "rules": "closed"
        },
        "min": 2
      },
      {
        "id": "ServiceRequest.category:majorCategory",
        "path": "ServiceRequest.category",
        "sliceName": "majorCategory",
        "min": 1,
        "max": "1"
      },
      {
        "id": "ServiceRequest.category:majorCategory.coding",
        "path": "ServiceRequest.category.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "ServiceRequest.category:majorCategory.coding.system",
        "path": "ServiceRequest.category.coding.system",
        "min": 1,
        "fixedUri": "urn:oid:1.3.6.1.4.1.38760.2.914"
      },
      {
        "id": "ServiceRequest.category:majorCategory.coding.code",
        "path": "ServiceRequest.category.coding.code",
        "min": 1,
        "binding": {
          "strength": "required",
          "valueSet": "http://digives.gov.lv/fhir/ValueSet/1.3.6.1.4.1.38760.2.914"
        }
      },
      {
        "id": "ServiceRequest.category:majorCategory.coding.display",
        "path": "ServiceRequest.category.coding.display",
        "min": 1
      },
      {
        "id": "ServiceRequest.category:minorCategory",
        "path": "ServiceRequest.category",
        "sliceName": "minorCategory",
        "min": 1
      },
      {
        "id": "ServiceRequest.category:minorCategory.coding",
        "path": "ServiceRequest.category.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "ServiceRequest.category:minorCategory.coding.system",
        "path": "ServiceRequest.category.coding.system",
        "min": 1,
        "fixedUri": "urn:oid:1.3.6.1.4.1.38760.2.917"
      },
      {
        "id": "ServiceRequest.category:minorCategory.coding.code",
        "path": "ServiceRequest.category.coding.code",
        "min": 1,
        "binding": {
          "strength": "required",
          "valueSet": "http://digives.gov.lv/fhir/ValueSet/1.3.6.1.4.1.38760.2.917"
        }
      },
      {
        "id": "ServiceRequest.category:minorCategory.coding.display",
        "path": "ServiceRequest.category.coding.display",
        "min": 1
      },
      {
        "id": "ServiceRequest.priority",
        "path": "ServiceRequest.priority",
        "min": 1
      },
      {
        "id": "ServiceRequest.priority.extension:priorityDetails",
        "path": "ServiceRequest.priority.extension",
        "sliceName": "priorityDetails",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://digives.gov.lv/fhir/StructureDefinition/Priority"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "ServiceRequest.code",
        "path": "ServiceRequest.code",
        "min": 1
      },
      {
        "id": "ServiceRequest.code.concept",
        "path": "ServiceRequest.code.concept",
        "min": 1
      },
      {
        "id": "ServiceRequest.code.concept.coding",
        "path": "ServiceRequest.code.concept.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "ServiceRequest.code.concept.coding.system",
        "path": "ServiceRequest.code.concept.coding.system",
        "min": 1,
        "fixedUri": "urn:oid:1.3.6.1.4.1.38760.2.917"
      },
      {
        "id": "ServiceRequest.code.concept.coding.code",
        "path": "ServiceRequest.code.concept.coding.code",
        "min": 1,
        "binding": {
          "strength": "required",
          "valueSet": "http://digives.gov.lv/fhir/ValueSet/1.3.6.1.4.1.38760.2.917"
        }
      },
      {
        "id": "ServiceRequest.code.concept.coding.display",
        "path": "ServiceRequest.code.concept.coding.display",
        "min": 1
      },
      {
        "id": "ServiceRequest.orderDetail",
        "path": "ServiceRequest.orderDetail",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "parameter.code.text"
            }
          ],
          "rules": "closed"
        }
      },
      {
        "id": "ServiceRequest.orderDetail:projection",
        "path": "ServiceRequest.orderDetail",
        "sliceName": "projection",
        "max": "1"
      },
      {
        "id": "ServiceRequest.orderDetail:projection.parameterFocus",
        "path": "ServiceRequest.orderDetail.parameterFocus",
        "min": 1
      },
      {
        "id": "ServiceRequest.orderDetail:projection.parameterFocus.concept",
        "path": "ServiceRequest.orderDetail.parameterFocus.concept",
        "min": 1
      },
      {
        "id": "ServiceRequest.orderDetail:projection.parameterFocus.concept.text",
        "path": "ServiceRequest.orderDetail.parameterFocus.concept.text",
        "min": 1,
        "fixedString": "Projection"
      },
      {
        "id": "ServiceRequest.orderDetail:projection.parameter",
        "path": "ServiceRequest.orderDetail.parameter",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "code.text"
            }
          ],
          "rules": "closed"
        }
      },
      {
        "id": "ServiceRequest.orderDetail:projection.parameter:projectionType",
        "path": "ServiceRequest.orderDetail.parameter",
        "sliceName": "projectionType",
        "max": "1"
      },
      {
        "id": "ServiceRequest.orderDetail:projection.parameter:projectionType.code.text",
        "path": "ServiceRequest.orderDetail.parameter.code.text",
        "min": 1,
        "fixedString": "Projection type"
      },
      {
        "id": "ServiceRequest.orderDetail:projection.parameter:projectionType.value[x]",
        "path": "ServiceRequest.orderDetail.parameter.value[x]",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "ServiceRequest.orderDetail:projection.parameter:projectionType.value[x].coding",
        "path": "ServiceRequest.orderDetail.parameter.value[x].coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "ServiceRequest.orderDetail:projection.parameter:projectionType.value[x].coding.system",
        "path": "ServiceRequest.orderDetail.parameter.value[x].coding.system",
        "min": 1,
        "fixedUri": "urn:oid:1.3.6.1.4.1.38760.2.652"
      },
      {
        "id": "ServiceRequest.orderDetail:projection.parameter:projectionType.value[x].coding.code",
        "path": "ServiceRequest.orderDetail.parameter.value[x].coding.code",
        "min": 1,
        "binding": {
          "strength": "required",
          "valueSet": "http://digives.gov.lv/fhir/ValueSet/1.3.6.1.4.1.38760.2.652"
        }
      },
      {
        "id": "ServiceRequest.orderDetail:projection.parameter:projectionType.value[x].coding.display",
        "path": "ServiceRequest.orderDetail.parameter.value[x].coding.display",
        "min": 1
      },
      {
        "id": "ServiceRequest.orderDetail:projection.parameter:projectionNumber",
        "path": "ServiceRequest.orderDetail.parameter",
        "sliceName": "projectionNumber",
        "max": "1"
      },
      {
        "id": "ServiceRequest.orderDetail:projection.parameter:projectionNumber.code.text",
        "path": "ServiceRequest.orderDetail.parameter.code.text",
        "min": 1,
        "fixedString": "Projection number"
      },
      {
        "id": "ServiceRequest.orderDetail:projection.parameter:projectionNumber.value[x]",
        "path": "ServiceRequest.orderDetail.parameter.value[x]",
        "type": [
          {
            "code": "Quantity"
          }
        ]
      },
      {
        "id": "ServiceRequest.orderDetail:projection.parameter:projectionNumber.value[x].value",
        "path": "ServiceRequest.orderDetail.parameter.value[x].value",
        "min": 1
      },
      {
        "id": "ServiceRequest.orderDetail:substance",
        "path": "ServiceRequest.orderDetail",
        "sliceName": "substance",
        "max": "1"
      },
      {
        "id": "ServiceRequest.orderDetail:substance.parameterFocus",
        "path": "ServiceRequest.orderDetail.parameterFocus",
        "min": 1
      },
      {
        "id": "ServiceRequest.orderDetail:substance.parameterFocus.concept",
        "path": "ServiceRequest.orderDetail.parameterFocus.concept",
        "min": 1
      },
      {
        "id": "ServiceRequest.orderDetail:substance.parameterFocus.concept.text",
        "path": "ServiceRequest.orderDetail.parameterFocus.concept.text",
        "min": 1,
        "fixedString": "Substance"
      },
      {
        "id": "ServiceRequest.orderDetail:substance.parameter.code.text",
        "path": "ServiceRequest.orderDetail.parameter.code.text",
        "min": 1,
        "fixedString": "Substance requirement"
      },
      {
        "id": "ServiceRequest.orderDetail:substance.parameter.value[x]",
        "path": "ServiceRequest.orderDetail.parameter.value[x]",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "ServiceRequest.orderDetail:substance.parameter.value[x].coding",
        "path": "ServiceRequest.orderDetail.parameter.value[x].coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "ServiceRequest.orderDetail:substance.parameter.value[x].coding.system",
        "path": "ServiceRequest.orderDetail.parameter.value[x].coding.system",
        "min": 1,
        "fixedUri": "urn:oid:1.3.6.1.4.1.38760.2.919"
      },
      {
        "id": "ServiceRequest.orderDetail:substance.parameter.value[x].coding.code",
        "path": "ServiceRequest.orderDetail.parameter.value[x].coding.code",
        "min": 1,
        "binding": {
          "strength": "required",
          "valueSet": "http://digives.gov.lv/fhir/ValueSet/1.3.6.1.4.1.38760.2.919"
        }
      },
      {
        "id": "ServiceRequest.orderDetail:substance.parameter.value[x].coding.display",
        "path": "ServiceRequest.orderDetail.parameter.value[x].coding.display",
        "min": 1
      },
      {
        "id": "ServiceRequest.subject.reference",
        "path": "ServiceRequest.subject.reference",
        "min": 1
      },
      {
        "id": "ServiceRequest.subject.type",
        "path": "ServiceRequest.subject.type",
        "min": 1,
        "fixedUri": "Patient"
      },
      {
        "id": "ServiceRequest.occurrence[x]",
        "path": "ServiceRequest.occurrence[x]",
        "min": 1,
        "type": [
          {
            "code": "Period"
          }
        ]
      },
      {
        "id": "ServiceRequest.occurrence[x].start",
        "path": "ServiceRequest.occurrence[x].start",
        "min": 1
      },
      {
        "id": "ServiceRequest.occurrence[x].end",
        "path": "ServiceRequest.occurrence[x].end",
        "min": 1
      },
      {
        "id": "ServiceRequest.authoredOn",
        "path": "ServiceRequest.authoredOn",
        "min": 1
      },
      {
        "id": "ServiceRequest.requester",
        "path": "ServiceRequest.requester",
        "min": 1
      },
      {
        "id": "ServiceRequest.requester.reference",
        "path": "ServiceRequest.requester.reference",
        "min": 1
      },
      {
        "id": "ServiceRequest.requester.type",
        "path": "ServiceRequest.requester.type",
        "min": 1,
        "fixedUri": "PractitionerRole"
      },
      {
        "id": "ServiceRequest.performer",
        "path": "ServiceRequest.performer",
        "max": "1"
      },
      {
        "id": "ServiceRequest.performer.reference",
        "path": "ServiceRequest.performer.reference",
        "min": 1
      },
      {
        "id": "ServiceRequest.performer.type",
        "path": "ServiceRequest.performer.type",
        "min": 1,
        "fixedUri": "Organization"
      },
      {
        "id": "ServiceRequest.location",
        "path": "ServiceRequest.location",
        "min": 1,
        "max": "1"
      },
      {
        "id": "ServiceRequest.location.concept",
        "path": "ServiceRequest.location.concept",
        "min": 1
      },
      {
        "id": "ServiceRequest.location.concept.coding",
        "path": "ServiceRequest.location.concept.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "ServiceRequest.location.concept.coding.system",
        "path": "ServiceRequest.location.concept.coding.system",
        "min": 1,
        "fixedUri": "urn:oid:1.3.6.1.4.1.38760.2.915"
      },
      {
        "id": "ServiceRequest.location.concept.coding.code",
        "path": "ServiceRequest.location.concept.coding.code",
        "min": 1
      },
      {
        "id": "ServiceRequest.location.concept.coding.display",
        "path": "ServiceRequest.location.concept.coding.display",
        "min": 1
      },
      {
        "id": "ServiceRequest.reason",
        "path": "ServiceRequest.reason",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "concept.coding.system"
            }
          ],
          "rules": "closed"
        },
        "min": 2
      },
      {
        "id": "ServiceRequest.reason:serviceReason",
        "path": "ServiceRequest.reason",
        "sliceName": "serviceReason",
        "min": 1,
        "max": "1"
      },
      {
        "id": "ServiceRequest.reason:serviceReason.concept",
        "path": "ServiceRequest.reason.concept",
        "min": 1
      },
      {
        "id": "ServiceRequest.reason:serviceReason.concept.coding",
        "path": "ServiceRequest.reason.concept.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "ServiceRequest.reason:serviceReason.concept.coding.system",
        "path": "ServiceRequest.reason.concept.coding.system",
        "min": 1,
        "fixedUri": "urn:oid:1.3.6.1.4.1.38760.2.916"
      },
      {
        "id": "ServiceRequest.reason:serviceReason.concept.coding.code",
        "path": "ServiceRequest.reason.concept.coding.code",
        "min": 1,
        "binding": {
          "strength": "required",
          "valueSet": "http://digives.gov.lv/fhir/ValueSet/1.3.6.1.4.1.38760.2.916"
        }
      },
      {
        "id": "ServiceRequest.reason:serviceReason.concept.coding.display",
        "path": "ServiceRequest.reason.concept.coding.display",
        "min": 1
      },
      {
        "id": "ServiceRequest.reason:serviceReason.reference",
        "path": "ServiceRequest.reason.reference",
        "max": "0"
      },
      {
        "id": "ServiceRequest.reason:primaryICDDiagnosis",
        "path": "ServiceRequest.reason",
        "sliceName": "primaryICDDiagnosis",
        "min": 1,
        "max": "1"
      },
      {
        "id": "ServiceRequest.reason:primaryICDDiagnosis.concept",
        "path": "ServiceRequest.reason.concept",
        "min": 1
      },
      {
        "id": "ServiceRequest.reason:primaryICDDiagnosis.concept.coding",
        "path": "ServiceRequest.reason.concept.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "ServiceRequest.reason:primaryICDDiagnosis.concept.coding.system",
        "path": "ServiceRequest.reason.concept.coding.system",
        "min": 1,
        "fixedUri": "urn:oid:1.3.6.1.4.1.38760.2.159"
      },
      {
        "id": "ServiceRequest.reason:primaryICDDiagnosis.concept.coding.code",
        "path": "ServiceRequest.reason.concept.coding.code",
        "min": 1,
        "binding": {
          "strength": "required",
          "valueSet": "http://digives.gov.lv/fhir/ValueSet/1.3.6.1.4.1.38760.2.159"
        }
      },
      {
        "id": "ServiceRequest.reason:primaryICDDiagnosis.concept.coding.display",
        "path": "ServiceRequest.reason.concept.coding.display",
        "min": 1
      },
      {
        "id": "ServiceRequest.reason:primaryICDDiagnosis.reference",
        "path": "ServiceRequest.reason.reference",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://digives.gov.lv/fhir/StructureDefinition/ConditionICD10"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.reason:primaryICDDiagnosis.reference.reference",
        "path": "ServiceRequest.reason.reference.reference",
        "min": 1
      },
      {
        "id": "ServiceRequest.reason:primaryICDDiagnosis.reference.type",
        "path": "ServiceRequest.reason.reference.type",
        "min": 1,
        "fixedUri": "Condition"
      },
      {
        "id": "ServiceRequest.reason:primaryOrphanetDiagnosis",
        "path": "ServiceRequest.reason",
        "sliceName": "primaryOrphanetDiagnosis",
        "max": "1"
      },
      {
        "id": "ServiceRequest.reason:primaryOrphanetDiagnosis.concept",
        "path": "ServiceRequest.reason.concept",
        "min": 1
      },
      {
        "id": "ServiceRequest.reason:primaryOrphanetDiagnosis.concept.coding",
        "path": "ServiceRequest.reason.concept.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "ServiceRequest.reason:primaryOrphanetDiagnosis.concept.coding.system",
        "path": "ServiceRequest.reason.concept.coding.system",
        "min": 1,
        "fixedUri": "urn:oid:1.3.6.1.4.1.38760.2.380"
      },
      {
        "id": "ServiceRequest.reason:primaryOrphanetDiagnosis.concept.coding.code",
        "path": "ServiceRequest.reason.concept.coding.code",
        "min": 1,
        "binding": {
          "strength": "required",
          "valueSet": "http://digives.gov.lv/fhir/ValueSet/1.3.6.1.4.1.38760.2.380"
        }
      },
      {
        "id": "ServiceRequest.reason:primaryOrphanetDiagnosis.concept.coding.display",
        "path": "ServiceRequest.reason.concept.coding.display",
        "min": 1
      },
      {
        "id": "ServiceRequest.reason:primaryOrphanetDiagnosis.reference",
        "path": "ServiceRequest.reason.reference",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://digives.gov.lv/fhir/StructureDefinition/ConditionOrphanet"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.reason:primaryOrphanetDiagnosis.reference.reference",
        "path": "ServiceRequest.reason.reference.reference",
        "min": 1
      },
      {
        "id": "ServiceRequest.reason:primaryOrphanetDiagnosis.reference.type",
        "path": "ServiceRequest.reason.reference.type",
        "min": 1,
        "fixedUri": "Condition"
      },
      {
        "id": "ServiceRequest.reason:secondaryICDDiagnosis",
        "path": "ServiceRequest.reason",
        "sliceName": "secondaryICDDiagnosis"
      },
      {
        "id": "ServiceRequest.reason:secondaryICDDiagnosis.concept",
        "path": "ServiceRequest.reason.concept",
        "min": 1
      },
      {
        "id": "ServiceRequest.reason:secondaryICDDiagnosis.concept.coding",
        "path": "ServiceRequest.reason.concept.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "ServiceRequest.reason:secondaryICDDiagnosis.concept.coding.system",
        "path": "ServiceRequest.reason.concept.coding.system",
        "min": 1,
        "fixedUri": "urn:oid:1.3.6.1.4.1.38760.2.159"
      },
      {
        "id": "ServiceRequest.reason:secondaryICDDiagnosis.concept.coding.code",
        "path": "ServiceRequest.reason.concept.coding.code",
        "min": 1,
        "binding": {
          "strength": "required",
          "valueSet": "http://digives.gov.lv/fhir/ValueSet/1.3.6.1.4.1.38760.2.159"
        }
      },
      {
        "id": "ServiceRequest.reason:secondaryICDDiagnosis.concept.coding.display",
        "path": "ServiceRequest.reason.concept.coding.display",
        "min": 1
      },
      {
        "id": "ServiceRequest.reason:secondaryICDDiagnosis.reference",
        "path": "ServiceRequest.reason.reference",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://digives.gov.lv/fhir/StructureDefinition/ConditionICD10"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.reason:secondaryICDDiagnosis.reference.reference",
        "path": "ServiceRequest.reason.reference.reference",
        "min": 1
      },
      {
        "id": "ServiceRequest.reason:secondaryICDDiagnosis.reference.type",
        "path": "ServiceRequest.reason.reference.type",
        "min": 1,
        "fixedUri": "Condition"
      },
      {
        "id": "ServiceRequest.reason:secondaryOrphanetDiagnosis",
        "path": "ServiceRequest.reason",
        "sliceName": "secondaryOrphanetDiagnosis"
      },
      {
        "id": "ServiceRequest.reason:secondaryOrphanetDiagnosis.concept",
        "path": "ServiceRequest.reason.concept",
        "min": 1
      },
      {
        "id": "ServiceRequest.reason:secondaryOrphanetDiagnosis.concept.coding",
        "path": "ServiceRequest.reason.concept.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "ServiceRequest.reason:secondaryOrphanetDiagnosis.concept.coding.system",
        "path": "ServiceRequest.reason.concept.coding.system",
        "min": 1,
        "fixedUri": "urn:oid:1.3.6.1.4.1.38760.2.380"
      },
      {
        "id": "ServiceRequest.reason:secondaryOrphanetDiagnosis.concept.coding.code",
        "path": "ServiceRequest.reason.concept.coding.code",
        "min": 1,
        "binding": {
          "strength": "required",
          "valueSet": "http://digives.gov.lv/fhir/ValueSet/1.3.6.1.4.1.38760.2.914"
        }
      },
      {
        "id": "ServiceRequest.reason:secondaryOrphanetDiagnosis.concept.coding.display",
        "path": "ServiceRequest.reason.concept.coding.display",
        "min": 1
      },
      {
        "id": "ServiceRequest.reason:secondaryOrphanetDiagnosis.reference",
        "path": "ServiceRequest.reason.reference",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://digives.gov.lv/fhir/StructureDefinition/ConditionOrphanet"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.reason:secondaryOrphanetDiagnosis.reference.reference",
        "path": "ServiceRequest.reason.reference.reference",
        "min": 1
      },
      {
        "id": "ServiceRequest.reason:secondaryOrphanetDiagnosis.reference.type",
        "path": "ServiceRequest.reason.reference.type",
        "min": 1
      },
      {
        "id": "ServiceRequest.insurance",
        "path": "ServiceRequest.insurance",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Coverage",
              "http://hl7.org/fhir/StructureDefinition/ClaimResponse",
              "https://digives.gov.lv/fhir/StructureDefinition/Coverage"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.insurance.reference",
        "path": "ServiceRequest.insurance.reference",
        "min": 1
      },
      {
        "id": "ServiceRequest.insurance.type",
        "path": "ServiceRequest.insurance.type",
        "min": 1,
        "fixedUri": "Coverage"
      },
      {
        "id": "ServiceRequest.supportingInfo",
        "path": "ServiceRequest.supportingInfo",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "closed"
        }
      },
      {
        "id": "ServiceRequest.supportingInfo:anamnesis",
        "path": "ServiceRequest.supportingInfo",
        "sliceName": "anamnesis",
        "max": "1"
      },
      {
        "id": "ServiceRequest.supportingInfo:anamnesis.concept",
        "path": "ServiceRequest.supportingInfo.concept",
        "max": "0"
      },
      {
        "id": "ServiceRequest.supportingInfo:anamnesis.reference",
        "path": "ServiceRequest.supportingInfo.reference",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://digives.gov.lv/fhir/StructureDefinition/Anamnesis"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.supportingInfo:anamnesis.reference.reference",
        "path": "ServiceRequest.supportingInfo.reference.reference",
        "min": 1
      },
      {
        "id": "ServiceRequest.supportingInfo:anamnesis.reference.type",
        "path": "ServiceRequest.supportingInfo.reference.type",
        "min": 1,
        "fixedUri": "Condition"
      },
      {
        "id": "ServiceRequest.bodySite.extension:laterality",
        "path": "ServiceRequest.bodySite.extension",
        "sliceName": "laterality",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://digives.gov.lv/fhir/StructureDefinition/Extension/Laterality"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "ServiceRequest.bodySite.coding",
        "path": "ServiceRequest.bodySite.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "ServiceRequest.bodySite.coding.system",
        "path": "ServiceRequest.bodySite.coding.system",
        "min": 1,
        "fixedUri": "urn:oid:1.3.6.1.4.1.38760.2.918"
      },
      {
        "id": "ServiceRequest.bodySite.coding.code",
        "path": "ServiceRequest.bodySite.coding.code",
        "min": 1,
        "binding": {
          "strength": "required",
          "valueSet": "http://digives.gov.lv/fhir/ValueSet/1.3.6.1.4.1.38760.2.918"
        }
      },
      {
        "id": "ServiceRequest.bodySite.coding.display",
        "path": "ServiceRequest.bodySite.coding.display",
        "min": 1
      }
    ]
  }
}