DetectedIssue

Indicates an actual or potential clinical issue with or between one or more active or proposed clinical actions for a patient; e.g. Drug-drug interaction, Ineffective treatment frequency, Procedure-condition conflict, etc.

https://www.hl7.org/fhir/R4/detectedissue.html

post
/DetectedIssue

DetectedIssue create

Create an DetectedIssue.

Attributes

resourceType
string

The FHIR Resource name.

identifier
array[json]

External identifiers associated with this DetectedIssue.

The identifier field allows for one external identifier to be stored for each DetectedIssue. This identifier may help users identify the issue in their own systems, particularly if the DetectedIssue was added from an external system or source.

Click to view child attributes
system
string required

The namespace for the identifier value.

value
string required

The unique value for the identifier within the specified system.

status
enum required

The status of the DetectedIssue.

There is some extra validation when creating/updating depending on what is supplied in the mitigation attribute

- The status must be registered if no mitigation is supplied.
- If there is only one mitigation supplied and the action of that mitigation is valid, the status must be preliminary.
- If there is only one mitigation supplied and the action of that mitigation is invalid, the status must be cancelled.
- If there are more than one mitigation and the one with the latest date has an action of deferred, the status must be amended.
- If there are more than one mitigation and the one with the latest date has an action of accepted or refuted, the status must be final.
- If there are more than one mitigation and the one with the latest date has an action of corrected, the status must be corrected.

Value Options Supported:
  • registered
  • preliminary
  • final
  • amended
  • corrected
  • cancelled
  • entered-in-error
code
json required

Identifies the general type of issue identified.

Click to view child attributes
coding
array[json] required

Code defined by a terminology system.

Click to view child attributes
system
string required

The system url of the coding.

Value Options Supported:
  • https://terminology.hl7.org/CodeSystem/v3-ActCode
code
string required

The code that identifies the general type of issue identified.

Value Options Supported:
  • CODINGGAP
severity
enum

Indicates the degree of importance associated with the identified issue based on the potential impact on the patient.

Value Options Supported:
  • high
  • moderate
  • low
patient
json required

The patient for the DetectedIssue record.

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

identifiedDateTime
datetime required

The datetime when the detected issue was identified.

author
json required

Individual or device responsible for the issue being raised.

Click to view child attributes
reference
string required

The reference string of the author in the format of "Practitioner/4d789a3d5e794c0eb159a126b48c8b9f".

type
string

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

evidence
array[json] required

Supporting evidence or manifestations that provide the basis for identifying the detected issue.

There must be at least one evidence element with system “http://hl7.org/fhir/sid/icd-10-cm”.

Click to view child attributes
code
array[json] required

A manifestation that led to the recording of this detected issue.

Click to view child attributes
coding
array[json] required

Code defined by a terminology system.

Click to view child attributes
system
string required

The system url of the coding.

Value Options Supported:
  • http://hl7.org/fhir/sid/icd-10-cm
code
string required

The code of the Evidence.

display
string required

The display name of the coding.

detail
string

A textual explanation of the detected issue.

reference
string

The literature, knowledge base, or similar reference that describes the propensity for the detected issue identified. This field requires a valid URL representing the reference.

mitigation
array[json]

Indicates an action that has been taken or is committed to reduce or eliminate the likelihood of the risk identified by the detected issue from manifesting.

Click to view child attributes
action
json required

The type of action that has been taken or is committed to reduce or eliminate the likelihood of the risk identified by the detected issue from manifesting.

Click to view child attributes
coding
array[json] required

Code defined by a terminology system.

Click to view child attributes
system
string required

The system url of the coding.

Value Options Supported:
  • https://schemas.canvasmedical.com/fhir/detectedissue-mitigation-action
code
enum required

Describes the action that was taken or the observation that was made that reduces/eliminates the risk associated with the identified issue.

If only one mitigation is supplied, the action must be either valid or invalid.

If there are more than one mitigation, the one with the earliest date must be valid. The rest of the mitigations that are not the last date will need to have an action of deferred. While the final mitigation can have a status of deferred, accepted, refuted or corrected.

