Logo GenPRES

OrderPlan Module

Creates an order plan and returns the orders of an order plan and the order contexts counted in the totals of an order plan.

Functions and values

Function or value Description

create pat contexts

Full Usage: create pat contexts

Parameters:
Returns: OrderPlan
pat : PatientData
contexts : OrderContext[]
Returns: OrderPlan

empty

Full Usage: empty

Returns: OrderPlan
Returns: OrderPlan

filtered plan

Full Usage: filtered plan

Parameters:
Returns: OrderContext[]

Returns the contexts whose id is in the plan filter, or all contexts when the filter is empty. It copies OrderPlan.filtered in GenORDER; an agreement test in the server tests keeps both equal.

plan : OrderPlan
Returns: OrderContext[]

orders plan

Full Usage: orders plan

Parameters:
Returns: OrderScenario array

Returns the scenario of every context with exactly one scenario, in context order. It copies OrderPlan.orders in GenORDER; an agreement test in the server tests keeps both equal.

plan : OrderPlan
Returns: OrderScenario array

Type something to start searching.