Condition

A clinical condition, problem, diagnosis, or other event, situation, issue, or clinical concept that has risen to a level of concern.

https://hl7.org/fhir/us/core/STU6.1/StructureDefinition-us-core-condition-encounter-diagnosis.html
https://hl7.org/fhir/us/core/STU6.1/StructureDefinition-us-core-condition-problems-health-concerns.html

post
/Condition

Condition create

Create a Condition resource.

If clinicalStatus is active, the Condition is added as a Diagnose command. If it is not active, the Condition is added as a Past Medical History command.

If an encounter or a note ID in the extension is provided, the Condition is added to the existing encounter (note). If it is not provided, a new data import note is created.

By default, this endpoint does not prevent duplicates in the record. Canvas recommends performing a search prior to adding a new condition to confirm whether the condition has already been created for the patient.

Recording Diagnose as Assess

As part of the rollout retiring the Diagnose command, this endpoint records conditions as described below. To use this behavior now, ahead of the rollout, contact Canvas Support. It also keeps integrations that resend conditions from adding duplicates, and it changes how plugins’ Diagnose commands are recorded; see Diagnose. With it on, creates work as follows:

A code the patient already has: If the patient already has an active or resolved condition with the same ICD-10 code, the request returns 422 with the ID of that condition, and nothing is written. Codes are compared ignoring dots and case. Use the existing condition instead of creating another.

A new active condition: The Condition is recorded with a committed Assess command in the note. The Assess narrative is the Condition’s note text, and its onset date is onsetDateTime. The condition goes on the problem list unless its categories include encounter-diagnosis. Plugins receive Assess command events for the command.

A new resolved condition: The Condition is added as a Past Medical History command, as it is with the setting off.

Attributes

resourceType
string

The FHIR Resource name.

extension
array[json]

Canvas supports a note identifier extension on this resource. The note identifier can be used with the Canvas Note API.

Canvas recommends sending the note identifier extension or the Encounter reference, but not both. If both are supplied, they must both refer to the same note. If neither is specified, it will insert into a Data Import note where the DOS is the current time of ingestion.

Click to view child attributes
url
string

Reference that defines the content of this object.

Value Options Supported:
  • http://schemas.canvasmedical.com/fhir/extensions/note-id
valueId
string

The valueId field is used for the Note extension and will be the note’s unique identifier.

clinicalStatus
json required

The clinical status of the condition.

If clinicalStatus is active, the Condition is added as a Diagnose command, or as an Assess command when your instance records Diagnose as Assess. If it is not active, the Condition is added as a Past Medical History command.

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://terminology.hl7.org/CodeSystem/condition-clinical
code
string required

The code of the clinical status.

Value Options Supported:
  • active
  • resolved
category
array[json] required

A category assigned to the condition.

Click to view child attributes
coding
array[json] required

Identifies where the definition of the code comes from.

The codes encounter-diagnosis and problem-list-item are paired with the system http://terminology.hl7.org/CodeSystem/condition-category.

The code health-concern is paired with the system http://hl7.org/fhir/us/core/CodeSystem/condition-category.

The codes sdoh, functional-status, disability-status, and cognitive-status are paired with the system http://hl7.org/fhir/us/core/CodeSystem/us-core-category. Please note that these codings are only optionally included as a secondary codeable concept for problem list items or health concerns.

Click to view child attributes
system
string required

The system url of the coding.

Value Options Supported:
  • http://terminology.hl7.org/CodeSystem/condition-category
  • http://hl7.org/fhir/us/core/CodeSystem/condition-category
  • http://hl7.org/fhir/us/core/CodeSystem/us-core-category
code
string required

The category code.

Value Options Supported:
  • encounter-diagnosis
  • problem-list-item
  • health-concern
  • sdoh
  • functional-status
  • disability-status
  • cognitive-status
code
json required

Identification of the condition, problem or diagnosis.

Canvas will not validate the coding supplied in the payload, instead Canvas will just save the system, code, and display as provided. We highly recommend supplying a coding with the system of http://hl7.org/fhir/sid/icd-10-cm.

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.