Value Options Supported:
  • valid
  • invalid
  • accepted
  • refuted
  • deferred
  • corrected
date
datetime required

The datetime when the mitigation action was taken or committed to be taken.

author
json required

Individual or device responsible for the mitigation action.

Click to view child attributes
reference
string required

The reference string of the author in the format of "Practitioner/4d789a3d5e794c0eb159a126b48c8b9f".

type
string

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

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

DetectedIssue read

Read an DetectedIssue.

Path Parameters

id required
string
The unique identifier for the DetectedIssue

Response Payload Attributes

resourceType
string

The FHIR Resource name.

id
string

The Canvas identifier of the DetectedIssue.

identifier
array[json]

External identifiers associated with this DetectedIssue.

Click to view child attributes
system
string

The namespace for the identifier value.

value
string

The unique value for the identifier within the specified system.

status
enum

The status of the DetectedIssue.

Value Options Supported:
  • registered
  • preliminary
  • final
  • amended
  • corrected
  • cancelled
  • entered-in-error
code
json

Identifies the general type of issue identified.

Click to view child attributes
coding
array[json]

Code defined by a terminology system.

Click to view child attributes
system
string

The system url of the coding.

Value Options Supported:
  • https://terminology.hl7.org/CodeSystem/v3-ActCode
code
string

The code that identifies the general type of issue identified.

Value Options Supported:
  • CODINGGAP
display
string

The display name of the coding.

text
string

Plain text representation of the coding.

severity
enum

Indicates the degree of importance associated with the identified issue based on the potential impact on the patient.

Value Options Supported:
  • high
  • moderate
  • low
patient
json

The patient for the DetectedIssue record.

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

identifiedDateTime
datetime

The datetime when the detected issue was identified.

author
json

Individual or device responsible for the issue being raised.

Click to view child attributes
reference
string

The reference string of the author in the format of "Practitioner/4d789a3d5e794c0eb159a126b48c8b9f".

type
string

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

evidence
array[json]

Supporting evidence or manifestations that provide the basis for identifying the detected issue.

Click to view child attributes
code
array[json]

A manifestation that led to the recording of this detected issue.

Click to view child attributes
coding
array[json]

Code defined by a terminology system.

Click to view child attributes
system
string

The system url of the coding.

Value Options Supported:
  • http://hl7.org/fhir/sid/icd-10-cm
code
string

The code of the Evidence.

display
string

The display name of the coding.

detail
string

A textual explanation of the detected issue.

reference
string

The literature, knowledge base, or similar reference that describes the propensity for the detected issue identified. This field requires a valid URL representing the reference.

mitigation
array[json]

Indicates an action that has been taken or is committed to reduce or eliminate the likelihood of the risk identified by the detected issue from manifesting.

Click to view child attributes
id
string

The Canvas identifier of the DetectedIssueMitigation.

action
json

The type of action that has been taken or is committed to reduce or eliminate the likelihood of the risk identified by the detected issue from manifesting.

Click to view child attributes
coding
array[json]

Code defined by a terminology system.

Click to view child attributes
system
string

The system url of the coding.

Value Options Supported:
  • https://schemas.canvasmedical.com/fhir/detectedissue-mitigation-action
code
enum

Describes the action that was taken or the observation that was made that reduces/eliminates the risk associated with the identified issue.

Value Options Supported:
  • valid
  • invalid
  • accepted
  • refuted
  • deferred
  • corrected
display
string

The display name of the coding

date
datetime

The datetime when the mitigation action was taken or committed to be taken.

author
json

Individual or device responsible for the mitigation action.

Click to view child attributes
reference
string

The reference string of the author in the format of "Practitioner/4d789a3d5e794c0eb159a126b48c8b9f".

type
string

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

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

DetectedIssue update

Update an DetectedIssue.

Attributes

resourceType
string

The FHIR Resource name.

id
string required

The Canvas identifier of the DetectedIssue.

identifier
array[json]

External identifiers associated with this DetectedIssue.

The identifier field allows for one external identifier to be stored for each DetectedIssue. This identifier may help users identify the issue in their own systems, particularly if the DetectedIssue was added from an external system or source.

Click to view child attributes
system
string required

