Merge branch 'main' of https://git.shiblysolution.id/SAUDE-TL/entity
This commit is contained in:
@ -70,7 +70,7 @@ export class EmrPharmacyOrder {
|
||||
activities: EmrPharmacyOrderActivity[];
|
||||
|
||||
@Column({ nullable: true })
|
||||
queued_at?: Date | null;
|
||||
queued_at?: Date;
|
||||
|
||||
@Column()
|
||||
@CreateDateColumn()
|
||||
|
||||
@ -7,7 +7,7 @@ export class EmrPharmacyOrderActivity {
|
||||
@PrimaryGeneratedColumn("uuid")
|
||||
id: string;
|
||||
|
||||
@ManyToOne(() => EmrPharmacyOrder, order => order.activities, { onDelete: 'NO ACTION' })
|
||||
@ManyToOne(() => EmrPharmacyOrder, order => order.activities, { onDelete: "CASCADE" })
|
||||
@JoinColumn({ name: "pharmacy_order_id" })
|
||||
pharmacy_order: EmrPharmacyOrder;
|
||||
|
||||
|
||||
@ -67,9 +67,6 @@ export class EmrRegistrationEmergency {
|
||||
@Column({ nullable: true, type: "text" })
|
||||
howtocome: string;
|
||||
|
||||
@Column({ nullable: true, type: "text" })
|
||||
casedefinition: string;
|
||||
|
||||
@Column({
|
||||
type: 'text',
|
||||
nullable: true,
|
||||
|
||||
@ -34,7 +34,7 @@ export class EmrRegistrationOutpatient {
|
||||
@JoinColumn()
|
||||
registration: EmrRegistration;
|
||||
|
||||
@ManyToOne(() => PatientGuarantor, { onDelete: "NO ACTION" })
|
||||
@ManyToOne(() => PatientGuarantor, { onDelete: "NO ACTION" })
|
||||
@JoinColumn()
|
||||
guarantor: PatientGuarantor;
|
||||
|
||||
@ -76,6 +76,9 @@ export class EmrRegistrationOutpatient {
|
||||
@JoinColumn()
|
||||
ref_consultation: EmrInternalConsultation | null;
|
||||
|
||||
@Column({ nullable: true })
|
||||
queued_at?: Date;
|
||||
|
||||
@Column()
|
||||
@CreateDateColumn()
|
||||
created_at: Date;
|
||||
|
||||
Reference in New Issue
Block a user