Immunization

Describes the event of a patient being administered a vaccine or a record of an immunization as reported by a patient, a clinician or another party.

http://hl7.org/fhir/us/core/STU3.1.1/StructureDefinition-us-core-immunization.html

In Canvas, Immunization records can be created using either the Immunization Statement Commmand or the Immunize Command.

get
/Immunization/{id}

Immunization read

Path Parameters

id required
string
The unique identifier for the Immunization

Response Payload Attributes

resourceType
string

The FHIR Resource name.

id
string

The Canvas identifier of the immunization.

status
enum [ completed | entered-in-error | not-done ]

The status of the immunization.

statusReason
json

A coding for reason not given, if recorded - omitted otherwise.

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/v3-ActReaso
code
string

The code.

display
string

The display name of the coding.

vaccineCode
json

Coding for the administered vaccine.

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://hl7.org/fhir/sid/cvx
  • http://www.ama-assn.org/go/cpt
  • unstructured
code
string

The code.

display
string

The display name of the coding.

patient
json

The patient who received the immunization.

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”).

occurrenceDateTime
date

The date or datetime the immunization was administered or reported to have been administered.

primarySource
boolean

Whether the immunization was administered by a primary source.

- true indicates that the immunization was administered within the clinic. To document immunizations like these, use an Immunize Command.

- false indicates that the immunization was administered outside the clinic. To document this immunizations like these, use an Immunization Statement Command.

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

A Canvas-issued unique identifier for a specific immunization.

patient
string

The patient for the vaccination record 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 immunization.

status
enum [ completed | entered-in-error | not-done ]

The status of the immunization.

statusReason
json

A coding for reason not given, if recorded - omitted otherwise.

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/v3-ActReaso
code
string

The code.

display
string

The display name of the coding.

vaccineCode
json

Coding for the administered vaccine.

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://hl7.org/fhir/sid/cvx
  • http://www.ama-assn.org/go/cpt
  • unstructured
code
string

The code.

display
string

The display name of the coding.

patient
json

The patient who received the immunization.

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”).

occurrenceDateTime
date

The date or datetime the immunization was administered or reported to have been administered.

primarySource
boolean

Whether the immunization was administered by a primary source.

- true indicates that the immunization was administered within the clinic. To document immunizations like these, use an Immunize Command.

- false indicates that the immunization was administered outside the clinic. To document this immunizations like these, use an Immunization Statement Command.

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 GET \
         --url 'https://fumage-example.canvasmedical.com/Immunization/<id>' \
         --header 'Authorization: Bearer <token>' \
         --header 'accept: application/json'
    
  • import requests
    
    url = "https://fumage-example.canvasmedical.com/Immunization/<id>"
    
    headers = {
        "accept": "application/json",
        "Authorization": "Bearer <token>"
    }
    
    response = requests.get(url, headers=headers)
    
    print(response.text)
    
  • {
      "resourceType": "Immunization",
      "id": "d9aefede-da05-4bef-bbf9-63bcf83c806a",
      "status": "completed",
      "vaccineCode": {
          "coding": [
            {
              "system": "http://hl7.org/fhir/sid/cvx",
              "code": "207",
              "display": "Moderna Severe acute respiratory syndrome coronavirus 2 (SARS-CoV-2) (coronavirus disease [COVID-19]) vaccine, mRNA-LNP, spike protein, preservative free, 50 mcg/0.25 mL dosage, for intramuscular use"
            }
          ]
      },
      "patient": {
          "reference": "Patient/a1197fa9e65b4a5195af15e0234f61c2",
          "type": "Patient"
      },
      "occurrenceDateTime": "2022-05-26T18:55:34.629659+00:00",
      "primarySource": false
    }
    
  • {
      "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 Immunization resource 'd9aefede-da05-4bef-bbf9-63bcf83c806b'"
          }
        }
      ]
    }
    
  • curl --request GET \
         --url 'https://fumage-example.canvasmedical.com/Immunization?patient=Patient/4d9c4a797b8c4a58872017e7a19a474e' \
         --header 'Authorization: Bearer <token>' \
         --header 'accept: application/json'
    
  • import requests
    
    url = "https://fumage-example.canvasmedical.com/Immunization?patient=Patient/4d9c4a797b8c4a58872017e7a19a474e"
    
    headers = {
        "accept": "application/json",
        "Authorization": "Bearer <token>"
    }
    
    response = requests.get(url, headers=headers)
    
    print(response.text)
    
  • {
        "resourceType": "Bundle",
        "type": "searchset",
        "total": 1,
        "link": [
          {
            "relation": "self",
            "url": "/Immunization?patient=Patient%2F4d9c4a797b8c4a58872017e7a19a474e&_count=10&_offset=0"
          },
          {
            "relation": "first",
            "url": "/Immunization?patient=Patient%2F4d9c4a797b8c4a58872017e7a19a474e&_count=10&_offset=0"
          },
          {
            "relation": "last",
            "url": "/Immunization?patient=Patient%2F4d9c4a797b8c4a58872017e7a19a474e&_count=10&_offset=0"
          }
        ],
        "entry": [
          {
            "resource": {
              "resourceType": "Immunization",
              "id": "d9aefede-da05-4bef-bbf9-63bcf83c806a",
              "status": "completed",
              "vaccineCode": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/sid/cvx",
                    "code": "207",
                    "display": "Moderna Severe acute respiratory syndrome coronavirus 2 (SARS-CoV-2) (coronavirus disease [COVID-19]) vaccine, mRNA-LNP, spike protein, preservative free, 50 mcg/0.25 mL dosage, for intramuscular use"
                  }
                ]
              },
              "patient": {
                  "reference": "Patient/4d9c4a797b8c4a58872017e7a19a474e",
                  "type": "Patient"
              },
              "occurrenceDateTime": "2021-12-01",
              "primarySource": false
            }
          }
        ]
    }