code
string required

The code of the clinical status.

subject
json required

Who has the condition.

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

encounter
json

Encounter created as part of

Canvas does not currently support concurrent creation of resources on the same encounter. Please avoid issuing concurrent requests that reference the same encounter to this endpoint, or to any other endpoints that reference encounters. It is OK to issue concurrent requests to these endpoints as long as the requests reference different encounters.

Click to view child attributes
reference
string

The reference string of the encounter in the format of "Encounter/f7663d7b-13bd-4236-843e-086306aea125".

type
string

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

onsetDateTime
date

Estimated or actual date.

abatementDateTime
date

When in resolution/remission.

recordedDate
datetime

Date-time record was first recorded.

If ommitted it will default to the timestamp of ingestion into Canvas.

recorder
json

If ommitted, this will default to Canvas Bot.

Click to view child attributes
reference
string

The reference string of the subject in the format of "Practitioner/ed1e304acdb847148338c6b0596d93fd".

type
string

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

note
array[json]

Additional information about the Condition, up to 1,000 characters. This note only appears in the Canvas UI for resolved conditions. When your instance records Diagnose as Assess, the note of an active Condition becomes the Assess narrative.

Click to view child attributes
text
string

The annotation - text content.

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
/Condition/{id}

Condition read

Read a Condition resource.

Path Parameters

id required
string
The unique identifier for the Condition

Response Payload Attributes

resourceType
string

The FHIR Resource name.

id
string

The identifier of the Condition.

text
json

Text summary of the Condition, for human interpretation.

Click to view child attributes
status
enum [ generated ]

The status of the narrative.

div
string

Limited xhtml content that contains the human readable text of the Condition.

extension
array[json]

Canvas supports a note identifier extension on this resource. The note identifier can be used with the Canvas Note API.

Click to view child attributes
url
string

Reference that defines the content of this object.

Value Options Supported:
  • http://schemas.canvasmedical.com/fhir/extensions/note-id
valueId
string

The valueId field is used for the Note extension and will be the note’s unique identifier.

clinicalStatus
json

The clinical status of the condition.

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/condition-clinical
code
string

The code of the clinical status.

Value Options Supported:
  • active
  • resolved
  • relapse
  • remission
display
string

The display name of the coding.

Value Options Supported:
  • Active
  • Resolved
  • Relapse
  • Remission
text
string

Plain text representation of the concept.

Value Options Supported:
  • Active
  • Resolved
  • Relapse
  • Remission
verificationStatus
json

The verification status to support the clinical status of the condition.

A confirmed status corresponds to a committed condition on the patient’s record, whichever command recorded it, including Diagnose, Assess, Add Condition, Past Medical History, or an Assess Coding Gap accepted with Accept and Diagnose. An entered-in-error status means the condition, or the command that recorded it, was entered-in-error. A provisional condition was added as an indication on an Imaging Order, Refer, POC Lab Test, or Lab Order command, in a note or by a plugin, or by a protocol recommendation for a condition the patient doesn’t have charted. Indications on Prescribe and Order DME commands don’t add conditions.

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/condition-ver-status
code
string

The code of the clinical status.

Value Options Supported:
  • confirmed
  • entered-in-error
  • provisional
display
string

The display name of the coding.

Value Options Supported:
  • Confirmed
  • Entered in Error
  • Provisional
text
string

Plain text representation of the concept.

Value Options Supported:
  • Confirmed
  • Entered in Error
  • Provisional
category
array[json]

A category assigned to the condition.

Click to view child attributes
coding
array[json]

Identifies where the definition of the code comes from.

The codes encounter-diagnosis and problem-list-item are paired with the system http://terminology.hl7.org/CodeSystem/condition-category.

The code health-concern is paired with the system http://hl7.org/fhir/us/core/CodeSystem/condition-category.

The codes sdoh, functional-status, disability-status, and cognitive-status are paired with the system http://hl7.org/fhir/us/core/CodeSystem/us-core-category. Please note that these codings are only optionally included as a secondary codeable concept for problem list items or health concerns.

