Observation

Measurements and simple assertions made about a patient, device or other subject.

Canvas supports the following US Core Profiles for Observations:

The following USCDI data elements are retrievable from this endpoint:

  • Laboratory Tests
  • Laboratory Values/Results
  • Smoking Status



Here are some Canvas specific workflows where observations will be created:

  1. Documenting Vitals via our Vital Command (category coding will be vital-signs)
  2. Submitting a Questionnaire, Review Of System (ROS), Structured Assessment (SA), or a Physical Exam will result in an observation for each question answered if the question’s code system is LOINC or SNOMED (category coding will be social-history).
  3. There is a specific Physical Exam to capture Pediatric Vitals. Upon submission of the Exam, associated observations for Body Length, Head Circumference, and Head Occipital-Frontal Circumference Percentile (category coding will be vital-signs) will be created along with the observations for the answers of the exam (category coding will be social-history). Please contact Customer Support for help loading this Exam into your instance if you want to utilize it.
  4. Once weight and either height or pediatric body length is entered on a patients chart, the vital observations of BMI for Age Percentile (for patients 2 years or older) and Weight-for-Length Percentile will be calculated (category coding will be vital-signs).
  5. Submitting a Questionnaire that has custom scoring defined will result in an observation containing the scored value (category coding will be survey).
  6. When a lab report is created in Canvas through DI, API, integration with HG, or POC Lab Test Command, there will be resulting Observations made (category coding will be laboratory).
post
/Observation

Observation create

Although the observation endpoint houses many different Canvas models, currently, only vital signs and panels can be created through this endpoint.

Vital signs and Vital Sign Panels
See this helpful guide to walk you through creating a vital panel via FHIR.

  • Vital sign panels and vital signs are both observations.
    • Vital sign panels are the parent that “contain” the vital sign observations. The hasMembers attribute contains references to the child observations
    • Each vital sign that is part of the panel links back to the parent Observation via the derivedFrom attribute.
    • If a derivedFrom value is not included for a vital sign observation, then a new vital sign panel observation is created and will autofill the derivedFrom attribute field.
  • Vital signs and their parent panel feed into our Vitals command.

Note types
Most our FHIR endpoints insert commands into a Data Import Note type on the patient’s timeline. With the release of configurable note types, if you create a new Note Type in Settings with system = Canvas and code = VitalsImport, then the Observation Create endpoint will always import into that note type instead.

Supported vital sign codes used in create

vital signLOINC codedefault unitadditional accepted units
vital sign panel85353-1  
blood pressure85354-9mmHg 
weight29463-7ozlb, kg
height8302-2incm
pulse rate8867-4bpm 
body temperature8310-5°F 
oxygen saturation (arterial)*2708-6% 
oxygen saturation*59408-5% 
respiration rate9279-1bpm 
waist circumference56086-2cmin
note80339-5  
pulse rhythm8884-9  

*If an oxygen saturation vital sign is created, an oxygen saturation (arterial) vital sign code is also automatically generated.

Additional examples

Attributes

resourceType
string

The FHIR Resource name.

status
enum [ final | unknown | entered-in-error ] required

The status of the result value. In Canvas only final committed vitals can be created.

code
json required

Describes what was observed.

For create interactions, only vital sign LOINC codes are supported.

Click to view child attributes
coding
array[json] required

Identifies where the definition of the code comes from.

Click to view child attributes
system
string required

The system url of the coding.

Value Options Supported:
  • http://loinc.org
code
string required

The code of the observation.

Value Options Supported:
  • 85353-1 (panel)
  • 85354-9 (blood pressure)
  • 29463-7 (weight)
  • 8302-2 (height)
  • 8867-4 (pulse rate)
  • 8310-5 (body temperature)
  • 2708-6 (oxygen saturation arterial)
  • 59408-5 (oxygen saturation)
  • 9279-1 (respiration rate)
  • 56086-2 (waist circumference)
  • 80339-5 (note)
  • 8884-9 (pulse rhythm)
display
string required

The display name of the coding.

subject
json required

Canvas Patient reference the Observation is for.

Click to view child attributes
reference
string required

The reference string of the subject in the format of "Patient/a39cafb9d1b445be95a2e2548e12a787".

type
string

Type the reference refers to (e.g. “Patient”).

effectiveDateTime
datetime

Clinically relevant time/time-period for observation.

For an individual vital sign, if the effectiveDateTime differs from the panel time, it will be reflected in a read/search; however, you will not see the individual date in the UI, only the panel’s datetime.

If omitted from create, Canvas will save a default value of the current datetime.

valueQuantity
json

Actual result.

This is used for vital observation that correspond with a numeric value. If this field is not provided or specifically the value attribute in the json is omitted, Canvas will interpret that as an empty value. A Read/Search of this observation will display the dataAbsentReason attribute.

Currently supported numeric values are

- height
- weight
- waist circumference
- body temperature
- pulse rate
- oxygen saturation
- respiration rate

Click to view child attributes
value
number required

Numerical value (with implicit precision).

unit
string

Unit representation. If omitted, it will default to the values in the table defined above. For the submitted code, only units from the table above can be sent. Sending a different unit will result in a 422 error.

valueString
string

Actual result.

This is used for vital observation that correspond with a string value. If this field is not provided or specifically the value attribute in the json is omitted, Canvas will interpret that as an empty value. A Read/Search of this observation will display the dataAbsentReason attribute.

Currently supported string values are
- note - this is a free text comment field in the Canvas Vital Command

- pulse rhythm - This is an enum in the Canvas Vital command. Values supported are Regular, Irregularly Irregular, Regulary Irregular. If one of these values is not provided, a 422 error will occur.

- blood pressure - This is a string reprentation of the systolic and diastolic combined in the format "100/80". If this valueString is not given, it will not appear correctly in the Canvas Vital Command.

hasMember
array[json]

Related Observation reference(s) that belongs to the Observation group/panel.

Only need to supply this attribute in a Vital Sign Panel to specify specific child observations that are a part of the panel. In Canvas these will form the Vitals Command. This observation IDs can be found using the Observation Search.

If a new vital sign panel is created and links pre-existing vital signs via the hasMember attribute, those linked observations will update their derivedFrom attribute to be set to the newly created vital sign panel.

Click to view child attributes
reference
string required

The reference string of the child observation in the format of "Observation/920807d3-034b-4423-a65b-980068cb4bd1".

type
string

Type the reference refers to (e.g. “Observation”).

display
string

The coding display of the reference.

derivedFrom
array[json]

Related Observation resource that the Observation is made from.

This attribute should only be used to link a vital sign to an existing “parent” vital sign panel. It ingests a reference to the vital sign panel’s observation. This observation ID can be found using the Observation Search.

If this field is omitted on a vital sign observation, a vital sign panel will automatically be created.

It is important to note that each vital sign panel can only contain a single vital sign of each type. Adding a duplicate of a vital sign will result in a 422 error: “Vital sign reading already exists for the given reading”.

Click to view child attributes
reference
string required

The reference string of the child observation in the format of "Observation/920807d3-034b-4423-a65b-980068cb4bd1" or "QuestionnaireResponse/0e34b12d-0494-4ade-9a51-aa12225dd959".

type
string

Type the reference refers to (e.g. “Observation”, “QuestionnaireResponse”).