The namespace for the identifier value.

value
string required

The unique value for the identifier within the specified system.

status
enum required

The status of the DetectedIssue.

There is some extra validation when creating/updating depending on what is supplied in the mitigation attribute

- The status must be registered if no mitigation is supplied.
- If there is only one mitigation supplied and the action of that mitigation is valid, the status must be preliminary.
- If there is only one mitigation supplied and the action of that mitigation is invalid, the status must be cancelled.
- If there are more than one mitigation and the one with the latest date has an action of deferred, the status must be amended.
- If there are more than one mitigation and the one with the latest date has an action of accepted or refuted, the status must be final.
- If there are more than one mitigation and the one with the latest date has an action of corrected, the status must be corrected.

Value Options Supported:
  • registered
  • preliminary
  • final
  • amended
  • corrected
  • cancelled
  • entered-in-error
code
json required

Identifies the general type of issue identified.

Click to view child attributes
coding
array[json] required

Code defined by a terminology system.

Click to view child attributes
system
string required

The system url of the coding.

Value Options Supported:
  • https://terminology.hl7.org/CodeSystem/v3-ActCode
code
string required

The code that identifies the general type of issue identified.

Value Options Supported:
  • CODINGGAP
severity
enum

Indicates the degree of importance associated with the identified issue based on the potential impact on the patient.

Value Options Supported:
  • high
  • moderate
  • low
patient
json required

The patient for the DetectedIssue record.

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

identifiedDateTime
datetime required

The datetime when the detected issue was identified.

author
json required

Individual or device responsible for the issue being raised.

Click to view child attributes
reference
string required

The reference string of the author in the format of "Practitioner/4d789a3d5e794c0eb159a126b48c8b9f".

type
string

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

evidence
array[json] required

Supporting evidence or manifestations that provide the basis for identifying the detected issue.

When updating attributes, make sure to supply the id field for the evidences that already exist in Canvas so they are not duplicated or removed.

There must be at least one evidence element with system “http://hl7.org/fhir/sid/icd-10-cm”.

Click to view child attributes
code
array[json] required

A manifestation that led to the recording of this detected issue.

Click to view child attributes
coding
array[json] required

Code defined by a terminology system.

Click to view child attributes
system
string required

The system url of the coding.

Value Options Supported:
  • http://hl7.org/fhir/sid/icd-10-cm
code
string required

The code of the Evidence.

display
string required

The display name of the coding.

detail
string

A textual explanation of the detected issue.

reference
string

The literature, knowledge base, or similar reference that describes the propensity for the detected issue identified. This field requires a valid URL representing the reference.

mitigation
array[json]

When updating attributes, make sure to supply the id field for the mitigations that already exist in Canvas so they are not duplicated or removed.

Click to view child attributes
id
string

The Canvas identifier of the DetectedIssueMitigation.

action
json required

The type of action that has been taken or is committed to reduce or eliminate the likelihood of the risk identified by the detected issue from manifesting.

Click to view child attributes
coding
array[json] required

Code defined by a terminology system.

Click to view child attributes
system
string required

The system url of the coding.

Value Options Supported:
  • https://schemas.canvasmedical.com/fhir/detectedissue-mitigation-action
code
enum required

Describes the action that was taken or the observation that was made that reduces/eliminates the risk associated with the identified issue.

If only one mitigation is supplied, the action must be either valid or invalid.

If there are more than one mitigation, the one with the earliest date must be valid. The rest of the mitigations that are not the last date will need to have an action of deferred. While the final mitigation can have a status of deferred, accepted, refuted or corrected.

Value Options Supported:
  • valid
  • invalid
  • accepted
  • refuted
  • deferred
  • corrected
date
datetime required

The datetime when the mitigation action was taken or committed to be taken.

author
json required

Individual or device responsible for the mitigation action.

Click to view child attributes
reference
string required

The reference string of the author in the format of "Practitioner/4d789a3d5e794c0eb159a126b48c8b9f".

type
string

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

Responses

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.

Query Parameters

_id
string

A Canvas-issued unique identifier for a specific DetectedIssue.

patient
string