Click to view child attributes
system
string

The system url of the coding.

Value Options Supported:
  • http://terminology.hl7.org/CodeSystem/condition-category
  • http://hl7.org/fhir/us/core/CodeSystem/condition-category
  • http://hl7.org/fhir/us/core/CodeSystem/us-core-category
code
string

The category code.

Value Options Supported:
  • encounter-diagnosis
  • problem-list-item
  • health-concern
  • sdoh
  • functional-status
  • disability-status
  • cognitive-status
display
string

The display name of the coding.

Value Options Supported:
  • Encounter Diagnosis
  • Problem List Item
  • Health Concern
  • SDOH
  • Functional Status
  • Disability Status
  • Cognitive Status
text
string

Plain text representation of the concept.

Value Options Supported:
  • Encounter Diagnosis
  • Problem List Item
  • Health Concern
  • SDOH
  • Functional Status
  • Disability Status
  • Cognitive Status
code
json

Identification of the condition, problem or diagnosis.

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.

code
string

The code of the clinical status.

display
string

The display name of the coding.

subject
json

Who has the condition.

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

encounter
json

Encounter created as part of

Click to view child attributes
reference
string

The reference string of the encounter in the format of "Encounter/f7663d7b-13bd-4236-843e-086306aea125".

type
string

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

onsetDateTime
date

Estimated or actual date.

abatementDateTime
date

When in resolution/remission.

recordedDate
datetime

Date-time record was first recorded.

recorder
json

Who recorded the condition.

Click to view child attributes
reference
string

The reference string of the subject in the format of "Practitioner/ed1e304acdb847148338c6b0596d93fd".

type
string

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

note
array[json]

Additional information about the Condition. This note only appears in the Canvas UI for resolved conditions.

Click to view child attributes
text
string

The annotation - text content.

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.
put
/Condition/{id}

Condition update

Update a Condition resource.

The only type of Condition update interaction that is supported by Canvas is to mark an existing Condition as entered-in-error. No changes to other fields will be processed. All required fields must still be provided, but our FHIR Update will assume a call to the FHIR Condition Update is an intention to mark the condition as entered-in-error.

When your instance records Diagnose as Assess, entering a Condition in error also enters in error the command that recorded it: the Diagnose, Assess, Add Condition, or Past Medical History command. This works only when that command is all that references the condition. If another command assesses or resolves the condition, or no such command recorded it, the request returns 422; enter the condition in error from the patient’s chart instead.

Attributes

resourceType
string

The FHIR Resource name.

id
string required

The identifier of the Condition.

clinicalStatus
json required

The clinical status of the condition.

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://terminology.hl7.org/CodeSystem/condition-clinical
code
string required

The code of the clinical status.

Value Options Supported:
  • active
  • resolved
category
array[json] required

A category assigned to the condition.

Click to view child attributes
coding
array[json] required

Identifies where the definition of the code comes from.

The codes encounter-diagnosis and problem-list-item are paired with the system http://terminology.hl7.org/CodeSystem/condition-category.

The code health-concern is paired with the system http://hl7.org/fhir/us/core/CodeSystem/condition-category.

The codes sdoh, functional-status, disability-status, and cognitive-status are paired with the system http://hl7.org/fhir/us/core/CodeSystem/us-core-category. Please note that these codings are only optionally included as a secondary codeable concept for problem list items or health concerns.

Click to view child attributes
system
string required

The system url of the coding.

Value Options Supported:
  • http://terminology.hl7.org/CodeSystem/condition-category
  • http://hl7.org/fhir/us/core/CodeSystem/condition-category
  • http://hl7.org/fhir/us/core/CodeSystem/us-core-category
code
string required

The category code.

Value Options Supported:
  • encounter-diagnosis
  • problem-list-item
  • health-concern
  • sdoh
  • functional-status
  • disability-status
  • cognitive-status
code
json required

Identification of the condition, problem or diagnosis.

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.

code
string required

The code of the clinical status.

subject
json required

