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 |
|
Holds the types for the age, the adult mark and the gestational age of a patient. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The predilution a product was made with: a product volume diluted with a volume of a diluent. |
|
|
A product a component can be made of, with the strength of each substance. |
|
|
A value of a component of the orderable the user can pick. |
|
|
The reconstitution a product was made with: the solvent and its volumes. |
|
|
The components a prescriber selected. |
|
|
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. |
|
|
|
|
|
Possible Dose Types. |
|
|
|
|
|
An eGFR band the user picks from, with the text the user reads. |
|
|
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. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The estimated heights and the measured height of a patient, in cm. |
|
|
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. |
|
|
|
|
|
|
|
|
A value of an item of a component the user can pick. |
|
|
Opaque launch token, sealed by the MainEHR LaunchScript; the client never reads it. |
|
|
|
|
|
Why a launch opened no Session. The case tells the client what to offer next. |
|
|
|
|
|
|
|
|
Where the norm of a total comes from. |
|
|
|
|
|
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. |
|
|
|
|
|
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. |
|
|
|
|
|
Why an order context could not be evaluated. The cases match the Refusal type of GenORDER. |
|
|
The answer to an order context command: the evaluated context, or the context as sent with the refusal. Failures go through the error channel. |
|
|
The order plan of a patient: every medication and nutrition order. The plan is what the prescriber signs. |
|
|
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. |
|
|
|
|
|
|
|
|
|
|
|
A value of an order's orderable the user can pick. |
|
|
|
|
|
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. |
|
|
The patient data the client sends. The data can be incomplete; the server checks it before the rules use it. |
|
|
The values the user picks the patient data from. |
|
|
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. |
|
|
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. |
|
|
The strength of one substance of a product. |
|
|
Public JWK (JSON text) of the browser key pair made at the launch. |
|
|
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. |
|
|
|
|
|
|
|
|
A value of an order's schedule the user can pick. |
|
|
Where the choices of a filter come from when they are set from outside its own fields. |
|
|
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. |
|
|
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. |
|
|
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. |
|
|
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. |
|
|
The answer to a signing command. Defined here, not in the api, because the session port returns it. |
|
|
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. |
|
|
|
|
|
|
|
|
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. |
|
|
The state of a total against the norm of its Totals row. |
|
|
The intake totals, each with its text and its state; None for a total that is not calculated. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The estimated weights and the measured weight of a patient, in gram. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GenPRES