The patient for the DetectedIssue record in the format Patient/a39cafb9d1b445be95a2e2548e12a787.

status
string

The status of the DetectedIssue.

Search Values Supported:
  • registered
  • preliminary
  • final
  • amended
  • corrected
  • cancelled
  • entered-in-error
identified
date

Filter by identifiedDateTime. See Date Filtering for more information.

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 DetectedIssue.

identifier
array[json]

External identifiers associated with this DetectedIssue.

Click to view child attributes
system
string

The namespace for the identifier value.

value
string

The unique value for the identifier within the specified system.

status
enum

The status of the DetectedIssue.

Value Options Supported:
  • registered
  • preliminary
  • final
  • amended
  • corrected
  • cancelled
  • entered-in-error
code
json

Identifies the general type of issue identified.

Click to view child attributes
coding
array[json]

Code defined by a terminology system.

Click to view child attributes
system
string

The system url of the coding.

Value Options Supported:
  • https://terminology.hl7.org/CodeSystem/v3-ActCode
code
string

The code that identifies the general type of issue identified.

Value Options Supported:
  • CODINGGAP
display
string

The display name of the coding.

text
string

Plain text representation of the coding.

severity
enum

Indicates the degree of importance associated with the identified issue based on the potential impact on the patient.

Value Options Supported:
  • high
  • moderate
  • low
patient
json

The patient for the DetectedIssue record.

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

identifiedDateTime
datetime

The datetime when the detected issue was identified.

author
json

Individual or device responsible for the issue being raised.

Click to view child attributes
reference
string

The reference string of the author in the format of "Practitioner/4d789a3d5e794c0eb159a126b48c8b9f".

type
string

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

evidence
array[json]

Supporting evidence or manifestations that provide the basis for identifying the detected issue.

Click to view child attributes
code
array[json]

A manifestation that led to the recording of this detected issue.

Click to view child attributes
coding
array[json]

Code defined by a terminology system.

Click to view child attributes
system
string

The system url of the coding.

Value Options Supported:
  • http://hl7.org/fhir/sid/icd-10-cm
code
string

The code of the Evidence.

display
string

The display name of the coding.

detail
string

A textual explanation of the detected issue.

reference
string

The literature, knowledge base, or similar reference that describes the propensity for the detected issue identified. This field requires a valid URL representing the reference.

mitigation
array[json]

Indicates an action that has been taken or is committed to reduce or eliminate the likelihood of the risk identified by the detected issue from manifesting.

Click to view child attributes
id
string

The Canvas identifier of the DetectedIssueMitigation.

action
json

The type of action that has been taken or is committed to reduce or eliminate the likelihood of the risk identified by the detected issue from manifesting.

Click to view child attributes
coding
array[json]

Code defined by a terminology system.

Click to view child attributes
system
string

The system url of the coding.

Value Options Supported:
  • https://schemas.canvasmedical.com/fhir/detectedissue-mitigation-action
code
enum

Describes the action that was taken or the observation that was made that reduces/eliminates the risk associated with the identified issue.

Value Options Supported:
  • valid
  • invalid
  • accepted
  • refuted
  • deferred
  • corrected
display
string

The display name of the coding

date
datetime

The datetime when the mitigation action was taken or committed to be taken.

author
json

Individual or device responsible for the mitigation action.

Click to view child attributes
reference
string

The reference string of the author in the format of "Practitioner/4d789a3d5e794c0eb159a126b48c8b9f".