Who has the condition.

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

recorder
json

On an Update this Practitioner will become the user in Canvas who marked the Condition as entered-in-error. If ommitted, it will default to Canvas Bot.

Click to view child attributes
reference
string

The reference string of the subject in the format of "Practitioner/ed1e304acdb847148338c6b0596d93fd".

type
string

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

Responses

200 OK
The server has successfully processed the request.

Canvas returns 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.
404 Not Found
The requested resource was not found.
405 Method Not Allowed
The request performs an operation that is either not supported or allowed.
412 Precondition Failed
The request depends on a precondition that has not been met.
422 Unprocessable Entity
The request cannot be processed due to semantic issues or conflicts with the database state.

Query Parameters

_id
string

The identifier of the Condition.

clinical-status
string

The clinical status of the condition.

Search Values Supported:
  • active
  • resolved
patient
string

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

verification-status
string

The verification status to support the clinical status of the condition.

Search Values Supported:
  • confirmed
  • entered-in-error
  • provisional
category
string

The category of the condition. 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/condition-category|health-concern).

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 identifier of the Condition.

text
json

Text summary of the Condition, for human interpretation.

Click to view child attributes
status
enum [ generated ]

The status of the narrative.

div
string

Limited xhtml content that contains the human readable text of the Condition.

extension
array[json]

Canvas supports a note identifier extension on this resource. The note identifier can be used with the Canvas Note API.

Click to view child attributes
url
string

Reference that defines the content of this object.

Value Options Supported:
  • http://schemas.canvasmedical.com/fhir/extensions/note-id
valueId
string

The valueId field is used for the Note extension and will be the note’s unique identifier.

clinicalStatus
json

The clinical status of the condition.

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/condition-clinical
code
string

The code of the clinical status.

Value Options Supported:
  • active
  • resolved
  • relapse
  • remission
display
string

The display name of the coding.

Value Options Supported:
  • Active
  • Resolved
  • Relapse
  • Remission
text
string

Plain text representation of the concept.

Value Options Supported:
  • Active
  • Resolved
  • Relapse
  • Remission
verificationStatus
json

The verification status to support the clinical status of the condition.

A confirmed status corresponds to a committed condition on the patient’s record, whichever command recorded it, including Diagnose, Assess, Add Condition, Past Medical History, or an Assess Coding Gap accepted with Accept and Diagnose. An entered-in-error status means the condition, or the command that recorded it, was entered-in-error. A provisional condition was added as an indication on an Imaging Order, Refer, POC Lab Test, or Lab Order command, in a note or by a plugin, or by a protocol recommendation for a condition the patient doesn’t have charted. Indications on Prescribe and Order DME commands don’t add conditions.

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/condition-ver-status
code
string

The code of the clinical status.

Value Options Supported:
  • confirmed
  • entered-in-error
  • provisional
display
string

The display name of the coding.

Value Options Supported:
  • Confirmed
  • Entered in Error
  • Provisional
text
string

Plain text representation of the concept.

Value Options Supported:
  • Confirmed
  • Entered in Error
  • Provisional
category
array[json]

A category assigned to the condition.

Click to view child attributes
coding
array[json]

Identifies where the definition of the code comes from.

The codes encounter-diagnosis and problem-list-item are paired with the system http://terminology.hl7.org/CodeSystem/condition-category.

The code health-concern is paired with the system http://hl7.org/fhir/us/core/CodeSystem/condition-category.

The codes sdoh, functional-status, disability-status, and cognitive-status are paired with the system http://hl7.org/fhir/us/core/CodeSystem/us-core-category. Please note that these codings are only optionally included as a secondary codeable concept for problem list items or health concerns.

Click to view child attributes
system
string

The system url of the coding.

Value Options Supported:
  • http://terminology.hl7.org/CodeSystem/condition-category
  • http://hl7.org/fhir/us/core/CodeSystem/condition-category
  • http://hl7.org/fhir/us/core/CodeSystem/us-core-category
code
string

The category code.

