This project takes react-jsonschema-form-extras and adds additional fields, specific to RxNT.
Catalogue
- IMO field - field that allows to make request to IMO API, through RxNT network
- Async typeahead - extension of general typeahead, that uses standard RxNT signature and request formats
IMO field
Purpose
IMO field allows to query problems in separate window.
Use
The easiest way to configure imo
field is
{
"ui:field": "imo",
"imo": {
"freeText": true
}
}
Properties
The only property IMO accepts is
freeText
boolean which enables freeText button on IMO field
Async typeahead
This component is minimalistic modification of react-jsonschema-form-extras component,
which specifies predefined search
string, that allows to query RxNT autocomplete data.
!!! WARNING
IMO and AsyncTypeahead rely on window variables for Authentication, provided by the caller
- `encounterTemplateV2User` user data
- `encounterTemplateV2EncounterInfo` encounter data
You need to have them in the scope in order for IMO to work properly