{
  "resourceType": "ServiceRequest",
  "id": "pieprasijums1",
  "implicitRules": "http://hl7.org/fhir/reference",
  "extension": [
    {
      "url": "https://digives.gov.lv/fhir/StructureDefinition/PatientGroup",
      "valueCoding": {
        "system": "urn:oid:1.3.6.1.4.1.38760.2.831",
        "version": "ZV",
        "display": "Zupas virtuves apmeklētājs"
      }
    },
    {
      "url": "https://digives.gov.lv/fhir/StructureDefinition/PatientContact",
      "valueExtendedContactDetail": {
        "telecom": [
          {
            "system": "phone",
            "value": "+37111111111"
          },
          {
            "system": "email",
            "value": "me@myhealth"
          }
        ],
        "address": {
          "use": "physical",
          "line": [
            "Gaujas iela, Liepa, Liepas pag., Cēsu nov."
          ]
        }
      }
    },
    {
      "url": "https://digives.gov.lv/fhir/StructureDefinition/Extension/RelatedPerson",
      "valueReference": {
        "reference": "RelatedPerson/fhirId",
        "type": "RelatedPerson"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/request-statusReason",
      "valueCodeableConcept": {
        "coding": [
          {
            "system": "urn:oid:1.3.6.1.4.1.38760.2.822",
            "code": "other",
            "display": "Cits"
          }
        ],
        "text": "Iemesls anulēt vai atsaukt pakalpojuma pieprasījumu, ja tas nav atrodams klasifikatorā"
      }
    }
  ],
  "identifier": [
    {
      "type": {
        "coding": [
          {
            "code": "PLAC",
            "display": "Placer Identifier"
          }
        ]
      },
      "value": "PLAC-150802",
      "assigner": {
        "reference": "Organization/fhirId",
        "type": "Organization"
      }
    }
  ],
  "requisition": {
    "type": {
      "coding": [
        {
          "code": "PLAC",
          "display": "Placer Identifier"
        }
      ]
    },
    "value": "01JD77D1Q9XB8FH4",
    "assigner": {
      "reference": "Organization/fhirId",
      "type": "Organization"
    }
  },
  "status": "active",
  "intent": "original-order",
  "category": [
    {
      "coding": [
        {
          "system": "urn:oid:1.3.6.1.4.1.38760.2.914",
          "code": "1.3.6.1.4.1.38760.2.914-1",
          "display": "Ambulators pakalpojums"
        }
      ]
    },
    {
      "coding": [
        {
          "system": "urn:oid:1.3.6.1.4.1.38760.2.917",
          "code": "1.3.6.1.4.1.38760.2.917-3",
          "display": "Vizuālā diagnostika"
        }
      ]
    },
    {
      "coding": [
        {
          "system": "urn:oid:1.3.6.1.4.1.38760.2.917",
          "code": "1.3.6.1.4.1.38760.2.917-12",
          "display": "Rentgenogrāfija (RGT)"
        }
      ]
    }
  ],
  "priority": "routine",
  "_priority": {
    "extension": [
      {
        "url": "https://digives.gov.lv/fhir/StructureDefinition/Priority",
        "valueCodeableConcept": {
          "coding": [
            {
              "system": "urn:oid:1.3.6.1.4.1.38760.2.912",
              "code": "1.3.6.1.4.1.38760.2.912-2",
              "display": "Zaļais koridoris"
            }
          ]
        }
      }
    ]
  },
  "code": {
    "concept": {
      "coding": [
        {
          "system": "urn:oid:1.3.6.1.4.1.38760.2.917",
          "code": "1.3.6.1.4.1.38760.2.917-126",
          "display": "Uzņēmums speciālās projekcijās"
        }
      ],
      "text": "apildus norādes saistībā ar sniedzamo pakalpojumu."
    }
  },
  "orderDetail": [
    {
      "parameterFocus": {
        "concept": {
          "coding": [
            {
              "system": "http://hl7.org/fhir/reference",
              "version": "Fast Dog",
              "display": "Energetic Elephant"
            }
          ],
          "text": "Fantastic Cat"
        },
        "reference": {
          "reference": "Fantastic Mouse",
          "type": "http://hl7.org/fhir/reference",
          "identifier": {
            "system": "http://www.acme.com/identifiers/patient",
            "value": "123456"
          },
          "display": "Fantastic Badger"
        }
      },
      "parameter": [
        {
          "code": {
            "coding": [
              {
                "system": "http://hl7.org/fhir/reference",
                "version": "Fast Giraffe",
                "display": "Crazy Cat"
              }
            ],
            "text": "Fantastic Dog"
          },
          "valueQuantity": {
            "unit": "Energetic Elephant",
            "system": "http://hl7.org/fhir/reference"
          }
        }
      ]
    }
  ],
  "subject": {
    "reference": "Hilarious Cat",
    "type": "Patient",
    "identifier": {
      "type": {
        "coding": [
          {
            "system": "http://hl7.org/fhir/reference",
            "version": "Fantastic Dog",
            "display": "Slow Cat"
          }
        ],
        "text": "Crazy Mouse"
      },
      "system": "http://www.acme.com/identifiers/patient",
      "value": "123456",
      "period": {
        "start": "1997-03-10",
        "end": "2016-03-11"
      }
    },
    "display": "Fantastic Giraffe"
  },
  "focus": [
    {
      "reference": "Fast Mouse",
      "type": "http://hl7.org/fhir/reference",
      "identifier": {
        "type": {
          "coding": [
            {
              "system": "http://hl7.org/fhir/reference",
              "version": "Hilarious Elephant",
              "display": "Fast Dog"
            }
          ],
          "text": "Fantastic Giraffe"
        },
        "system": "http://www.acme.com/identifiers/patient",
        "value": "123456",
        "period": {
          "start": "1972-04-10",
          "end": "1980-02-05"
        }
      },
      "display": "Crazy Dog"
    }
  ],
  "occurrencePeriod": {
    "start": "1951-10-31",
    "end": "1959-11-07"
  },
  "authoredOn": "1966-01-10",
  "requester": {
    "reference": "Energetic Mouse",
    "type": "PractitionerRole",
    "identifier": {
      "type": {
        "coding": [
          {
            "system": "http://hl7.org/fhir/reference",
            "version": "Energetic Elephant",
            "display": "Slow Elephant"
          }
        ],
        "text": "Hilarious Giraffe"
      },
      "system": "http://www.acme.com/identifiers/patient",
      "value": "123456",
      "period": {
        "start": "1965-10-28",
        "end": "1960-03-21"
      }
    },
    "display": "Fast Cat"
  },
  "performer": [
    {
      "reference": "Fast Giraffe",
      "type": "http://hl7.org/fhir/reference",
      "identifier": {
        "type": {
          "coding": [
            {
              "system": "http://hl7.org/fhir/reference",
              "version": "Crazy Cat",
              "display": "Fast Badger"
            }
          ],
          "text": "Energetic Mouse"
        },
        "system": "http://www.acme.com/identifiers/patient",
        "value": "123456",
        "period": {
          "start": "2012-03-02",
          "end": "1956-03-31"
        }
      },
      "display": "Crazy Cat"
    },
    {
      "reference": "Fast Dog",
      "type": "Organization",
      "identifier": {
        "type": {
          "coding": [
            {
              "system": "http://hl7.org/fhir/reference",
              "version": "Hilarious Zebra",
              "display": "Energetic Zebra"
            }
          ],
          "text": "Hilarious Giraffe"
        },
        "system": "http://www.acme.com/identifiers/patient",
        "value": "123456",
        "period": {
          "start": "1971-04-25",
          "end": "1965-06-13"
        }
      },
      "display": "Crazy Mouse"
    }
  ],
  "location": [
    {
      "concept": {
        "coding": [
          {
            "system": "http://hl7.org/fhir/reference",
            "version": "Crazy Giraffe",
            "display": "Hilarious Zebra"
          }
        ],
        "text": "Energetic Dog"
      },
      "reference": {
        "reference": "Fantastic Dog",
        "type": "http://hl7.org/fhir/reference",
        "identifier": {
          "type": {
            "text": "Hilarious Zebra"
          },
          "system": "http://www.acme.com/identifiers/patient",
          "value": "123456",
          "period": {
            "start": "1960-06-04",
            "end": "1985-03-04"
          }
        },
        "display": "Inventive Zebra"
      }
    },
    {
      "concept": {
        "coding": [
          {
            "system": "http://hl7.org/fhir/reference",
            "version": "Crazy Mouse",
            "display": "Crazy Giraffe"
          },
          {
            "system": "urn:oid:1.3.6.1.4.1.38760.2.915",
            "version": "Inventive Giraffe",
            "display": "Crazy Giraffe"
          }
        ],
        "text": "Hilarious Cat"
      },
      "reference": {
        "reference": "Slow Elephant",
        "type": "http://hl7.org/fhir/reference",
        "identifier": {
          "type": {
            "text": "Inventive Mouse"
          },
          "system": "http://www.acme.com/identifiers/patient",
          "value": "123456",
          "period": {
            "start": "2001-04-18",
            "end": "1979-03-16"
          }
        },
        "display": "Energetic Badger"
      }
    }
  ],
  "reason": [
    {
      "concept": {
        "coding": [
          {
            "system": "http://hl7.org/fhir/reference",
            "version": "Fast Dog",
            "display": "Inventive Zebra"
          }
        ],
        "text": "Fantastic Dog"
      },
      "reference": {
        "reference": "Slow Elephant",
        "type": "http://hl7.org/fhir/reference",
        "identifier": {
          "type": {
            "text": "Fantastic Elephant"
          },
          "system": "http://www.acme.com/identifiers/patient",
          "value": "123456",
          "period": {
            "start": "1955-01-23",
            "end": "1995-06-17"
          }
        },
        "display": "Inventive Elephant"
      }
    },
    {
      "concept": {
        "coding": [
          {
            "system": "http://hl7.org/fhir/reference",
            "version": "Inventive Dog",
            "display": "Crazy Zebra"
          }
        ],
        "text": "Inventive Cat"
      },
      "reference": {
        "reference": "Slow Cat",
        "type": "http://hl7.org/fhir/reference",
        "identifier": {
          "type": {
            "text": "Energetic Elephant"
          },
          "system": "http://www.acme.com/identifiers/patient",
          "value": "123456",
          "period": {
            "start": "1990-11-24",
            "end": "1980-10-22"
          }
        },
        "display": "Inventive Giraffe"
      }
    }
  ],
  "insurance": [
    {
      "reference": "Energetic Giraffe",
      "type": "http://hl7.org/fhir/reference",
      "identifier": {
        "type": {
          "coding": [
            {
              "system": "http://hl7.org/fhir/reference",
              "version": "Hilarious Elephant",
              "display": "Hilarious Badger"
            }
          ],
          "text": "Inventive Elephant"
        },
        "system": "http://www.acme.com/identifiers/patient",
        "value": "123456",
        "period": {
          "start": "2006-07-08",
          "end": "1961-09-11"
        }
      },
      "display": "Hilarious Elephant"
    },
    {
      "reference": "Slow Cat",
      "type": "Coverage",
      "identifier": {
        "type": {
          "coding": [
            {
              "system": "http://hl7.org/fhir/reference",
              "version": "Crazy Cat",
              "display": "Fast Zebra"
            }
          ],
          "text": "Inventive Badger"
        },
        "system": "http://www.acme.com/identifiers/patient",
        "value": "123456",
        "period": {
          "start": "1968-12-13",
          "end": "1993-01-26"
        }
      },
      "display": "Hilarious Cat"
    }
  ],
  "supportingInfo": [
    {
      "concept": {
        "coding": [
          {
            "system": "http://hl7.org/fhir/reference",
            "version": "Energetic Dog",
            "display": "Inventive Mouse"
          }
        ],
        "text": "Fantastic Mouse"
      },
      "reference": {
        "reference": "Fantastic Mouse",
        "type": "http://hl7.org/fhir/reference",
        "identifier": {
          "type": {
            "text": "Inventive Elephant"
          },
          "system": "http://www.acme.com/identifiers/patient",
          "value": "123456",
          "period": {
            "start": "1998-09-06",
            "end": "1967-02-06"
          }
        },
        "display": "Fast Zebra"
      }
    }
  ],
  "bodySite": [
    {
      "coding": [
        {
          "system": "http://hl7.org/fhir/reference",
          "version": "Slow Cat",
          "display": "Energetic Mouse"
        }
      ],
      "text": "Crazy Giraffe"
    },
    {
      "extension": [
        {
          "url": "https://digives.gov.lv/fhir/StructureDefinition/Extension/Laterality",
          "valueCoding": {
            "system": "urn:oid:1.3.6.1.4.1.38760.2.651",
            "version": "Slow Giraffe",
            "display": "Fantastic Cat"
          }
        }
      ],
      "coding": [
        {
          "system": "http://hl7.org/fhir/reference",
          "version": "Energetic Mouse",
          "display": "Slow Dog"
        },
        {
          "system": "urn:oid:1.3.6.1.4.1.38760.2.918",
          "version": "Hilarious Cat",
          "display": "Slow Elephant"
        }
      ],
      "text": "Energetic Dog"
    }
  ],
  "bodyStructure": {
    "reference": "Slow Cat",
    "type": "http://hl7.org/fhir/reference",
    "identifier": {
      "type": {
        "coding": [
          {
            "system": "http://hl7.org/fhir/reference",
            "version": "Energetic Mouse",
            "display": "Inventive Dog"
          }
        ],
        "text": "Fantastic Zebra"
      },
      "system": "http://www.acme.com/identifiers/patient",
      "value": "123456",
      "period": {
        "start": "1984-09-07",
        "end": "1951-01-09"
      }
    },
    "display": "Inventive Dog"
  },
  "note": [
    {
      "authorReference": {
        "reference": "Crazy Elephant",
        "type": "http://hl7.org/fhir/reference",
        "identifier": {
          "type": {
            "text": "Energetic Mouse"
          },
          "system": "http://www.acme.com/identifiers/patient",
          "value": "123456",
          "period": {
            "start": "1960-10-05",
            "end": "1983-10-30"
          }
        },
        "display": "Hilarious Giraffe"
      },
      "time": "1996-06-14"
    }
  ]
}