Value Options Supported:
  • encounter-diagnosis
  • problem-list-item
  • health-concern
  • sdoh
  • functional-status
  • disability-status
  • cognitive-status
display
string

The display name of the coding.

Value Options Supported:
  • Encounter Diagnosis
  • Problem List Item
  • Health Concern
  • SDOH
  • Functional Status
  • Disability Status
  • Cognitive Status
text
string

Plain text representation of the concept.

Value Options Supported:
  • Encounter Diagnosis
  • Problem List Item
  • Health Concern
  • SDOH
  • Functional Status
  • Disability Status
  • Cognitive Status
code
json

Identification of the condition, problem or diagnosis.

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.

code
string

The code of the clinical status.

display
string

The display name of the coding.

subject
json

Who has the condition.

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

encounter
json

Encounter created as part of

Click to view child attributes
reference
string

The reference string of the encounter in the format of "Encounter/f7663d7b-13bd-4236-843e-086306aea125".

type
string

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

onsetDateTime
date

Estimated or actual date.

abatementDateTime
date

When in resolution/remission.

recordedDate
datetime

Date-time record was first recorded.

recorder
json

Who recorded the condition.

Click to view child attributes
reference
string

The reference string of the subject in the format of "Practitioner/ed1e304acdb847148338c6b0596d93fd".

type
string

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

note
array[json]

Additional information about the Condition. This note only appears in the Canvas UI for resolved conditions.

Click to view child attributes
text
string

