This Library contains deceased patient details form aka death notification form.
Depends on @csi/csi-services-gateway for all services.
import {CsiMorgueModule} from "@csi/csi-morgue" to NgModule imports
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();
});