Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To open the valueSet picker, sent a custom event with name “openValueSetPicker”.

Example:

Code Block
languagetypescript
window.dispatchEvent(
    new CustomEvent('openValueSetPicker', {
        detail: {
            callerId: 'useContextCondition',
            readonlyMode: false,
            multiSelect: true,
            language: 'da',
            designationUseCode: 'consumer',
            valueSetType: 'Conditions',
            codeableConcepts: this.form.value.useContext,
        },
    })
);

Input data:

Code Block
languagetypescript
interface ValueSetPickerData {
  callerId: string;
  readonlyMode: boolean;
  multiSelect: boolean;
  language: string;
  designationUseCode: string;
  valueSetType: ValueSetType;
  selectedValues: CodeableConcept[];
}
 
enum ValueSetType {
  ObservationCodes = 'ObservationCodes',
  Conditions = 'Conditions',
}

...

  • 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

  • readonlyMode: true for readonly mode

  • multiSelect: true if it should be possible to select more than one

  • language: language code. eg. "da" for danish

  • designationUseCode: display text targeting specific audience

    • values:

      • "consumer"

        • description: Designation for use in display to non-clinicians and those not in healthcare professions as a more friendly term for coommunication.

  • valueSetType:

    • values:

      • "ObservationCodes"

      • "Conditions"

  • selectedValues: Which CodeSystem should be preselected when the valueSet picker is opened.

    • Supported CodeableConcept:

      • Only one coding per CodeableConcept

Output data:

Code Block
languagetypescript
interface ValueSetPickerDialogResult {
  callerId: string;
  codeableConcepts: CodeableConcept[];
}

Explanation:

  • callerId: An unique id that will be returned back with the output result. CallerId makes it possible for the caller to distingues which form field the pickers was opened from as the same picker can be used multiple times

  • codeableConcepts: List of all the selected codes.

    • Always only one code per CodeableConcept

...

To open the organization picker, sent a custom event with name “openOrganizationPicker”.

Example:

Code Block
languagetypescript
window.dispatchEvent(
      new CustomEvent('openOrganizationPicker', {
        detail: {
          callerId: 'ownerField',
          onlyAllowRootSelection: false,
          selectedIds: ['139636'],
        },
      })
    );

Input data:

Code Block
interface OrganizationPickerData {
  callerId: string;
  onlyAllowRootSelection: boolean;
  selectedIds: string[];
}

...

The questionnaire picker can be used to select questionnaire. To open the questionnaire picker, sent a custom event with name “openQuestionnairePicker”.

Example:

Code Block
languagetypescript
window.dispatchEvent(
      new CustomEvent('openQuestionnairePicker', {
        detail: {
          callerId: 'questionnaireField',
          selectedIds: ['23'],
          multiSelect: true,
        },
      })
    );

Input data: 

Code Block
languagetypescript
interface QuestionnairePickerData {
    callerId: string;  
    selectedIds: string[];
    multiSelect: boolean;
}

...

Code Block
interface QuestionnairePickerDialogResult {
  callerId: string;
  selected: Questionnaire[];
 
}

Explanation:

  • callerId: an unique id that will be returned back with the output result. CallerId makes it possible for the caller to distingues which form field the pickers was opened from as the same picker can be used multiple times

  • selected: List of all the selected questionnaire

Timing picker

The timing picker can be used to setup timing expressions. To open the timing picker, sent a custom event with name “openTimingPicker”.

Example:

Code Block
languagetypescript
window.dispatchEvent(
      new CustomEvent('openTimingPicker', {
        detail: {
          timingPickerData: {
            callerId: 'timingField',
            timing: timingObject,
          },
        },
      })
    );

Input data: 

Code Block
interface TimingPickerData {
  callerId: string;
  timing: Timing;
}

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.

Output data:

Code Block
interface TimingPickerData {
  callerId: string;
  timing: Timing;
}

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 updated/created in the timing picker