component
array[json]

Component results

This attribute is only used for blood pressure, as it has two components (systolic and diastolic).

  • These components are added to a vital sign observation by including their code and valueQuantity.
  • The components are what will be stored in the database; however, they will not display on the UI. The Observation.valueString will be the attribute that displays on the UI.
  • The valueQuantity for the systolic component should match the first number in the blood pressure vital sign valueQuantity, where the valueQuantity of the diastole component should match the second number.
Click to view child attributes
code
json required

Type of component observation (code / type).

Click to view child attributes
coding
array[json] required

Identifies where the definition of the code comes from.

Click to view child attributes
system
string required

The system url of the coding.

Value Options Supported:
  • http://loinc.org
code
string required

The code of the observation.

Value Options Supported:
  • 8480-6 (systolic)
  • 8462-4 (diastolic)
display
string required

The display name of the coding.

Value Options Supported:
  • Systolic blood pressure
  • Diastolic blood pressure
valueQuantity
json

Actual component result. Since this endpoint only supports blood pressure systolic/diastolic components, the units are already defaulted to mmHg.

Click to view child attributes
value
number required

Numerical value (with implicit precision).

Responses

201 Created
The server has successfully processed the request; the new resource has been created and is now ready for interaction.

Canvas returns the created resource's id as a UUID within the location header and a null response body.

Errors

400 Bad Request
The request was invalid or cannot be otherwise served. An accompanying error message will explain further.
401 Unauthorized
The request requires user authentication.
403 Forbidden
The request requires user authorization.
405 Method Not Allowed
The request performs an operation that is either not supported or allowed.
422 Unprocessable Entity
The request cannot be processed due to semantic issues or conflicts with the database state.
get
/Observation/{id}

Observation read

Path Parameters

id required
string
The unique identifier for the Observation

Response Payload Attributes

resourceType
string

The FHIR Resource name.

id
string

The Canvas identifier of the observation

status
enum [ final | unknown | entered-in-error ]

The status of the result value.

category
array[json]

Classifies the general type of observation being made.

Click to view child attributes
coding
array[json]

Identifies where the definition of the code comes from.

Click to view child attributes
system
string

The system url of the coding.

Value Options Supported:
  • http://terminology.hl7.org/CodeSystem/observation-category
code
string

The code of the observation.

Value Options Supported:
  • vital-signs
  • social-history
  • imaging
  • laboratory
  • procedure
  • survey
  • exam
  • therapy
  • activity
display
string

The display name of the coding.

Value Options Supported:
  • Vital Signs
  • Social History
  • Vital Signs
  • Imaging
  • Laboratory
  • Procedure
  • Survey
  • Exam
  • Therapy
  • Activity
code
json

Describes what was observed.

Click to view child attributes
extension

For observations that do not have an associated code (e.g Laboratory Observations), an extension will be displayed to denote an absent of a coding.

Click to view child attributes
url
string

Reference that defines the content of this object.

Value Options Supported:
  • http://hl7.org/fhir/StructureDefinition/data-absent-reason
valueString
string

The reason the Observation.coding attribute is missing.

Value Options Supported:
  • unsupported
  • unknown
coding
array[json]

Identifies where the definition of the code comes from.

Click to view child attributes
system
string

The system url of the coding.

Value Options Supported:
  • http://loinc.org
  • http://snomed.info/sct
code
string

The code of the observation.

Value Options Supported:
  • Any LOINC codes from Vital Panel or Vital Signs captured in the Observation Create / Vital Command
  • Any LOINC or SNOMED code from questions filled out through a Questionnaire, Structured Assessment, Physical Exam, Review of Systems
  • Any code from a Questionnaire Scoring Result
  • Pediatric Vital observations: 8306-3 (Body Length), 8289-1 (Head Occipital-Frontal Circumference Percentile), and 8287-5 (Head Circumference)
  • 59576-9 (LOINC code for BMI for Age Percentile)
  • 77606-2 (LOINC code for Weight-for-Length Percentile)
  • Any LOINC codes from Lab Report Values captured
display
string

The display name of the coding.

subject
json

Canvas Patient reference the Observation is for.

Click to view child attributes
reference
string

The reference string of the subject in the format of "Patient/a39cafb9d1b445be95a2e2548e12a787".

type
string

Type the reference refers to (e.g. “Patient”).

effectiveDateTime
datetime

Clinically relevant time/time-period for observation.

issued
datetime

Date/Time this version was made available. It is the timestamp in Canvas when the observation was ingested.

valueQuantity
json

Actual result.

Used for observations with numeric values like vitals, lab report values, any questionnaire result scoring programed in Canvas.

Click to view child attributes
value
number

Numerical value (with implicit precision).

unit
string

Unit representation.

system
string

System that defines coded unit form.

Value Options Supported:
  • http://unitsofmeasure.org
code
string

Coded form of the unit may be shown.

Value Options Supported:
  • [lb_av]
  • cm
  • [in_i]
  • [degF]
  • mm[Hg]
  • %
  • [in_i]
  • /min
  • kg/m2
  • L/min
valueString
string

Actual result.

Used for observations containing text values like vitals that are strings (e.g Blood Pressure, notes, and pulse rhythm) and free text lab result values.

valueCodeableConcept
json

Actual result.

Used for observations with a selected coding like Questionnaire Responses showing the answer to a specific question. This comes from Questionnaires, Structured Assessment, Physical Exam, and Review of Systems in Canvas.

Click to view child attributes
coding
array[json]

Identifies where the definition of the code comes from. Codings are used when the Observation comes from a QuestionnaireResponse.

Click to view child attributes
system
string

The system url of the coding.

code
string

The code of the observation.

display
string

The display name of the coding.

dataAbsentReason
json

Why the result is missing (if there is no value[x] section)

Click to view child attributes
coding
array[json]

Identifies where the definition of the code comes from.

Click to view child attributes
system
string

The system url of the coding.

Value Options Supported:
  • http://terminology.hl7.org/CodeSystem/data-absent-reason
code
string

The code of the observation.

Value Options Supported:
  • not-performed
display
string

The display name of the coding.

Value Options Supported:
  • Not Performed
hasMember
array[json]

Related Observation reference(s) that belongs to the Observation group/panel.

In Canvas, all the vital signs taken in a Vitals Command will be listed in this hasMember attribute.

Click to view child attributes
reference
string

The reference string of the child observation in the format of "Observation/920807d3-034b-4423-a65b-980068cb4bd1".

type
string

Type the reference refers to (e.g. “Observation”).

display
string

The coding display of the reference.

derivedFrom
array[json]

Related resource that the Observation is made from.

For vital signs, the derivedFrom reference would be the observation that corresponds to the “parent” vital sign panel this observation is part of.
For observations originating from a custom scoring of a Questionnaire or from answers filled out in Questionnaires, ROS, SA, or Physical Exams the derivedFrom attribute will be a reference to the associated QuestionnaireResponse record.

Click to view child attributes
reference
string

The reference string of the child observation in the format of "Observation/920807d3-034b-4423-a65b-980068cb4bd1" or "QuestionnaireResponse/0e34b12d-0494-4ade-9a51-aa12225dd959".

type
string

Type the reference refers to (e.g. “Observation”, “QuestionnaireResponse”).

