...
The organization picker can be used to select organizations from STS-ORG or SOR.
The organization picker also handles user-favourite organizations, which are stored in a Key-Value Store. That makes them available to users, even when using other devices or browsers than usual.
To open the organization picker, sent a custom event with name “openOrganizationPicker”.
...
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 as additional activities that can be performed outside the specified timing
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 as additional activities that can be performed outside the specified timing
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”.
...