GET API/V1/Orders/Drafts

Request Information

URI Parameters

NameDescriptionTypeAdditional information
mrNumber

string

None.

accountNumber

string

None.

Body Parameters

None.

Response Information

Resource Description

Collection of iMDsoft.API.Metavision.Data.Orders.ExternalOrder
NameDescriptionTypeAdditional information
IsHomeMedication

Indicates whether the patient was taking this medication before admission.

boolean

None.

OrderingStyle

Represents the ordering style in the MetaVision order.

iMDsoft.API.Metavision.Data.Orders.OrderingStyleEnum

None.

IsUnplanned

Only used during GET. Indicates whether the order represents a planned order or an unplanned (orphan) dose.

boolean

None.

PatternItems

The number of pattern items (combined with the frequency information provided in the pattern item's timing) can determine whether the order is treated as a pattern order, or whether it is with pattern mode off.

Collection of iMDsoft.API.Metavision.Data.Orders.PatternItem

None.

FutureActions

Order future actions

Collection of iMDsoft.API.Metavision.Data.Orders.FutureAction

None.

DetectedIssues

Detected issues - currently used for patient order allergy conflicts

Collection of iMDsoft.API.Metavision.Data.Orders.DetectedIssue

None.

LogEntries

Only used for Get Orders, toggled via URI parameter "includeOrderLog". If enabled, returns the order and all actions performed on it row by row along with the ordering and issuing users, time, old value, and new value. Not used for drafts or posting orders.

Collection of iMDsoft.API.Metavision.Data.Orders.LogEntry

None.

LastAdministered

Last Administered

date

None.

EncounterInfo

Patient identifier

iMDsoft.API.Metavision.Data.Orders.EncounterInfo

None.

OrderId

MetaVision order ID.

string

None.

OrderGUID

If orderID is GUID, will be used as the order GUID when posting to the Shopping Cart.

string

None.

Route

Route, e.g. "IV" or "Per Os".

iMDsoft.API.Metavision.Data.Data.CodedElement

None.

Location

Location e.g. "left arm".

iMDsoft.API.Metavision.Data.Data.CodedElement

None.

PRN

PRN details.

iMDsoft.API.Metavision.Data.Orders.PRNElements

None.

OrderedBy

When getting orders, the user on whose behalf the order was created. Not used for drafts or posting orders.

string

None.

IssuedBy

When getting orders, the user who entered the order. Not used for drafts or posting orders.

string

None.

Comment

Additional instructions/comments for the order

string

None.

OrderSummary

Human readable fallback data with all the information needed to create an order in case any details were not successfully translated.

string

None.

Caption

A caption is an alias name for the order. For example, “TPN” may describe an order that contains multiple medications combined as a single order.

string

None.

Status

When getting orders, specifies the current state of the order. Can be one of the following: in-progress | on-hold | completed | entered-in-error | stopped. In-progress status is returned for both "pending" and "active" orders. Not used for drafts or posting orders. When posting orders, on-hold orders will be entered as held into the shopping cart.

string

None.

StatusReason

When getting orders, reason for the current status. Can be blank. For example, "Pending re-evaluation". Always blank in MetaVision version 6.11. Completed orders and unplanned orders do not support having a reason. Not used for drafts or posting orders.

string

None.

StatusComment

When getting orders, additional comments accompanying the status reason. For example, "Awaiting lab results before deciding whether to resume or stop the order." Always blank in MetaVision version 6.11. Completed orders and unplanned orders do not support having a reason. Not used for drafts or posting orders.

string

None.

IsSelfAdministered

Indicates whether the order is self administered.

boolean

None.

DbTimeStamp

SQL time stamp

Collection of byte

None.

Effective

Represents the planned start date & time and end method of an order

iMDsoft.API.Metavision.Data.Orders.Effective

None.

Eligibility

iMDsoft.API.Metavision.Data.Orders.Eligibility

None.

LastUpdated

The last update time of the order

date

None.

OriginalOrderData

The original order data

string

None.

ConditionalDetails

Conditional order details.

iMDsoft.API.Metavision.Data.Orders.ConditionalDetails

None.

HasWarning

Order's warning flag value

boolean

None.

TemplateId

Template Id

integer

None.

AttachedForms

Collection of iMDsoft.API.Metavision.Data.Orders.AttachedForm

None.

Response Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected for property 'childLogEntry' with type 'iMDsoft.API.Metavision.Data.Orders.LogEntry'. Path '[0].logEntries[0]'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected for property 'childLogEntry' with type 'iMDsoft.API.Metavision.Data.Orders.LogEntry'. Path '[0].logEntries[0]'.