...
Code Block | ||
---|---|---|
| ||
window.dispatchEvent(
new CustomEvent('openTimingPicker', {
detail: {
timingPickerData: {
callerId: 'timingField',
timing: timingObject,
includeAsExtra: true,
},
},
})
); |
Input data:
Code Block |
---|
interface TimingPickerData {
callerId: string;
timing: Timing;
includeAsExtra: boolean;
} |
Explanation:
callerId: an unique id that will be returned with the output result. CallerId makes it possible for the caller to distingues which form field the pickers was opened as the same picker can be used multiple times
timing: fhir timing object.
includeAsExtra: a boolean value determining whether the activity (or group of activities) should be offered to the patient as additional activities that can be done at the patients own will
Output data:
Code Block |
---|
interface TimingPickerData {
callerId: string;
timing: Timing;
includeAsExtra: boolean;
} |
Explanation:
callerId: an unique id that will be returned with the output result. CallerId makes it possible for the caller to distingues which form field the pickers was opened as the same picker can be used multiple times
timing: fhir timing object
includeAsExtra: a boolean value determining whether the activity (or group of activities) should be offered to the patient as additional activities that can be done at the patients own will
Reference range picker
The reference range picker can be used to setup thresholds for measurement. To open the reference range picker, sent a custom event with name “openReferenceRangePicker”.
...