Summary Table
Categories |
Total Count |
PII |
0 |
URL |
0 |
DNS |
0 |
EKL |
0 |
IP |
0 |
PORT |
0 |
VsID |
0 |
CF |
0 |
AI |
0 |
VPD |
0 |
PL |
0 |
Other |
0 |
File Content
import { Component, EventEmitter, OnInit, Input, Output } from '@angular/core';
import { Store } from '@ngrx/store';
import { PatientIdentity } from '../../models/patientModels';
import { ModalData } from '../../models/uiModels';
import { AppState } from '../../models/state';
import * as patientActions from '../../actions/patient.action';
import * as sessionActions from '../../actions/session.action';
import { OrdersService } from '../../services/orders.service';
@Component({
selector: 'app-orders',
templateUrl: './orders.component.html',
styleUrls: ['./orders.component.css']
})
export class OrdersComponent implements OnInit {
// For testing.
patientList: PatientIdentity[] = [];
constructor(private _store: Store<AppState>) {}
ngOnInit(): void {
// TODO: REMOVE ME
const p: PatientIdentity = {
patientId: '100000144',
dfn: '144',
fullName: 'ONE_FOUR_FOUR, PATIENT',
dob: new Date('08-31-1977'),
age: '41',
gender: 'Male',
ssn: '123-45-6789'
};
const p2: PatientIdentity = {
patientId: '100000004',
dfn: '4',
fullName: 'FOUR, PATIENT',
dob: new Date('04-04-1974'),
dateOfDeath: new Date('02-01-1995 10:30 PM'),
age: '44',
gender: 'Male',
ssn: '123-45-4444'
};
const p3: PatientIdentity = {
patientId: '100000006',
dfn: '6',
fullName: 'SIX, PATIENT',
dob : new Date('06-06-1966'),
dateOfDeath: new Date('06-06-2016 10:30 PM'),
age: '50',
gender : 'Female',
ssn : '123-45-6666'
};
const p1: PatientIdentity = {
patientId: '100000007',
dfn: '5',
fullName: 'SEVEN, PATIENT',
dob : new Date('06-06-1958'),
age: '60',
gender : 'Male',
ssn : '123-45-7777'
};
this.patientList.push(p);
this.patientList.push(p2);
this.patientList.push(p3);
this.patientList.push(p1);
}
testPatientSelection() {
this._store.dispatch(new patientActions.AddToPatientQueue(this.patientList));
this._store.dispatch(new sessionActions.SetView('Patients'));
}
}