GET api/v1/healthprofessional/patient/{patientId}/observation/{operation}/{typeId}/between?StartTime={StartTime}&EndTime={EndTime}&Order={Order}&Offset={Offset}

Gets a collection of observations based on query between two timestamps

Request Information

Headers

URI Parameters

NameDescriptionTypeAdditional information
patientId

string

Required

operation

The operation {value, avg}

string

Required

typeId

The type identifier of the device type

DeviceType

Required

StartTime

{Optional} - The start time

date

None.

EndTime

{Optional} - The end time

date

None.

Order

{Optional} - Order of the data based on the timestamp. Default set to ascending, [asc, desc].

string

None.

Offset

{Optional} - Return timestamp with calculated offset, default = false.

boolean

None.

Body Parameters

None.

Response Information

Headers

Resource Description

ObservationPatient
NameDescriptionTypeAdditional information
PatientId

string

None.

Observation

Collection of Observation

None.

Response Formats

application/json

Sample:
{
  "PatientId": "sample string 1",
  "Observation": [
    {
      "Typeid": 528388,
      "Timestamp": "sample string 1",
      "Inputtype": "sample string 2",
      "Source": "sample string 3",
      "Equipmentid": "sample string 4",
      "Measurements": [
        {
          "TypeId": 68185,
          "Value": "sample string 1",
          "UnitCode": 262656
        },
        {
          "TypeId": 68185,
          "Value": "sample string 1",
          "UnitCode": 262656
        }
      ],
      "Comment": "sample string 5",
      "Contexts": [
        {
          "TypeId": 29152,
          "Context": "sample string 1"
        },
        {
          "TypeId": 29152,
          "Context": "sample string 1"
        }
      ]
    },
    {
      "Typeid": 528388,
      "Timestamp": "sample string 1",
      "Inputtype": "sample string 2",
      "Source": "sample string 3",
      "Equipmentid": "sample string 4",
      "Measurements": [
        {
          "TypeId": 68185,
          "Value": "sample string 1",
          "UnitCode": 262656
        },
        {
          "TypeId": 68185,
          "Value": "sample string 1",
          "UnitCode": 262656
        }
      ],
      "Comment": "sample string 5",
      "Contexts": [
        {
          "TypeId": 29152,
          "Context": "sample string 1"
        },
        {
          "TypeId": 29152,
          "Context": "sample string 1"
        }
      ]
    }
  ]
}