The annotation - text content.

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/Condition' \
         --header 'Authorization: Bearer <token>' \
         --header 'accept: application/json' \
         --header 'content-type: application/json' \
         --data '
    {
        "resourceType": "Condition",
        "extension": [
            {
                "url": "http://schemas.canvasmedical.com/fhir/extensions/note-id",
                "valueId": "2a8154d8-9420-4ab5-97f8-c2dae5a10af5"
            }
        ],
        "clinicalStatus": {
            "coding": [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/condition-clinical",
                    "code": "resolved",
                    "display": "Resolved"
                }
            ],
            "text": "Resolved"
        },
        "verificationStatus": {
            "coding": [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/condition-ver-status",
                    "code": "confirmed",
                    "display": "Confirmed"
                }
            ],
            "text": "Confirmed"
        },
        "category": [
            {
                "coding": [
                    {
                        "system": "http://terminology.hl7.org/CodeSystem/condition-category",
                        "code": "problem-list-item",
                        "display": "Problem List Item"
                    }
                ],
                "text": "Problem List Item"
            }
        ],
        "code": {
            "coding": [
                {
                    "system": "http://hl7.org/fhir/sid/icd-10-cm",
                    "code": "V97.21XS",
                    "display": "Parachutist entangled in object, sequela"
                }
            ],
            "text": "Parachutist entangled in object, sequela"
        },
        "subject": {
            "reference": "Patient/b8dfa97bdcdf4754bcd8197ca78ef0f0"
        },
        "encounter": {
            "reference": "Encounter/eae3c8a5-a129-4960-9715-fc26da30eccc"
        },
        "onsetDateTime": "2023-06-15",
        "abatementDateTime": "2023-06-17",
        "recordedDate": "2023-06-18T15:00:00-04:00",
        "recorder": {
            "reference": "Practitioner/76428138e7644ce6b7eb426fdbbf2f39"
        },
        "note": [
            {
                "text": "Condition note"
            }
        ]
    }'
    
  • import requests
    
    url = "https://fumage-example.canvasmedical.com/Condition"
    
    headers = {
        "accept": "application/json",
        "Authorization": "Bearer <token>",
        "content-type": "application/json"
    }
    
    payload = {
        "resourceType": "Condition",
        "extension": [
            {
                "url": "http://schemas.canvasmedical.com/fhir/extensions/note-id",
                "valueId": "2a8154d8-9420-4ab5-97f8-c2dae5a10af5"
            }
        ],
        "clinicalStatus": {
            "coding": [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/condition-clinical",
                    "code": "resolved",
                    "display": "Resolved"
                }
            ],
            "text": "Resolved"
        },
        "verificationStatus": {
            "coding": [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/condition-ver-status",
                    "code": "confirmed",
                    "display": "Confirmed"
                }
            ],
            "text": "Confirmed"
        },
        "category": [
            {
                "coding": [
                    {
                        "system": "http://terminology.hl7.org/CodeSystem/condition-category",
                        "code": "problem-list-item",
                        "display": "Problem List Item"
                    }
                ],
                "text": "Problem List Item"
            }
        ],
        "code": {
            "coding": [
                {
                    "system": "http://hl7.org/fhir/sid/icd-10-cm",
                    "code": "V97.21XS",
                    "display": "Parachutist entangled in object, sequela"
                }
            ],
            "text": "Parachutist entangled in object, sequela"
        },
        "subject": {
            "reference": "Patient/b8dfa97bdcdf4754bcd8197ca78ef0f0"
        },
        "encounter": {
            "reference": "Encounter/eae3c8a5-a129-4960-9715-fc26da30eccc"
        },
        "onsetDateTime": "2023-06-15",
        "abatementDateTime": "2023-06-17",
        "recordedDate": "2023-06-18T15:00:00-04:00",
        "recorder": {
            "reference": "Practitioner/76428138e7644ce6b7eb426fdbbf2f39"
        },
        "note": [
            {
                "text": "Condition note"
            }
        ]
    }
    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/Condition/<id>' \
         --header 'Authorization: Bearer <token>' \
         --header 'accept: application/json'
    
  • import requests
    
    url = "https://fumage-example.canvasmedical.com/Condition/<id>"
    
    headers = {
        "accept": "application/json",
        "Authorization": "Bearer <token>"
    }
    
    response = requests.get(url, headers=headers)
    
    print(response.text)
    
  • {
        "resourceType": "Condition",
        "id": "3340c331-d446-4700-9c23-7959bd393f26",
        "extension": [
            {
                "url": "http://schemas.canvasmedical.com/fhir/extensions/note-id",
                "valueId": "2a8154d8-9420-4ab5-97f8-c2dae5a10af5"
            }
        ],
        "clinicalStatus":
        {
            "coding":
            [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/condition-clinical",
                    "code": "resolved",
                    "display": "Resolved"
                }
            ],
            "text": "Resolved"
        },
        "verificationStatus":
        {
            "coding":
            [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/condition-ver-status",
                    "code": "confirmed",
                    "display": "Confirmed"
                }
            ],
            "text": "Confirmed"
        },
        "category":
        [
            {
                "coding":
                [
                    {
                        "system": "http://terminology.hl7.org/CodeSystem/condition-category",
                        "code": "problem-list-item",
                        "display": "Problem List Item"
                    }
                ],
                "text": "Problem List Item"
            }
        ],
        "code":
        {
            "coding":
            [
                {
                    "system": "http://hl7.org/fhir/sid/icd-10-cm",
                    "code": "V97.21XS",
                    "display": "Parachutist entangled in object, sequela"
                }
            ],
            "text": "Parachutist entangled in object, sequela"
        },
        "subject":
        {
            "reference": "Patient/b8dfa97bdcdf4754bcd8197ca78ef0f0"
        },
        "encounter":
        {
            "reference": "Encounter/eae3c8a5-a129-4960-9715-fc26da30eccc"
        },
        "onsetDateTime": "2023-06-15",
        "abatementDateTime": "2023-06-17",
        "recordedDate": "2023-06-18T15:00:00-04:00",
        "recorder":
        {
            "reference": "Practitioner/76428138e7644ce6b7eb426fdbbf2f39"
        },
        "note":
        [
            {
                "text": "Condition 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 Condition resource 'a47c7b0e-bbb4-42cd-bc4a-df259d148ea1'"
          }
        }
      ]
    }
    
  • curl --request PUT \
         --url 'https://fumage-example.canvasmedical.com/Condition/<id>' \
         --header 'Authorization: Bearer <token>' \
         --header 'accept: application/json' \
         --header 'content-type: application/json' \
         --data '
    {
        "resourceType": "Condition",
        "extension": [
            {
                "url": "http://schemas.canvasmedical.com/fhir/extensions/note-id",
                "valueId": "2a8154d8-9420-4ab5-97f8-c2dae5a10af5"
            }
        ],
        "clinicalStatus": {
            "coding": [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/condition-clinical",
                    "code": "resolved",
                    "display": "Resolved"
                }
            ],
            "text": "Resolved"
        },
        "verificationStatus": {
            "coding": [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/condition-ver-status",
                    "code": "entered-in-error",
                    "display": "Entered in Error"
                }
            ],
            "text": "Entered in Error"
        },
        "category": [
            {
                "coding": [
                    {
                        "system": "http://terminology.hl7.org/CodeSystem/condition-category",
                        "code": "problem-list-item",
                        "display": "Problem List Item"
                    }
                ],
                "text": "Problem List Item"
            }
        ],
        "code": {
            "coding": [
                {
                    "system": "http://hl7.org/fhir/sid/icd-10-cm",
                    "code": "V97.21XS",
                    "display": "Parachutist entangled in object, sequela"
                }
            ],
            "text": "Parachutist entangled in object, sequela"
        },
        "subject": {
            "reference": "Patient/b8dfa97bdcdf4754bcd8197ca78ef0f0"
        },
        "encounter": {
            "reference": "Encounter/eae3c8a5-a129-4960-9715-fc26da30eccc"
        },
        "onsetDateTime": "2023-06-15",
        "abatementDateTime": "2023-06-17",
        "recordedDate": "2023-06-18T15:00:00-04:00",
        "recorder": {
            "reference": "Practitioner/76428138e7644ce6b7eb426fdbbf2f39"
        },
        "note": [
            {
                "text": "Condition note"
            }
        ]
    }'
    
  • import requests
    
    url = "https://fumage-example.canvasmedical.com/Condition/<id>"
    
    headers = {
        "accept": "application/json",
        "Authorization": "Bearer <token>",
        "content-type": "application/json"
    }
    
    payload = {
        "resourceType": "Condition",
        "extension": [
            {
                "url": "http://schemas.canvasmedical.com/fhir/extensions/note-id",
                "valueId": "2a8154d8-9420-4ab5-97f8-c2dae5a10af5"
            }
        ],
        "clinicalStatus": {
            "coding": [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/condition-clinical",
                    "code": "resolved",
                    "display": "Resolved"
                }
            ],
            "text": "Resolved"
        },
        "verificationStatus": {
            "coding": [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/condition-ver-status",
                    "code": "entered-in-error",
                    "display": "Entered in Error"
                }
            ],
            "text": "Entered in Error"
        },
        "category": [
            {
                "coding": [
                    {
                        "system": "http://terminology.hl7.org/CodeSystem/condition-category",
                        "code": "problem-list-item",
                        "display": "Problem List Item"
                    }
                ],
                "text": "Problem List Item"
            }
        ],
        "code": {
            "coding": [
                {
                    "system": "http://hl7.org/fhir/sid/icd-10-cm",
                    "code": "V97.21XS",
                    "display": "Parachutist entangled in object, sequela"
                }
            ],
            "text": "Parachutist entangled in object, sequela"
        },
        "subject": {
            "reference": "Patient/b8dfa97bdcdf4754bcd8197ca78ef0f0"
        },
        "encounter": {
            "reference": "Encounter/eae3c8a5-a129-4960-9715-fc26da30eccc"
        },
        "onsetDateTime": "2023-06-15",
        "abatementDateTime": "2023-06-17",
        "recordedDate": "2023-06-18T15:00:00-04:00",
        "recorder": {
            "reference": "Practitioner/76428138e7644ce6b7eb426fdbbf2f39"
        },
        "note": [
            {
                "text": "Condition note"
            }
        ]
    }
    response = requests.put(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-found",
          "details": {
            "text": "Unknown Condition resource 'a47c7b0e-bbb4-42cd-bc4a-df259d148ea1'"
          }
        }
      ]
    }
    
  • {
      "resourceType": "OperationOutcome",
      "issue": [
        {
          "severity": "error",
          "code": "not-supported",
          "details": {
            "text": "Operation is not supported"
          }
        }
      ]
    }
    
  • {
      "resourceType": "OperationOutcome",
      "issue": [
        {
          "severity": "error",
          "code": "conflict",
          "details": {
            "text": "Resource updated since If-Unmodified-Since date"
          }
        }
      ]
    }
    
  • {
      "resourceType": "OperationOutcome",
      "issue": [
        {
          "severity": "error",
          "code": "business-rule",
          "details": {
            "text": "Unprocessable entity"
          }
        }
      ]
    }
    
  • curl --request GET \
         --url 'https://fumage-example.canvasmedical.com/Condition?patient=Patient/b8dfa97bdcdf4754bcd8197ca78ef0f0&category=http://terminology.hl7.org/CodeSystem/condition-category|health-concern' \
         --header 'Authorization: Bearer <token>' \
         --header 'accept: application/json'
    
  • import requests
    
    url = "https://fumage-example.canvasmedical.com/Condition?patient=Patient/b8dfa97bdcdf4754bcd8197ca78ef0f0&category=http://terminology.hl7.org/CodeSystem/condition-category|health-concern"
    
    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": "/Condition?patient=Patient%2Fb8dfa97bdcdf4754bcd8197ca78ef0f0&_count=10&_offset=0"
            },
            {
                "relation": "first",
                "url": "/Condition?patient=Patient%2Fb8dfa97bdcdf4754bcd8197ca78ef0f0&_count=10&_offset=0"
            },
            {
                "relation": "last",
                "url": "/Condition?patient=Patient%2Fb8dfa97bdcdf4754bcd8197ca78ef0f0&_count=10&_offset=0"
            }
        ],
        "entry": [
            {
                "resource": {
                    "resourceType": "Condition",
                    "id": "3340c331-d446-4700-9c23-7959bd393f26",
                    "extension": [
                        {
                            "url": "http://schemas.canvasmedical.com/fhir/extensions/note-id",
                            "valueId": "2a8154d8-9420-4ab5-97f8-c2dae5a10af5"
                        }
                    ],
                    "clinicalStatus": {
                        "coding": [
                            {
                                "system": "http://terminology.hl7.org/CodeSystem/condition-clinical",
                                "code": "resolved",
                                "display": "Resolved"
                            }
                        ],
                        "text": "Resolved"
                    },
                    "verificationStatus": {
                        "coding": [
                            {
                                "system": "http://terminology.hl7.org/CodeSystem/condition-ver-status",
                                "code": "confirmed",
                                "display": "Confirmed"
                            }
                        ],
                        "text": "Confirmed"
                    },
                    "category": [
                        {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/condition-category",
                                    "code": "problem-list-item",
                                    "display": "Problem List Item"
                                }
                            ],
                            "text": "Problem List Item"
                        }
                    ],
                    "code": {
                        "coding": [
                            {
                                "system": "http://hl7.org/fhir/sid/icd-10-cm",
                                "code": "V97.21XS",
                                "display": "Parachutist entangled in object, sequela"
                            }
                        ],
                        "text": "Parachutist entangled in object, sequela"
                    },
                    "subject": {
                        "reference": "Patient/b8dfa97bdcdf4754bcd8197ca78ef0f0"
                    },
                    "encounter": {
                        "reference": "Encounter/eae3c8a5-a129-4960-9715-fc26da30eccc"
                    },
                    "onsetDateTime": "2023-06-15",
                    "abatementDateTime": "2023-06-17",
                    "recordedDate": "2023-06-18T15:00:00-04:00",
                    "recorder": {
                        "reference": "Practitioner/76428138e7644ce6b7eb426fdbbf2f39"
                    },
                    "note": [
                        {
                            "text": "Condition note"
                        }
                    ]
                }
            }
        ]
    }
    
  • {
      "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"
          }
        }
      ]
    }