component
array[json]

Component results.

Currently only used for blood pressure observations to display the systolic and diastolic components.

Click to view child attributes
code
json

Type of component observation (code / type).

Click to view child attributes
coding
array[json]

Identifies where the definition of the code comes from.

Click to view child attributes
system
string

The system url of the coding.

Value Options Supported:
  • http://loinc.org
code
string

The code of the observation.

Value Options Supported:
  • 8480-6 (systolic)
  • 8462-4 (diastolic)
display
string

The display name of the coding.

Value Options Supported:
  • Systolic blood pressure
  • Diastolic blood pressure
valueQuantity
json

Actual component result.

Click to view child attributes
value
number

Numerical value (with implicit precision).

unit
string

Unit representation.

Value Options Supported:
  • mmHg
system
string

System that defines coded unit form.

Value Options Supported:
  • http://unitsofmeasure.org
code
string

Coded form of the unit

Value Options Supported:
  • mm[Hg]
dataAbsentReason
json

Why the result is missing (if there is no Component[x].value[y] section)

Click to view child attributes
coding
array[json]

Identifies where the definition of the code comes from.

Click to view child attributes
system
string

The system url of the coding.

Value Options Supported:
  • http://terminology.hl7.org/CodeSystem/data-absent-reason
code
string

The code of the observation.

Value Options Supported:
  • not-performed
display
string

The display name of the coding.

Value Options Supported:
  • Not Performed

Responses

200 OK
Request was successful.

Errors

401 Unauthorized
The request requires user authentication.
403 Forbidden
The request requires user authorization.
404 Not Found
The requested resource was not found.

Query Parameters

_id
string

The Canvas resource id for the Observation

category
string

