1.51.0 • Published 9 months ago

csi-morgue v1.51.0

Weekly downloads
-
License
-
Repository
-
Last release
9 months ago

CsiMorgue

This Library contains deceased patient details form aka death notification form.

Dependencies

Depends on @csi/csi-services-gateway for all services.

Usage

Imports

import {CsiMorgueModule} from "@csi/csi-morgue" to NgModule imports

Death notification/ Deceased details form

Selector csi-death-notification

this.bsModalService.show(DeathNotificationComponent, {
        class: 'modal-lg',
        backdrop: true,
        ignoreBackdropClick: true,
        initialState: {pomr: pomr}
      });

For ER pass an additional input parameter isFromER

this.bsModalService.show(DeathNotificationComponent, {
        class: 'modal-lg',
        backdrop: true,
        ignoreBackdropClick: true,
        initialState: {pomr: pomr, isFromER: true}
      });

Other inputs for morgue UI

@Input('patientId') set setPatientId(patientId: any)
@Input('isMorgueUi') isMorgueUi: boolean = false;

Output emitters

@Output('modalConfirm') modalConfirm

The output emits the status of the current Death Notification form with the form object.

Output object

{
      status: status,
      resultData: resultData
 }

Statuses

export enum STATUS_OUTPUT {
  SAVE = 'SAVED',
  UPDATE = 'UPDATED',
  VERIFY = 'VERFIED',
  CLOSE = 'CLOSED'
}

Result data also contains an attribute named isVerified which has true if
the death notification is verified. 

or

(this.bsModalRef.content as DeathNotificationComponent).modalConfirm.subscribe(() => {
        this.bsModalRef.hide();
      });
1.51.0

9 months ago