Logo GenPRES

Types Module

Holds the types the client and the server exchange: patient data, orders, order contexts, order plans, formulary and parenteralia pages, sessions and signing.

Types and nested modules

Type/Module Description

PatientData (Module)

Holds the types for the age, the adult mark and the gestational age of a patient.

Access

AdultMark

Age

AgeWeeksDays

Component

ComponentPredilution

The predilution a product was made with: a product volume diluted with a volume of a diluent.

ComponentProduct

A product a component can be made of, with the strength of each substance.

ComponentProperty

A value of a component of the orderable the user can pick.

ComponentReconstitution

The reconstitution a product was made with: the solvent and its volumes.

ComponentSelection

The components a prescriber selected.

DataNotice

The current patient data, sent before a challenge when it differs from the data the Session opened with. None when the EHR cannot be read; the data is then not verified. The user goes on by sending the token back with the next request.

Dose

DoseType

Possible Dose Types.

DrugInteraction

EGFRBandOption

An eGFR band the user picks from, with the text the user reads.

EnrolmentPending

What the client receives when its launch waits on a PIN: the name to greet, and a hint of the mail address the confirmation code went to, so a bystander cannot read the address.

Filter

Formulary

Gender

GestationalAge

Height

The estimated heights and the measured height of a patient, in cm.

IntakeTotal

A total as a text block with the total and its norm, the state of the total against the norm, and where the norm comes from. The kind of the block is the severity of the total: Warning when the state is below, above or outside the norm.

Intervention

Item

ItemProperty

A value of an item of a component the user can pick.

Launch

Opaque launch token, sealed by the MainEHR LaunchScript; the client never reads it.

LaunchOutcome

LaunchRefusal

Why a launch opened no Session. The case tells the client what to offer next.

Level

LogFileInfo

NormSource

Where the norm of a total comes from.

NutritionCategory

OpenedToken

Names the order plan version the Session opened with. Sent with every computing request and checked at every signature. It will also travel inside the signed request of launch step 7, not built yet.

Order

OrderCategory

What kind of order a context holds: a medication, or a nutrition order of a category. It is stored with the context, so a signed plan read back knows the kind of each order without guessing from the generic: KCl, NaCl and glucose are both nutrition and medication generics.

OrderContext

OrderContextRefusal

Why an order context could not be evaluated. The cases match the Refusal type of GenORDER.

OrderContextResponse

The answer to an order context command: the evaluated context, or the context as sent with the refusal. Failures go through the error channel.

OrderPlan

The order plan of a patient: every medication and nutrition order. The plan is what the prescriber signs.

OrderPlanHead

Identifies a signed version of an order plan: the id, the number No that orders the versions in the record of the patient, who signed it and when. No orders the versions because a clock cannot tell which of two signatures came first.

OrderScenario

OrderVariable

Orderable

OrderableProperty

A value of an order's orderable the user can pick.

Parenteralia

PatientContext

The patient of a Session: the id, the identity when the EHR gives one, and the patient data read from the EHR at the launch or else from the last signed version. The data is None when neither has any; the user then enters it.

PatientData (Type)

The patient data the client sends. The data can be incomplete; the server checks it before the rules use it.

PatientDataOptions

The values the user picks the patient data from.

PatientIdentity

The full name and the birth date of the patient of a Session, the birth date as three integers. Shown in full, because the user works at the EHR that launched the Session.

PinRefusal

Why a supplied PIN opened no Session. WrongCode allows another try and gives the tries left; PinFormat does not count as a try. CodeVoid, AttemptExpired and WrongActivePatient end the launch, which has to start over. After WrongActivePatient the PIN is set, but the patient of the launch is no longer the active patient.

ProductStrength

The strength of one substance of a product.

PublicKey

Public JWK (JSON text) of the browser key pair made at the launch.

RecordNotice

What a reply says about the Session beside its result. NewerVersion: a version newer than the one the OpenedToken of the request names exists, with whose and when; it blocks nothing. Ended: the server ended this Session, told at the next request. Defined here because the session port returns it.

RenalFunction

Schedule

ScheduleProperty

A value of an order's schedule the user can pick.

SeedSource

Where the choices of a filter come from when they are set from outside its own fields.

SessionEnding

Why a Session ended other than by the user closing it. The server tells it once, at the next request. The absolute lifetime is not built yet.

SessionOpened

What the client receives when a Session opens. There is no SessionId: the id is in the cookie, a bearer credential that scripts cannot read. Head is the signed version the Session opened with: its orders start the plan, and a Submission is refused when a newer version exists. Head is None when the record has no signed version.

SignedOrderPlan

A signed version of an order plan as stored in the record: the head, the patient, the version it was signed over in Base (None for the first), the order contexts at the signature, the patient data the user saw, and in Verified whether that data was read from the EHR at the challenge.

SigningRefusal

Why a signature did not proceed, at the challenge request or at the Submission. PinWrong and Locked let the user enter the PIN again, PinLimit ends the Session, and every other case ends the signing. Changed patient data is not a refusal but a DataNotice. The PIN cases come with the Submission.

SigningResponse

The answer to a signing command. Defined here, not in the api, because the session port returns it.

Submission

The signature: the plan as shown, the OpenedToken the Session holds, the challenge, the PIN, and an idempotency key from the client so the commit takes effect once. Never logged.

TextBlock

TextItem

TotalNorm

The norm of a total per kg per time, in the unit of the total: the norm of the Totals sheet, or the norm the prescriber set for the patient.

TotalState

The state of a total against the norm of its Totals row.

Totals

The intake totals, each with its text and its state; None for a total that is not calculated.

UserContext

UserRole

ValueUnit

Variable

Weight

The estimated weights and the measured weight of a patient, in gram.

cm

day

gram

kg

m

month

week

year

Type something to start searching.