type
string

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

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/DetectedIssue' \
         --header 'Authorization: Bearer <token>' \
         --header 'accept: application/json' \
         --header 'content-type: application/json' \
         --data '
      {
        "resourceType": "DetectedIssue",
        "identifier": [
            {
                "system": "http://external.identifier.system/url",
                "value": "080abebd"
            }
        ],
        "status": "preliminary",
        "code": {
            "coding": [
                {
                    "system": "https://terminology.hl7.org/CodeSystem/v3-ActCode",
                    "code": "CODINGGAP"
                }
            ]
        },
        "severity": "moderate",
        "patient": {
            "reference": "Patient/a39cafb9d1b445be95a2e2548e12a787",
            "type": "Patient"
        },
        "identifiedDateTime": "2024-08-10T14:23:08+00:00",
        "author": {
            "reference": "Practitioner/4d789a3d5e794c0eb159a126b48c8b9f",
            "type": "Practitioner"
        },
        "evidence": [
            {
                "code": [
                    {
                        "coding": [
                            {
                                "system": "http://hl7.org/fhir/sid/icd-10-cm",
                                "code": "I23.43",
                                "display": "Code text explanation"
                            }
                        ]
                    }
                ]
            }
        ],
        "detail": "Detail for detected issue",
        "reference": "https://example.com",
        "mitigation": [
            {
                "action": {
                    "coding": [
                        {
                            "system": "https://schemas.canvasmedical.com/fhir/detectedissue-mitigation-action",
                            "code": "valid"
                        }
                    ]
                },
                "date": "2024-08-09T14:23:08+00:00",
                "author": {
                    "reference": "Practitioner/4d789a3d5e794c0eb159a126b48c8b9f",
                    "type": "Practitioner"
                }
            }
        ]
    }'
    
  • import requests
    
    url = "https://fumage-example.canvasmedical.com/DetectedIssue"
    
    headers = {
        "accept": "application/json",
        "Authorization": "Bearer <token>",
        "content-type": "application/json",
    }
    
    payload = {
        "resourceType": "DetectedIssue",
        "identifier": [
            {
                "system": "http://external.identifier.system/url",
                "value": "080abebd"
            }
        ],
        "status": "preliminary",
        "code": {
            "coding": [
                {
                    "system": "https://terminology.hl7.org/CodeSystem/v3-ActCode",
                    "code": "CODINGGAP"
                }
            ]
        },
        "severity": "moderate",
        "patient": {
            "reference": "Patient/a39cafb9d1b445be95a2e2548e12a787",
            "type": "Patient"
        },
        "identifiedDateTime": "2024-08-10T14:23:08+00:00",
        "author": {
            "reference": "Practitioner/4d789a3d5e794c0eb159a126b48c8b9f",
            "type": "Practitioner"
        },
        "evidence": [
            {
                "code": [
                    {
                        "coding": [
                            {
                                "system": "http://hl7.org/fhir/sid/icd-10-cm",
                                "code": "I23.43",
                                "display": "Code text explanation"
                            }
                        ]
                    }
                ]
            }
        ],
        "detail": "Detail for detected issue",
        "reference": "https://example.com",
        "mitigation": [
            {
                "action": {
                    "coding": [
                        {
                            "system": "https://schemas.canvasmedical.com/fhir/detectedissue-mitigation-action",
                            "code": "valid"
                        }
                    ]
                },
                "date": "2024-08-09T14:23:08+00:00",
                "author": {
                    "reference": "Practitioner/4d789a3d5e794c0eb159a126b48c8b9f",
                    "type": "Practitioner"
                }
            }
        ]
    }
    
  • 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/DetectedIssue/<id>' \
         --header 'Authorization: Bearer <token>' \
         --header 'accept: application/json'
    
  • import requests
    
    url = "https://fumage-example.canvasmedical.com/DetectedIssue/<id>"
    
    headers = {
        "accept": "application/json",
        "Authorization": "Bearer <token>"
    }
    
    response = requests.get(url, headers=headers)
    
    print(response.text)
    
  • {
        "resourceType": "DetectedIssue",
        "id": "d9aefede-da05-4bef-bbf9-63bcf83c806a",
        "identifier": [
            {
                "system": "http://external.identifier.system/url",
                "value": "080abebd"
            }
        ],
        "status": "preliminary",
        "code": {
            "coding": [
                {
                    "system": "https://terminology.hl7.org/CodeSystem/v3-ActCode",
                    "code": "CODINGGAP",
                    "display": "Codinggap"
                }
            ],
            "text": "Codinggap"
        },
        "patient": {
            "reference": "Patient/a39cafb9d1b445be95a2e2548e12a787",
            "type": "Patient"
        },
        "identifiedDateTime": "2024-08-10T14:23:08+00:00",
        "author": {
            "reference": "Practitioner/4d789a3d5e794c0eb159a126b48c8b9f",
            "type": "Practitioner"
        },
        "evidence": [
            {
                "code": [
                    {
                        "coding": [
                            {
                                "system": "http://hl7.org/fhir/sid/icd-10-cm",
                                "code": "I23.43",
                                "display": "Code text explanation"
                            }
                        ]
                    }
                ]
            }
        ],
        "detail": "Detail for detected issue",
        "reference": "https://example.com",
        "mitigation": [
            {
                "id": "9a1cfc8c-4ee9-4eb7-9658-a5b0f9576698",
                "action": {
                    "coding": [
                        {
                            "system": "https://schemas.canvasmedical.com/fhir/detectedissue-mitigation-action",
                            "code": "valid"
                        }
                    ]
                },
                "date": "2024-08-09T14:23:08+00:00",
                "author": {
                    "reference": "Practitioner/4d789a3d5e794c0eb159a126b48c8b9f",
                    "type": "Practitioner"
                }
            }
        ]
    }
    
  • {
      "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 DetectedIssue resource 'd9aefede-da05-4bef-bbf9-63bcf83c806b'"
          }
        }
      ]
    }
    
  • curl --request POST \
         --url 'https://fumage-example.canvasmedical.com/DetectedIssue/d9aefede-da05-4bef-bbf9-63bcf83c806a' \
         --header 'Authorization: Bearer <token>' \
         --header 'accept: application/json' \
         --header 'content-type: application/json' \
         --data '
      {
        "resourceType": "DetectedIssue",
        "id": "d9aefede-da05-4bef-bbf9-63bcf83c806a",
        "identifier": [
            {
                "system": "http://external.identifier.system/url",
                "value": "080abebd"
            }
        ],
        "status": "preliminary",
        "code": {
            "coding": [
                {
                    "system": "https://terminology.hl7.org/CodeSystem/v3-ActCode",
                    "code": "CODINGGAP"
                }
            ]
        },
        "severity": "moderate",
        "patient": {
            "reference": "Patient/a39cafb9d1b445be95a2e2548e12a787",
            "type": "Patient"
        },
        "identifiedDateTime": "2024-08-10T14:23:08+00:00",
        "author": {
            "reference": "Practitioner/4d789a3d5e794c0eb159a126b48c8b9f",
            "type": "Practitioner"
        },
        "evidence": [
            {
                "code": [
                    {
                        "coding": [
                            {
                                "system": "http://hl7.org/fhir/sid/icd-10-cm",
                                "code": "I23.43",
                                "display": "Code text explanation"
                            }
                        ]
                    }
                ]
            }
        ],
        "detail": "Detail for detected issue",
        "reference": "https://example.com",
        "mitigation": [
            {
                "id": "9a1cfc8c-4ee9-4eb7-9658-a5b0f9576698",
                "action": {
                    "coding": [
                        {
                            "system": "https://schemas.canvasmedical.com/fhir/detectedissue-mitigation-action",
                            "code": "valid"
                        }
                    ]
                },
                "date": "2024-08-09T14:23:08+00:00",
                "author": {
                    "reference": "Practitioner/4d789a3d5e794c0eb159a126b48c8b9f",
                    "type": "Practitioner"
                }
            }
        ]
    }'
    
  • import requests
    
    url = "https://fumage-example.canvasmedical.com/DetectedIssue/d9aefede-da05-4bef-bbf9-63bcf83c806a"
    
    headers = {
        "accept": "application/json",
        "Authorization": "Bearer <token>",
        "content-type": "application/json",
    }
    
    payload = {
        "resourceType": "DetectedIssue",
        "id": "d9aefede-da05-4bef-bbf9-63bcf83c806a",
        "identifier": [
            {
                "system": "http://external.identifier.system/url",
                "value": "080abebd"
            }
        ],
        "status": "preliminary",
        "code": {
            "coding": [
                {
                    "system": "https://terminology.hl7.org/CodeSystem/v3-ActCode",
                    "code": "CODINGGAP"
                }
            ]
        },
        "severity": "moderate",
        "patient": {
            "reference": "Patient/a39cafb9d1b445be95a2e2548e12a787",
            "type": "Patient"
        },
        "identifiedDateTime": "2024-08-10T14:23:08+00:00",
        "author": {
            "reference": "Practitioner/4d789a3d5e794c0eb159a126b48c8b9f",
            "type": "Practitioner"
        },
        "evidence": [
            {
                "code": [
                    {
                        "coding": [
                            {
                                "system": "http://hl7.org/fhir/sid/icd-10-cm",
                                "code": "I23.43",
                                "display": "Code text explanation"
                            }
                        ]
                    }
                ]
            }
        ],
        "detail": "Detail for detected issue",
        "reference": "https://example.com",
        "mitigation": [
            {
                "id": "9a1cfc8c-4ee9-4eb7-9658-a5b0f9576698",
                "action": {
                    "coding": [
                        {
                            "system": "https://schemas.canvasmedical.com/fhir/detectedissue-mitigation-action",
                            "code": "valid"
                        }
                    ]
                },
                "date": "2024-08-09T14:23:08+00:00",
                "author": {
                    "reference": "Practitioner/4d789a3d5e794c0eb159a126b48c8b9f",
                    "type": "Practitioner"
                }
            }
        ]
    }
    
  • 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/DetectedIssue?patient=Patient/a39cafb9d1b445be95a2e2548e12a787' \
         --header 'Authorization: Bearer <token>' \
         --header 'accept: application/json'
    
  • import requests
    
    url = "https://fumage-example.canvasmedical.com/DetectedIssue?patient=Patient/a39cafb9d1b445be95a2e2548e12a787"
    
    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": "/DetectedIssue?patient=Patient%2Fa39cafb9d1b445be95a2e2548e12a787&_count=10&_offset=0"
          },
          {
            "relation": "first",
            "url": "/DetectedIssue?patient=Patient%2Fa39cafb9d1b445be95a2e2548e12a787&_count=10&_offset=0"
          },
          {
            "relation": "last",
            "url": "/DetectedIssue?patient=Patient%2Fa39cafb9d1b445be95a2e2548e12a787&_count=10&_offset=0"
          }
        ],
        "entry": [
            {
                "resource": {
                    "resourceType": "DetectedIssue",
                    "id": "d9aefede-da05-4bef-bbf9-63bcf83c806a",
                    "identifier": [
                        {
                            "system": "http://external.identifier.system/url",
                            "value": "080abebd"
                        }
                    ],
                    "status": "preliminary",
                    "code": {
                        "coding": [
                            {
                                "system": "https://terminology.hl7.org/CodeSystem/v3-ActCode",
                                "code": "CODINGGAP",
                                "display": "Codinggap"
                            }
                        ],
                        "text": "Codinggap"
                    },
                    "patient": {
                        "reference": "Patient/a39cafb9d1b445be95a2e2548e12a787",
                        "type": "Patient"
                    },
                    "identifiedDateTime": "2024-08-10T14:23:08+00:00",
                    "author": {
                        "reference": "Practitioner/4d789a3d5e794c0eb159a126b48c8b9f",
                        "type": "Practitioner"
                    },
                    "evidence": [
                        {
                            "code": [
                                {
                                    "coding": [
                                        {
                                            "system": "http://hl7.org/fhir/sid/icd-10-cm",
                                            "code": "I23.43",
                                            "display": "Code text explanation"
                                        }
                                    ]
                                }
                            ]
                        }
                    ],
                    "detail": "Detail for detected issue",
                    "reference": "https://example.com",
                    "mitigation": [
                        {
                            "id": "9a1cfc8c-4ee9-4eb7-9658-a5b0f9576698",
                            "action": {
                                "coding": [
                                    {
                                        "system": "https://schemas.canvasmedical.com/fhir/detectedissue-mitigation-action",
                                        "code": "valid"
                                    }
                                ]
                            },
                            "date": "2024-08-09T14:23:08+00:00",
                            "author": {
                                "reference": "Practitioner/4d789a3d5e794c0eb159a126b48c8b9f",
                                "type": "Practitioner"
                            }
                        }
                    ]
                }
            }
        ]
    }