Reason For Visit

Introduction #

The ReasonForVisitSettingCoding model represents the coding information used to populate the coding field within a Reason For Visit in Canvas.

Basic Usage #

To retrieve a specific coding record by its identifier, use the model manager’s get method:

from canvas_sdk.v1.data import ReasonForVisitSettingCoding

rfv_coding = ReasonForVisitSettingCoding.objects.get(id="e2b1e1e3-3f52-4a0a-bb3a-123456789abc")

You can also filter records by attributes. For example, to get all codings from a specific coding system:

codings = ReasonForVisitSettingCoding.objects.filter(system="http://snomed.info/sct")

Attributes #

ReasonForVisitSettingCoding #

Field NameTypeDescription
idUUIDThe universally unique identifier for this coding record.
dbidIntegerThe database identifier for this coding record.
codeStringThe code representing the concept.
displayStringThe human-readable display name for the concept.
systemStringThe coding system (e.g., http://snomed.info/sct).
versionStringThe version of the coding system.
durationArray of DurationAn array of durations (as Python timedelta objects) associated with the coding.