Classification of the type of observation. Filters by the code and/or system under category.coding attribute. You can search by just the code value or you can search by the system and code in the format system|code (e.g http://terminology.hl7.org/CodeSystem/observation-category|vital-signs).

code
string

The code of the observation type. Filters by the code and/or system under code.coding attribute. You can search by just the code value or you can search by the system and code in the format system|code (e.g http://loinc.org|85353-1).

date
date

Filter by the effectiveDateTime attribute. See Date Filtering for more information.

derived-from
string

A reference to a related measurement the observation is made from.

Use this search parameter to find all observations of a specific vital panel or questionnaire response observations from the same interview.

Search Values Supported:
  • QuestionnaireResponse/_id
  • Observation/_id
patient
string

The patient reference associated to the observation in the format Patient/a39cafb9d1b445be95a2e2548e12a787.

Response Payload Attributes

resourceType
string

The FHIR Resource name.

type
string

This element and value designate that the bundle is a search response. Search result bundles will always have the Bundle.type of searchset .

total
integer

The number of resources that match the search parameter.

link
array[json]

Attributes relevant to pagination, see our Pagination page for more detail.

Click to view child attributes
relation
enum [self|first|next|last]

The relation of the page search

url

The search url for the specific relation

entry
array[json]

The results bundle that lists out each object returned in the search

Click to view child attributes
resource
json

The attributes specific to the resource type, see the Attributes section below

Attributes

resourceType
string

The FHIR Resource name.

id
string

The Canvas identifier of the observation

status
enum [ final | unknown | entered-in-error ]

The status of the result value.

category
array[json]

Classifies the general type of observation being made.

Click to view child attributes
coding
array[json]

Identifies where the definition of the code comes from.

Click to view child attributes
system
string

The system url of the coding.

Value Options Supported:
  • http://terminology.hl7.org/CodeSystem/observation-category
code
string

The code of the observation.

Value Options Supported:
  • vital-signs
  • social-history
  • imaging
  • laboratory
  • procedure
  • survey
  • exam
  • therapy
  • activity
display
string

The display name of the coding.

Value Options Supported:
  • Vital Signs
  • Social History
  • Vital Signs
  • Imaging
  • Laboratory
  • Procedure
  • Survey
  • Exam
  • Therapy
  • Activity
code
json

Describes what was observed.

Click to view child attributes
extension

For observations that do not have an associated code (e.g Laboratory Observations), an extension will be displayed to denote an absent of a coding.

Click to view child attributes
url
string

Reference that defines the content of this object.

Value Options Supported:
  • http://hl7.org/fhir/StructureDefinition/data-absent-reason
valueString
string

The reason the Observation.coding attribute is missing.

Value Options Supported:
  • unsupported
  • unknown
coding
array[json]

Identifies where the definition of the code comes from.

Click to view child attributes
system
string

The system url of the coding.

Value Options Supported:
  • http://loinc.org
  • http://snomed.info/sct
code
string

The code of the observation.

Value Options Supported:
  • Any LOINC codes from Vital Panel or Vital Signs captured in the Observation Create / Vital Command
  • Any LOINC or SNOMED code from questions filled out through a Questionnaire, Structured Assessment, Physical Exam, Review of Systems
  • Any code from a Questionnaire Scoring Result
  • Pediatric Vital observations: 8306-3 (Body Length), 8289-1 (Head Occipital-Frontal Circumference Percentile), and 8287-5 (Head Circumference)
  • 59576-9 (LOINC code for BMI for Age Percentile)
  • 77606-2 (LOINC code for Weight-for-Length Percentile)
  • Any LOINC codes from Lab Report Values captured
display
string

The display name of the coding.

subject
json

Canvas Patient reference the Observation is for.

Click to view child attributes
reference
string

The reference string of the subject in the format of "Patient/a39cafb9d1b445be95a2e2548e12a787".

type
string

Type the reference refers to (e.g. “Patient”).

effectiveDateTime
datetime

Clinically relevant time/time-period for observation.

issued
datetime

Date/Time this version was made available. It is the timestamp in Canvas when the observation was ingested.

valueQuantity
json

Actual result.

Used for observations with numeric values like vitals, lab report values, any questionnaire result scoring programed in Canvas.

Click to view child attributes
value
number

Numerical value (with implicit precision).

unit
string

Unit representation.

system
string

System that defines coded unit form.

Value Options Supported:
  • http://unitsofmeasure.org
code
string

Coded form of the unit may be shown.

Value Options Supported:
  • [lb_av]
  • cm
  • [in_i]
  • [degF]
  • mm[Hg]
  • %
  • [in_i]
  • /min
  • kg/m2
  • L/min
valueString
string

Actual result.

Used for observations containing text values like vitals that are strings (e.g Blood Pressure, notes, and pulse rhythm) and free text lab result values.

valueCodeableConcept
json

Actual result.

Used for observations with a selected coding like Questionnaire Responses showing the answer to a specific question. This comes from Questionnaires, Structured Assessment, Physical Exam, and Review of Systems in Canvas.

Click to view child attributes
coding
array[json]

Identifies where the definition of the code comes from. Codings are used when the Observation comes from a QuestionnaireResponse.

Click to view child attributes
system
string

The system url of the coding.

code
string

The code of the observation.

display
string

The display name of the coding.

dataAbsentReason
json

Why the result is missing (if there is no value[x] section)

Click to view child attributes
coding
array[json]

Identifies where the definition of the code comes from.

Click to view child attributes
system
string

The system url of the coding.

Value Options Supported:
  • http://terminology.hl7.org/CodeSystem/data-absent-reason
code
string

The code of the observation.

Value Options Supported:
  • not-performed
display
string

The display name of the coding.

Value Options Supported:
  • Not Performed
hasMember
array[json]

Related Observation reference(s) that belongs to the Observation group/panel.

In Canvas, all the vital signs taken in a Vitals Command will be listed in this hasMember attribute.

Click to view child attributes
reference
string

The reference string of the child observation in the format of "Observation/920807d3-034b-4423-a65b-980068cb4bd1".

type
string

Type the reference refers to (e.g. “Observation”).

display
string

The coding display of the reference.

derivedFrom
array[json]

Related resource that the Observation is made from.

For vital signs, the derivedFrom reference would be the observation that corresponds to the “parent” vital sign panel this observation is part of.
For observations originating from a custom scoring of a Questionnaire or from answers filled out in Questionnaires, ROS, SA, or Physical Exams the derivedFrom attribute will be a reference to the associated QuestionnaireResponse record.

Click to view child attributes
reference
string

The reference string of the child observation in the format of "Observation/920807d3-034b-4423-a65b-980068cb4bd1" or "QuestionnaireResponse/0e34b12d-0494-4ade-9a51-aa12225dd959".

type
string

Type the reference refers to (e.g. “Observation”, “QuestionnaireResponse”).

component
array[json]

Component results.

Currently only used for blood pressure observations to display the systolic and diastolic components.

Click to view child attributes
code
json

Type of component observation (code / type).

Click to view child attributes
coding
array[json]

Identifies where the definition of the code comes from.

Click to view child attributes
system
string

The system url of the coding.

Value Options Supported:
  • http://loinc.org
code
string

The code of the observation.

Value Options Supported:
  • 8480-6 (systolic)
  • 8462-4 (diastolic)
display
string

The display name of the coding.

Value Options Supported:
  • Systolic blood pressure
  • Diastolic blood pressure
valueQuantity
json

Actual component result.

Click to view child attributes
value
number

Numerical value (with implicit precision).

unit
string

Unit representation.

Value Options Supported:
  • mmHg
system
string

System that defines coded unit form.

Value Options Supported:
  • http://unitsofmeasure.org
code
string

Coded form of the unit

Value Options Supported:
  • mm[Hg]
dataAbsentReason
json

Why the result is missing (if there is no Component[x].value[y] section)

Click to view child attributes
coding
array[json]

Identifies where the definition of the code comes from.

Click to view child attributes
system
string

The system url of the coding.

Value Options Supported:
  • http://terminology.hl7.org/CodeSystem/data-absent-reason
code
string

The code of the observation.

Value Options Supported:
  • not-performed
display
string

The display name of the coding.

Value Options Supported:
  • Not Performed

Responses

200 OK
Request was successful.

Errors

400 Bad Request
The request was invalid or cannot be otherwise served. An accompanying error message will explain further.
401 Unauthorized
The request requires user authentication.
403 Forbidden
The request requires user authorization.
  • curl --request POST \
         --url 'https://fumage-example.canvasmedical.com/Observation' \
         --header 'Authorization: Bearer <token>' \
         --header 'accept: application/json' \
         --header 'content-type: application/json' \
         --data '
    {
      "resourceType": "Observation",
      "status": "final",
      "code": {
        "coding": [
          {
            "system": "http://loinc.org",
            "code": "29463-7",
            "display": "Weight"
          }
        ]
      },
      "subject": {
        "reference": "Patient/ee8672f3497e4a83937b9e71d0a704a5"
      },
      "effectiveDateTime": "2022-07-29T08:50:24.883809+00:00",
      "valueQuantity": {
        "value": "50",
        "unit": "kg"
      },
      "derivedFrom": [
        {
          "reference": "Observation/6173fbe8-110e-4a4a-9647-e949f7b1c35e",
          "type": "Observation"
        }
      ]
    }
    '
    
  • import requests
    
    url = "https://fumage-example.canvasmedical.com/Observation"
    
    payload = {
        "resourceType": "Observation",
        "status": "final",
        "code": {
          "coding": [
            {
              "system": "http://loinc.org",
              "code": "29463-7",
              "display": "Weight"
            }
          ]
        },
        "subject": { "reference": "Patient/ee8672f3497e4a83937b9e71d0a704a5" },
        "effectiveDateTime": "2022-07-29T08:50:24.883809+00:00",
        "valueQuantity": { "value": "50", "unit": "lb" },
        "derivedFrom": [{ "reference": "Observation/6173fbe8-110e-4a4a-9647-e949f7b1c35e" }]
    }
    headers = {
        "accept": "application/json",
        "Authorization": "Bearer <token>",
        "content-type": "application/json"
    }
    
    response = requests.post(url, json=payload, headers=headers)
    
    print(response.text)
    
  • null
    
  • {
      "resourceType": "OperationOutcome",
      "issue": [
        {
          "severity": "error",
          "code": "invalid",
          "details": {
            "text": "Bad request"
          }
        }
      ]
    }
    
  • {
      "resourceType": "OperationOutcome",
      "issue": [
        {
          "severity": "error",
          "code": "unknown",
          "details": {
            "text": "Authentication failed"
          }
        }
      ]
    }
    
  • {
      "resourceType": "OperationOutcome",
      "issue": [
        {
          "severity": "error",
          "code": "forbidden",
          "details": {
            "text": "Authorization failed"
          }
        }
      ]
    }
    
  • {
      "resourceType": "OperationOutcome",
      "issue": [
        {
          "severity": "error",
          "code": "not-supported",
          "details": {
            "text": "Operation is not supported"
          }
        }
      ]
    }
    
  • {
      "resourceType": "OperationOutcome",
      "issue": [
        {
          "severity": "error",
          "code": "business-rule",
          "details": {
            "text": "Unprocessable entity"
          }
        }
      ]
    }
    
  • curl --request GET \
         --url 'https://fumage-example.canvasmedical.com/Observation/<id>' \
         --header 'Authorization: Bearer <token>' \
         --header 'accept: application/json'
    
  • import requests
    
    url = "https://fumage-example.canvasmedical.com/Observation/<id>"
    
    headers = {
        "accept": "application/json",
        "Authorization": "Bearer <token>"
    }
    
    response = requests.get(url, headers=headers)
    
    print(response.text)
    
  • {
        "resourceType": "Observation",
        "id": "43b74793-5de6-435a-871d-8ae2232f3aa0",
        "status": "final",
        "category": [
            {
                "coding": [
                    {
                        "system": "http://terminology.hl7.org/CodeSystem/observation-category",
                        "code": "vital-signs",
                        "display": "Vital Signs"
                    }
                ]
            }
        ],
        "code": {
            "coding": [
                {
                    "system": "http://loinc.org",
                    "code": "85353-1"
                }
            ]
        },
        "subject": {
            "reference": "Patient/a1197fa9e65b4a5195af15e0234f61c2",
            "type": "Patient"
        },
        "effectiveDateTime": "2022-06-28T20:18:54.141759+00:00",
        "issued": "2022-06-28T20:43:10.465819+00:00",
        "dataAbsentReason": {
            "coding": [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
                    "code": "not-performed",
                    "display": "Not Performed"
                }
            ]
        },
        "hasMember": [
            {
                "reference": "Observation/dd7f25f3-0fa6-4f15-9b8c-c61c24f139d8",
                "type": "Observation",
                "display": "Weight"
            },
            {
                "reference": "Observation/3b96ab8b-aef6-4cbe-8ec5-b88c8e120e19",
                "type": "Observation",
                "display": "Body Temperature"
            },
            {
                "reference": "Observation/201d4404-60c0-4f07-88c1-534456271a74",
                "type": "Observation",
                "display": "Blood Pressure"
            },
            {
                "reference": "Observation/841187ae-0c35-4db7-8852-b5370e4a5c51",
                "type": "Observation",
                "display": "Pulse Rhythm"
            },
            {
                "reference": "Observation/60e563bd-7848-487d-8852-c0db383dc115",
                "type": "Observation",
                "display": "Oxygen Saturation Arterial"
            },
            {
                "reference": "Observation/cb8bca44-d0de-48b0-8786-6887a4b649ec",
                "type": "Observation",
                "display": "Height"
            },
            {
                "reference": "Observation/b96e8bd4-1db9-46db-b292-e9a474bdca44",
                "type": "Observation",
                "display": "Waist Circumference"
            },
            {
                "reference": "Observation/1e8b6774-82c3-4f0b-9b28-fca5fc17e8c9",
                "type": "Observation",
                "display": "Pulse"
            },
            {
                "reference": "Observation/8642e444-53a6-4db8-a15f-17fdb2e01247",
                "type": "Observation",
                "display": "Respiration Rate"
            },
            {
                "reference": "Observation/d0996ff1-643a-4711-88f8-2e303d208663",
                "type": "Observation",
                "display": "Note"
            }
        ]
    }
    
  • {
      "resourceType": "OperationOutcome",
      "issue": [
        {
          "severity": "error",
          "code": "unknown",
          "details": {
            "text": "Authentication failed"
          }
        }
      ]
    }
    
  • {
      "resourceType": "OperationOutcome",
      "issue": [
        {
          "severity": "error",
          "code": "forbidden",
          "details": {
            "text": "Authorization failed"
          }
        }
      ]
    }
    
  • {
      "resourceType": "OperationOutcome",
      "issue": [
        {
          "severity": "error",
          "code": "not-found",
          "details": {
            "text": "Unknown coverage resource 'a47c7b0ebbb442cdbc4adf259d148ea1'"
          }
        }
      ]
    }
    
  • curl --request GET \
         --url 'https://fumage-example.canvasmedical.com/Observation?category=vital-signs&patient=Patient/b60b818fad134c3095b34dd392be9533' \
         --header 'Authorization: Bearer <token>' \
         --header 'accept: application/json'
    
  • import requests
    
    url = "https://fumage-example.canvasmedical.com/Observation?category=vital-signs&patient=Patient/b60b818fad134c3095b34dd392be9533"
    
    headers = {
        "accept": "application/json",
        "Authorization": "Bearer <token>"
    }
    
    response = requests.get(url, headers=headers)
    
    print(response.text)
    
  • {
        "resourceType": "Bundle",
        "type": "searchset",
        "total": 19,
        "link": [
            {
                "relation": "self",
                "url": "/Observation?patient=Patient%2Fb60b818fad134c3095b34dd392be9533&_count=20&_offset=0"
            },
            {
                "relation": "first",
                "url": "/Observation?patient=Patient%2Fb60b818fad134c3095b34dd392be9533&_count=20&_offset=0"
            },
            {
                "relation": "last",
                "url": "/Observation?patient=Patient%2Fb60b818fad134c3095b34dd392be9533&_count=20&_offset=0"
            }
        ],
        "entry": [
            {
                "resource": {
                    "resourceType": "Observation",
                    "id": "378d88eb-cbfc-4668-a96e-c1e011f9f015",
                    "status": "final",
                    "category": [
                        {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/observation-category",
                                    "code": "vital-signs",
                                    "display": "Vital Signs"
                                }
                            ]
                        }
                    ],
                    "code": {
                        "coding": [
                            {
                                "system": "http://loinc.org",
                                "code": "85353-1",
                                "display": "Vital Signs Panel"
                            }
                        ]
                    },
                    "subject": {
                        "reference": "Patient/b60b818fad134c3095b34dd392be9533",
                        "type": "Patient"
                    },
                    "effectiveDateTime": "2024-04-09T18:35:35.633932+00:00",
                    "issued": "2024-04-09T18:35:35.651181+00:00",
                    "dataAbsentReason": {
                        "coding": [
                            {
                                "system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
                                "code": "not-performed",
                                "display": "Not Performed"
                            }
                        ]
                    },
                    "hasMember": [
                        {
                            "reference": "Observation/201d4404-60c0-4f07-88c1-534456271a74",
                            "type": "Observation",
                            "display": "Blood Pressure"
                        },
                        {
                            "reference": "Observation/60e563bd-7848-487d-8852-c0db383dc115",
                            "type": "Observation",
                            "display": "Oxygen Saturation Arterial"
                        },
                        {
                            "reference": "Observation/cb8bca44-d0de-48b0-8786-6887a4b649ec",
                            "type": "Observation",
                            "display": "Height"
                        },
                        {
                            "reference": "Observation/841187ae-0c35-4db7-8852-b5370e4a5c51",
                            "type": "Observation",
                            "display": "Pulse Rhythm"
                        }
                    ]
                }
            },
            {
                "resource": {
                    "resourceType": "Observation",
                    "id": "cb8bca44-d0de-48b0-8786-6887a4b649ec",
                    "status": "final",
                    "category": [
                        {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/observation-category",
                                    "code": "vital-signs",
                                    "display": "Vital Signs"
                                }
                            ]
                        }
                    ],
                    "code": {
                        "coding": [
                            {
                                "system": "http://loinc.org",
                                "code": "8302-2",
                                "display": "Height"
                            }
                        ]
                    },
                    "subject": {
                        "reference": "Patient/b60b818fad134c3095b34dd392be9533",
                        "type": "Patient"
                    },
                    "effectiveDateTime": "2024-04-09T18:35:35.754424+00:00",
                    "issued": "2024-04-09T18:35:35.756630+00:00",
                    "valueQuantity": {
                        "value": 69.0,
                        "unit": "in",
                        "system": "http://unitsofmeasure.org",
                        "code": "[in_i]"
                    },
                    "derivedFrom": [
                        {
                            "reference": "Observation/378d88eb-cbfc-4668-a96e-c1e011f9f015",
                            "type": "Observation"
                        }
                    ]
                }
            },
            {
                "resource": {
                    "resourceType": "Observation",
                    "id": "60e563bd-7848-487d-8852-c0db383dc115",
                    "status": "final",
                    "category": [
                        {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/observation-category",
                                    "code": "vital-signs",
                                    "display": "Vital Signs"
                                }
                            ]
                        }
                    ],
                    "code": {
                        "coding": [
                            {
                                "system": "http://loinc.org",
                                "code": "2708-6",
                                "display": "Oxygen Saturation Arterial"
                            },
                            {
                                "system": "http://loinc.org",
                                "code": "59408-5",
                                "display": "Oxygen Saturation"
                            }
                        ]
                    },
                    "subject": {
                        "reference": "Patient/b60b818fad134c3095b34dd392be9533",
                        "type": "Patient"
                    },
                    "effectiveDateTime": "2024-04-09T18:35:35.744026+00:00",
                    "issued": "2024-04-09T18:35:35.745602+00:00",
                    "valueQuantity": {
                        "value": 98.0,
                        "unit": "%",
                        "system": "http://unitsofmeasure.org",
                        "code": "%"
                    },
                    "derivedFrom": [
                        {
                            "reference": "Observation/378d88eb-cbfc-4668-a96e-c1e011f9f015",
                            "type": "Observation"
                        }
                    ],
                    "component": [
                        {
                            "code": {
                                "coding": [
                                    {
                                        "system": "http://loinc.org",
                                        "code": "3150-0",
                                        "display": "Inhaled oxygen concentration"
                                    }
                                ]
                            },
                            "valueQuantity": {
                                "value": 98.0,
                                "unit": "%",
                                "system": "http://unitsofmeasure.org",
                                "code": "%"
                            }
                        },
                        {
                            "code": {
                                "coding": [
                                    {
                                        "system": "http://loinc.org",
                                        "code": "3151-8",
                                        "display": "Inhaled oxygen flow rate"
                                    }
                                ]
                            },
                            "dataAbsentReason": {
                                "coding": [
                                    {
                                        "system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
                                        "code": "not-performed",
                                        "display": "Not Performed"
                                    }
                                ]
                            }
                        }
                    ]
                }
            },
            {
                "resource": {
                    "resourceType": "Observation",
                    "id": "841187ae-0c35-4db7-8852-b5370e4a5c51",
                    "status": "final",
                    "category": [
                        {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/observation-category",
                                    "code": "vital-signs",
                                    "display": "Vital Signs"
                                }
                            ]
                        }
                    ],
                    "code": {
                        "coding": [
                            {
                                "system": "http://loinc.org",
                                "code": "8884-9",
                                "display": "Pulse Rhythm"
                            }
                        ]
                    },
                    "subject": {
                        "reference": "Patient/b60b818fad134c3095b34dd392be9533",
                        "type": "Patient"
                    },
                    "effectiveDateTime": "2024-04-09T18:35:35.739851+00:00",
                    "issued": "2024-04-09T18:35:35.741587+00:00",
                    "valueString": "Regular",
                    "derivedFrom": [
                        {
                            "reference": "Observation/378d88eb-cbfc-4668-a96e-c1e011f9f015",
                            "type": "Observation"
                        }
                    ]
                }
            },
            {
                "resource": {
                    "resourceType": "Observation",
                    "id": "201d4404-60c0-4f07-88c1-534456271a74",
                    "status": "final",
                    "category": [
                        {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/observation-category",
                                    "code": "vital-signs",
                                    "display": "Vital Signs"
                                }
                            ]
                        }
                    ],
                    "code": {
                        "coding": [
                            {
                                "system": "http://loinc.org",
                                "code": "85354-9",
                                "display": "Blood Pressure"
                            }
                        ]
                    },
                    "subject": {
                        "reference": "Patient/b60b818fad134c3095b34dd392be9533",
                        "type": "Patient"
                    },
                    "effectiveDateTime": "2024-04-09T18:35:35.714893+00:00",
                    "issued": "2024-04-09T18:35:35.716508+00:00",
                    "valueString": "120/80 mmHg",
                    "derivedFrom": [
                        {
                            "reference": "Observation/378d88eb-cbfc-4668-a96e-c1e011f9f015",
                            "type": "Observation"
                        }
                    ],
                    "component": [
                        {
                            "code": {
                                "coding": [
                                    {
                                        "system": "http://loinc.org",
                                        "code": "8480-6",
                                        "display": "Systolic blood pressure"
                                    }
                                ]
                            },
                            "valueQuantity": {
                                "value": 120.0,
                                "unit": "mmHg",
                                "system": "http://unitsofmeasure.org",
                                "code": "mm[Hg]"
                            }
                        },
                        {
                            "code": {
                                "coding": [
                                    {
                                        "system": "http://loinc.org",
                                        "code": "8462-4",
                                        "display": "Diastolic blood pressure"
                                    }
                                ]
                            },
                            "valueQuantity": {
                                "value": 80.0,
                                "unit": "mmHg",
                                "system": "http://unitsofmeasure.org",
                                "code": "mm[Hg]"
                            }
                        }
                    ]
                }
            },
            {
                "resource": {
                    "resourceType": "Observation",
                    "id": "93d50727-307e-4be4-b4b3-fad266e22083",
                    "status": "final",
                    "category": [
                        {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/observation-category",
                                    "code": "social-history",
                                    "display": "Social History"
                                }
                            ]
                        }
                    ],
                    "code": {
                        "coding": [
                            {
                                "system": "http://loinc.org",
                                "code": "76503-2",
                                "display": "HARK - Kick"
                            }
                        ]
                    },
                    "subject": {
                        "reference": "Patient/b60b818fad134c3095b34dd392be9533",
                        "type": "Patient"
                    },
                    "effectiveDateTime": "2024-04-08T18:58:34.594656+00:00",
                    "issued": "2024-04-09T18:41:38.029091+00:00",
                    "valueCodeableConcept": {
                        "coding": [
                            {
                                "system": "http://loinc.org",
                                "code": "LA33-6",
                                "display": "Yes"
                            }
                        ]
                    },
                    "derivedFrom": [
                        {
                            "reference": "QuestionnaireResponse/74b511d0-a112-48ff-9e03-ba5f103a2a15",
                            "type": "QuestionnaireResponse"
                        }
                    ]
                }
            },
            {
                "resource": {
                    "resourceType": "Observation",
                    "id": "b37b8285-b1e7-4298-9c25-a62b1303f799",
                    "status": "final",
                    "category": [
                        {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/observation-category",
                                    "code": "social-history",
                                    "display": "Social History"
                                }
                            ]
                        }
                    ],
                    "code": {
                        "coding": [
                            {
                                "system": "http://loinc.org",
                                "code": "76502-4",
                                "display": "HARK - Rape"
                            }
                        ]
                    },
                    "subject": {
                        "reference": "Patient/b60b818fad134c3095b34dd392be9533",
                        "type": "Patient"
                    },
                    "effectiveDateTime": "2024-04-08T18:58:34.594656+00:00",
                    "issued": "2024-04-09T18:41:38.024815+00:00",
                    "valueCodeableConcept": {
                        "coding": [
                            {
                                "system": "http://loinc.org",
                                "code": "LA33-6",
                                "display": "Yes"
                            }
                        ]
                    },
                    "derivedFrom": [
                        {
                            "reference": "QuestionnaireResponse/74b511d0-a112-48ff-9e03-ba5f103a2a15",
                            "type": "QuestionnaireResponse"
                        }
                    ]
                }
            },
            {
                "resource": {
                    "resourceType": "Observation",
                    "id": "d3d10677-c211-4a04-ab8f-d5fe4b736bf8",
                    "status": "final",
                    "category": [
                        {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/observation-category",
                                    "code": "social-history",
                                    "display": "Social History"
                                }
                            ]
                        }
                    ],
                    "code": {
                        "coding": [
                            {
                                "system": "http://loinc.org",
                                "code": "76501-6",
                                "display": "HARK - Afraid"
                            }
                        ]
                    },
                    "subject": {
                        "reference": "Patient/b60b818fad134c3095b34dd392be9533",
                        "type": "Patient"
                    },
                    "effectiveDateTime": "2024-04-08T18:58:34.594656+00:00",
                    "issued": "2024-04-09T18:41:38.020391+00:00",
                    "valueCodeableConcept": {
                        "coding": [
                            {
                                "system": "http://loinc.org",
                                "code": "LA33-6",
                                "display": "Yes"
                            }
                        ]
                    },
                    "derivedFrom": [
                        {
                            "reference": "QuestionnaireResponse/74b511d0-a112-48ff-9e03-ba5f103a2a15",
                            "type": "QuestionnaireResponse"
                        }
                    ]
                }
            },
            {
                "resource": {
                    "resourceType": "Observation",
                    "id": "77e9ef2c-f702-4cf7-ae6d-a093527a9727",
                    "status": "final",
                    "category": [
                        {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/observation-category",
                                    "code": "social-history",
                                    "display": "Social History"
                                }
                            ]
                        }
                    ],
                    "code": {
                        "coding": [
                            {
                                "system": "http://loinc.org",
                                "code": "76500-8",
                                "display": "HARK - Humiliated"
                            }
                        ]
                    },
                    "subject": {
                        "reference": "Patient/b60b818fad134c3095b34dd392be9533",
                        "type": "Patient"
                    },
                    "effectiveDateTime": "2024-04-08T18:58:34.594656+00:00",
                    "issued": "2024-04-09T18:41:38.012952+00:00",
                    "valueCodeableConcept": {
                        "coding": [
                            {
                                "system": "http://loinc.org",
                                "code": "LA33-6",
                                "display": "Yes"
                            }
                        ]
                    },
                    "derivedFrom": [
                        {
                            "reference": "QuestionnaireResponse/74b511d0-a112-48ff-9e03-ba5f103a2a15",
                            "type": "QuestionnaireResponse"
                        }
                    ]
                }
            },
            {
                "resource": {
                    "resourceType": "Observation",
                    "id": "79e21363-d1e2-4be9-a9d0-2a737c595cd6",
                    "status": "final",
                    "category": [
                        {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/observation-category",
                                    "code": "laboratory",
                                    "display": "Laboratory"
                                }
                            ]
                        }
                    ],
                    "code": {
                        "extension": [
                            {
                                "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason",
                                "valueCode": "unsupported"
                            }
                        ]
                    },
                    "subject": {
                        "reference": "Patient/b60b818fad134c3095b34dd392be9533",
                        "type": "Patient"
                    },
                    "effectiveDateTime": "2024-04-03T07:00:00+00:00",
                    "issued": "2024-04-08T20:11:12.198162+00:00",
                    "dataAbsentReason": {
                        "coding": [
                            {
                                "system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
                                "code": "not-performed",
                                "display": "Not Performed"
                            }
                        ]
                    },
                    "hasMember": [
                        {
                            "reference": "Observation/13a6df29-a0c7-4233-a4e5-940c82f58006",
                            "type": "Observation",
                            "display": "Act.Prt.C Resist."
                        },
                        {
                            "reference": "Observation/84c34368-d839-4bb2-b967-787ecef5b595",
                            "type": "Observation",
                            "display": "Amended report:"
                        }
                    ]
                }
            },
            {
                "resource": {
                    "resourceType": "Observation",
                    "id": "84c34368-d839-4bb2-b967-787ecef5b595",
                    "status": "final",
                    "category": [
                        {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/observation-category",
                                    "code": "laboratory",
                                    "display": "Laboratory"
                                }
                            ]
                        }
                    ],
                    "code": {
                        "coding": [
                            {
                                "system": "http://loinc.org",
                                "code": "N/A",
                                "display": "Amended report:"
                            }
                        ]
                    },
                    "subject": {
                        "reference": "Patient/b60b818fad134c3095b34dd392be9533",
                        "type": "Patient"
                    },
                    "effectiveDateTime": "2024-04-03T07:00:00+00:00",
                    "issued": "2024-04-08T20:11:12.256507+00:00",
                    "valueString": "test"
                }
            },
            {
                "resource": {
                    "resourceType": "Observation",
                    "id": "13a6df29-a0c7-4233-a4e5-940c82f58006",
                    "status": "final",
                    "category": [
                        {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/observation-category",
                                    "code": "laboratory",
                                    "display": "Laboratory"
                                }
                            ]
                        }
                    ],
                    "code": {
                        "coding": [
                            {
                                "system": "http://loinc.org",
                                "code": "13590-5",
                                "display": "Act.Prt.C Resist."
                            }
                        ]
                    },
                    "subject": {
                        "reference": "Patient/b60b818fad134c3095b34dd392be9533",
                        "type": "Patient"
                    },
                    "effectiveDateTime": "2024-04-03T07:00:00+00:00",
                    "issued": "2024-04-08T20:11:12.243418+00:00",
                    "valueQuantity": {
                        "value": 1.0,
                        "unit": "ratio",
                        "system": "http://unitsofmeasure.org"
                    }
                }
            },
            {
                "resource": {
                    "resourceType": "Observation",
                    "id": "f7370ea2-f44b-4f47-9ba1-073db8e6c365",
                    "status": "final",
                    "category": [
                        {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/observation-category",
                                    "code": "survey",
                                    "display": "Survey"
                                }
                            ]
                        }
                    ],
                    "code": {
                        "coding": [
                            {
                                "system": "http://loinc.org",
                                "code": "76499-3"
                            }
                        ]
                    },
                    "subject": {
                        "reference": "Patient/b60b818fad134c3095b34dd392be9533",
                        "type": "Patient"
                    },
                    "effectiveDateTime": "2024-04-08T18:58:34.594656+00:00",
                    "issued": "2024-04-09T18:41:37.996595+00:00",
                    "valueQuantity": {
                        "value": 4.0,
                        "system": "http://unitsofmeasure.org"
                    },
                    "derivedFrom": [
                        {
                            "reference": "QuestionnaireResponse/74b511d0-a112-48ff-9e03-ba5f103a2a15",
                            "type": "QuestionnaireResponse"
                        }
                    ]
                }
            },
            {
                "resource": {
                    "resourceType": "Observation",
                    "id": "1397bed8-7bab-4fdf-b926-b7542ccfbef0",
                    "status": "final",
                    "category": [
                        {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/observation-category",
                                    "code": "social-history",
                                    "display": "Social History"
                                }
                            ]
                        }
                    ],
                    "code": {
                        "coding": [
                            {
                                "system": "http://loinc.org",
                                "code": "8287-5",
                                "display": "Head circumference (cm)"
                            }
                        ]
                    },
                    "subject": {
                        "reference": "Patient/b60b818fad134c3095b34dd392be9533",
                        "type": "Patient"
                    },
                    "effectiveDateTime": "2024-04-08T18:58:34.594656+00:00",
                    "issued": "2024-04-08T18:58:45.819506+00:00",
                    "valueCodeableConcept": {
                        "coding": [
                            {
                                "system": "http://loinc.org",
                                "code": "8287-5",
                                "display": "20"
                            }
                        ]
                    },
                    "derivedFrom": [
                        {
                            "reference": "QuestionnaireResponse/82f09164-afa8-462c-88e0-552b89976613",
                            "type": "QuestionnaireResponse"
                        }
                    ]
                }
            },
            {
                "resource": {
                    "resourceType": "Observation",
                    "id": "221534cf-690f-4166-86f2-7f392edf4348",
                    "status": "final",
                    "category": [
                        {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/observation-category",
                                    "code": "social-history",
                                    "display": "Social History"
                                }
                            ]
                        }
                    ],
                    "code": {
                        "coding": [
                            {
                                "system": "http://loinc.org",
                                "code": "8306-3",
                                "display": "Body length (in)"
                            }
                        ]
                    },
                    "subject": {
                        "reference": "Patient/b60b818fad134c3095b34dd392be9533",
                        "type": "Patient"
                    },
                    "effectiveDateTime": "2024-04-08T18:58:34.594656+00:00",
                    "issued": "2024-04-08T18:58:45.805651+00:00",
                    "valueCodeableConcept": {
                        "coding": [
                            {
                                "system": "http://loinc.org",
                                "code": "8306-3",
                                "display": "30"
                            }
                        ]
                    },
                    "derivedFrom": [
                        {
                            "reference": "QuestionnaireResponse/82f09164-afa8-462c-88e0-552b89976613",
                            "type": "QuestionnaireResponse"
                        }
                    ]
                }
            },
            {
                "resource": {
                    "resourceType": "Observation",
                    "id": "84a41e03-34f2-414e-8bf8-c7fc8ee75c16",
                    "status": "final",
                    "category": [
                        {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/observation-category",
                                    "code": "vital-signs",
                                    "display": "Vital Signs"
                                }
                            ]
                        }
                    ],
                    "code": {
                        "coding": [
                            {
                                "system": "http://loinc.org",
                                "code": "8289-1",
                                "display": "Head Occipital-frontal circumference Percentile"
                            }
                        ]
                    },
                    "subject": {
                        "reference": "Patient/b60b818fad134c3095b34dd392be9533",
                        "type": "Patient"
                    },
                    "effectiveDateTime": "2024-04-08T18:58:45.616779+00:00",
                    "issued": "2024-04-08T18:58:45.781371+00:00",
                    "valueQuantity": {
                        "value": 90.0,
                        "unit": "%",
                        "system": "http://unitsofmeasure.org",
                        "code": "%"
                    },
                    "derivedFrom": [
                        {
                            "reference": "Observation/74c7bcd6-a229-4bef-82fa-b0fec3c0cc1a",
                            "type": "Observation"
                        }
                    ]
                }
            },
            {
                "resource": {
                    "resourceType": "Observation",
                    "id": "ab2cce20-4186-4ccd-bf7d-93009fbe7748",
                    "status": "final",
                    "category": [
                        {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/observation-category",
                                    "code": "vital-signs",
                                    "display": "Vital Signs"
                                }
                            ]
                        }
                    ],
                    "code": {
                        "coding": [
                            {
                                "system": "http://loinc.org",
                                "code": "8287-5",
                                "display": "Head Circumference"
                            }
                        ]
                    },
                    "subject": {
                        "reference": "Patient/b60b818fad134c3095b34dd392be9533",
                        "type": "Patient"
                    },
                    "effectiveDateTime": "2024-04-08T18:58:45.616779+00:00",
                    "issued": "2024-04-08T18:58:45.766580+00:00",
                    "valueQuantity": {
                        "value": 37.0,
                        "unit": "cm",
                        "system": "http://unitsofmeasure.org",
                        "code": "cm"
                    },
                    "derivedFrom": [
                        {
                            "reference": "Observation/74c7bcd6-a229-4bef-82fa-b0fec3c0cc1a",
                            "type": "Observation"
                        }
                    ]
                }
            },
            {
                "resource": {
                    "resourceType": "Observation",
                    "id": "d0bb3a0f-8925-4bb8-958a-af0d37b095ab",
                    "status": "final",
                    "category": [
                        {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/observation-category",
                                    "code": "vital-signs",
                                    "display": "Vital Signs"
                                }
                            ]
                        }
                    ],
                    "code": {
                        "coding": [
                            {
                                "system": "http://loinc.org",
                                "code": "8306-3",
                                "display": "Length"
                            }
                        ]
                    },
                    "subject": {
                        "reference": "Patient/b60b818fad134c3095b34dd392be9533",
                        "type": "Patient"
                    },
                    "effectiveDateTime": "2024-04-08T18:58:45.616779+00:00",
                    "issued": "2024-04-08T18:58:45.751224+00:00",
                    "valueQuantity": {
                        "value": 20.0,
                        "unit": "in",
                        "system": "http://unitsofmeasure.org",
                        "code": "[in_i]"
                    },
                    "derivedFrom": [
                        {
                            "reference": "Observation/74c7bcd6-a229-4bef-82fa-b0fec3c0cc1a",
                            "type": "Observation"
                        }
                    ]
                }
            },
            {
                "resource": {
                    "resourceType": "Observation",
                    "id": "74c7bcd6-a229-4bef-82fa-b0fec3c0cc1a",
                    "status": "final",
                    "category": [
                        {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/observation-category",
                                    "code": "vital-signs",
                                    "display": "Vital Signs"
                                }
                            ]
                        }
                    ],
                    "code": {
                        "coding": [
                            {
                                "system": "http://loinc.org",
                                "code": "85353-1",
                                "display": "Vital Signs Panel"
                            }
                        ]
                    },
                    "subject": {
                        "reference": "Patient/b60b818fad134c3095b34dd392be9533",
                        "type": "Patient"
                    },
                    "effectiveDateTime": "2024-04-08T18:58:45.616779+00:00",
                    "issued": "2024-04-08T18:58:45.629738+00:00",
                    "dataAbsentReason": {
                        "coding": [
                            {
                                "system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
                                "code": "not-performed",
                                "display": "Not Performed"
                            }
                        ]
                    },
                    "hasMember": [
                        {
                            "reference": "Observation/d0bb3a0f-8925-4bb8-958a-af0d37b095ab",
                            "type": "Observation",
                            "display": "Length"
                        },
                        {
                            "reference": "Observation/ab2cce20-4186-4ccd-bf7d-93009fbe7748",
                            "type": "Observation",
                            "display": "Head Circumference"
                        },
                        {
                            "reference": "Observation/84a41e03-34f2-414e-8bf8-c7fc8ee75c16",
                            "type": "Observation",
                            "display": "Head Occipital-frontal circumference Percentile"
                        }
                    ]
                }
            }
        ]
    }
    
  • {
      "resourceType": "OperationOutcome",
      "issue": [
        {
          "severity": "error",
          "code": "invalid",
          "details": {
            "text": "Bad request"
          }
        }
      ]
    }
    
  • {
      "resourceType": "OperationOutcome",
      "issue": [
        {
          "severity": "error",
          "code": "unknown",
          "details": {
            "text": "Authentication failed"
          }
        }
      ]
    }
    
  • {
      "resourceType": "OperationOutcome",
      "issue": [
        {
          "severity": "error",
          "code": "forbidden",
          "details": {
            "text": "Authorization failed"
          }
        }
      ]
    }