emr-types
Version:
Comprehensive TypeScript Types Library for Electronic Medical Record (EMR) Applications - Domain-Driven Design with Zod Validation
1,427 lines • 108 kB
TypeScript
import { z } from 'zod';
import { MedicalRecordStatus } from '../domains/medical-record';
export declare const MedicalRecordIdSchema: z.ZodBranded<z.ZodString, "MedicalRecordId">;
export declare const MedicalRecordStatusSchema: z.ZodNativeEnum<typeof MedicalRecordStatus>;
export declare const MedicalRecordIdValueObjectSchema: z.ZodObject<{
value: z.ZodBranded<z.ZodString, "MedicalRecordId">;
format: z.ZodEnum<["uuid", "auto-increment", "custom"]>;
createdAt: z.ZodDate;
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
}, "strip", z.ZodTypeAny, {
value: string & z.BRAND<"MedicalRecordId">;
createdAt: Date;
format: "uuid" | "custom" | "auto-increment";
metadata?: Record<string, unknown> | undefined;
}, {
value: string;
createdAt: Date;
format: "uuid" | "custom" | "auto-increment";
metadata?: Record<string, unknown> | undefined;
}>;
export declare const DiagnosisSchema: z.ZodObject<{
id: z.ZodString;
condition: z.ZodString;
icd10Code: z.ZodOptional<z.ZodString>;
icd11Code: z.ZodOptional<z.ZodString>;
severity: z.ZodEnum<["mild", "moderate", "severe"]>;
diagnosisDate: z.ZodDate;
isPrimary: z.ZodBoolean;
isActive: z.ZodBoolean;
notes: z.ZodOptional<z.ZodString>;
diagnosedBy: z.ZodOptional<z.ZodString>;
createdAt: z.ZodDate;
updatedAt: z.ZodDate;
}, "strip", z.ZodTypeAny, {
id: string;
createdAt: Date;
updatedAt: Date;
severity: "moderate" | "mild" | "severe";
isActive: boolean;
isPrimary: boolean;
diagnosisDate: Date;
condition: string;
notes?: string | undefined;
icd10Code?: string | undefined;
diagnosedBy?: string | undefined;
icd11Code?: string | undefined;
}, {
id: string;
createdAt: Date;
updatedAt: Date;
severity: "moderate" | "mild" | "severe";
isActive: boolean;
isPrimary: boolean;
diagnosisDate: Date;
condition: string;
notes?: string | undefined;
icd10Code?: string | undefined;
diagnosedBy?: string | undefined;
icd11Code?: string | undefined;
}>;
export declare const PrescriptionSchema: z.ZodObject<{
id: z.ZodString;
medication: z.ZodString;
ndcCode: z.ZodOptional<z.ZodString>;
rxNormCode: z.ZodOptional<z.ZodString>;
dosage: z.ZodString;
frequency: z.ZodString;
route: z.ZodEnum<["oral", "intravenous", "intramuscular", "subcutaneous", "topical", "inhalation"]>;
quantity: z.ZodNumber;
refills: z.ZodNumber;
startDate: z.ZodDate;
endDate: z.ZodOptional<z.ZodDate>;
isActive: z.ZodBoolean;
instructions: z.ZodOptional<z.ZodString>;
prescribedBy: z.ZodString;
prescribedAt: z.ZodDate;
createdAt: z.ZodDate;
updatedAt: z.ZodDate;
}, "strip", z.ZodTypeAny, {
id: string;
createdAt: Date;
updatedAt: Date;
medication: string;
dosage: string;
frequency: string;
route: "oral" | "intravenous" | "intramuscular" | "subcutaneous" | "topical" | "inhalation";
quantity: number;
refills: number;
startDate: Date;
isActive: boolean;
prescribedBy: string;
prescribedAt: Date;
endDate?: Date | undefined;
instructions?: string | undefined;
ndcCode?: string | undefined;
rxNormCode?: string | undefined;
}, {
id: string;
createdAt: Date;
updatedAt: Date;
medication: string;
dosage: string;
frequency: string;
route: "oral" | "intravenous" | "intramuscular" | "subcutaneous" | "topical" | "inhalation";
quantity: number;
refills: number;
startDate: Date;
isActive: boolean;
prescribedBy: string;
prescribedAt: Date;
endDate?: Date | undefined;
instructions?: string | undefined;
ndcCode?: string | undefined;
rxNormCode?: string | undefined;
}>;
export declare const ProcedureSchema: z.ZodObject<{
id: z.ZodString;
name: z.ZodString;
cptCode: z.ZodOptional<z.ZodString>;
hcpcsCode: z.ZodOptional<z.ZodString>;
description: z.ZodOptional<z.ZodString>;
procedureDate: z.ZodDate;
performedBy: z.ZodOptional<z.ZodString>;
facility: z.ZodOptional<z.ZodString>;
anesthesiaType: z.ZodOptional<z.ZodEnum<["none", "local", "regional", "general"]>>;
complications: z.ZodOptional<z.ZodString>;
notes: z.ZodOptional<z.ZodString>;
createdAt: z.ZodDate;
updatedAt: z.ZodDate;
}, "strip", z.ZodTypeAny, {
id: string;
createdAt: Date;
updatedAt: Date;
name: string;
procedureDate: Date;
notes?: string | undefined;
description?: string | undefined;
performedBy?: string | undefined;
facility?: string | undefined;
complications?: string | undefined;
cptCode?: string | undefined;
hcpcsCode?: string | undefined;
anesthesiaType?: "none" | "local" | "regional" | "general" | undefined;
}, {
id: string;
createdAt: Date;
updatedAt: Date;
name: string;
procedureDate: Date;
notes?: string | undefined;
description?: string | undefined;
performedBy?: string | undefined;
facility?: string | undefined;
complications?: string | undefined;
cptCode?: string | undefined;
hcpcsCode?: string | undefined;
anesthesiaType?: "none" | "local" | "regional" | "general" | undefined;
}>;
export declare const MedicalRecordSchema: z.ZodObject<{
id: z.ZodBranded<z.ZodString, "MedicalRecordId">;
patientId: z.ZodString;
providerId: z.ZodString;
status: z.ZodNativeEnum<typeof MedicalRecordStatus>;
visitDate: z.ZodDate;
chiefComplaint: z.ZodString;
historyOfPresentIllness: z.ZodOptional<z.ZodString>;
physicalExamination: z.ZodOptional<z.ZodObject<{
vitalSigns: z.ZodOptional<z.ZodObject<{
temperature: z.ZodOptional<z.ZodNumber>;
bloodPressure: z.ZodOptional<z.ZodString>;
heartRate: z.ZodOptional<z.ZodNumber>;
respiratoryRate: z.ZodOptional<z.ZodNumber>;
oxygenSaturation: z.ZodOptional<z.ZodNumber>;
height: z.ZodOptional<z.ZodNumber>;
weight: z.ZodOptional<z.ZodNumber>;
bmi: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
height?: number | undefined;
weight?: number | undefined;
bmi?: number | undefined;
temperature?: number | undefined;
bloodPressure?: string | undefined;
heartRate?: number | undefined;
respiratoryRate?: number | undefined;
oxygenSaturation?: number | undefined;
}, {
height?: number | undefined;
weight?: number | undefined;
bmi?: number | undefined;
temperature?: number | undefined;
bloodPressure?: string | undefined;
heartRate?: number | undefined;
respiratoryRate?: number | undefined;
oxygenSaturation?: number | undefined;
}>>;
generalAppearance: z.ZodOptional<z.ZodString>;
cardiovascular: z.ZodOptional<z.ZodString>;
respiratory: z.ZodOptional<z.ZodString>;
gastrointestinal: z.ZodOptional<z.ZodString>;
musculoskeletal: z.ZodOptional<z.ZodString>;
neurological: z.ZodOptional<z.ZodString>;
skin: z.ZodOptional<z.ZodString>;
notes: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
notes?: string | undefined;
vitalSigns?: {
height?: number | undefined;
weight?: number | undefined;
bmi?: number | undefined;
temperature?: number | undefined;
bloodPressure?: string | undefined;
heartRate?: number | undefined;
respiratoryRate?: number | undefined;
oxygenSaturation?: number | undefined;
} | undefined;
generalAppearance?: string | undefined;
cardiovascular?: string | undefined;
respiratory?: string | undefined;
gastrointestinal?: string | undefined;
musculoskeletal?: string | undefined;
neurological?: string | undefined;
skin?: string | undefined;
}, {
notes?: string | undefined;
vitalSigns?: {
height?: number | undefined;
weight?: number | undefined;
bmi?: number | undefined;
temperature?: number | undefined;
bloodPressure?: string | undefined;
heartRate?: number | undefined;
respiratoryRate?: number | undefined;
oxygenSaturation?: number | undefined;
} | undefined;
generalAppearance?: string | undefined;
cardiovascular?: string | undefined;
respiratory?: string | undefined;
gastrointestinal?: string | undefined;
musculoskeletal?: string | undefined;
neurological?: string | undefined;
skin?: string | undefined;
}>>;
assessment: z.ZodOptional<z.ZodString>;
plan: z.ZodOptional<z.ZodString>;
diagnoses: z.ZodOptional<z.ZodArray<z.ZodObject<{
id: z.ZodString;
condition: z.ZodString;
icd10Code: z.ZodOptional<z.ZodString>;
icd11Code: z.ZodOptional<z.ZodString>;
severity: z.ZodEnum<["mild", "moderate", "severe"]>;
diagnosisDate: z.ZodDate;
isPrimary: z.ZodBoolean;
isActive: z.ZodBoolean;
notes: z.ZodOptional<z.ZodString>;
diagnosedBy: z.ZodOptional<z.ZodString>;
createdAt: z.ZodDate;
updatedAt: z.ZodDate;
}, "strip", z.ZodTypeAny, {
id: string;
createdAt: Date;
updatedAt: Date;
severity: "moderate" | "mild" | "severe";
isActive: boolean;
isPrimary: boolean;
diagnosisDate: Date;
condition: string;
notes?: string | undefined;
icd10Code?: string | undefined;
diagnosedBy?: string | undefined;
icd11Code?: string | undefined;
}, {
id: string;
createdAt: Date;
updatedAt: Date;
severity: "moderate" | "mild" | "severe";
isActive: boolean;
isPrimary: boolean;
diagnosisDate: Date;
condition: string;
notes?: string | undefined;
icd10Code?: string | undefined;
diagnosedBy?: string | undefined;
icd11Code?: string | undefined;
}>, "many">>;
prescriptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
id: z.ZodString;
medication: z.ZodString;
ndcCode: z.ZodOptional<z.ZodString>;
rxNormCode: z.ZodOptional<z.ZodString>;
dosage: z.ZodString;
frequency: z.ZodString;
route: z.ZodEnum<["oral", "intravenous", "intramuscular", "subcutaneous", "topical", "inhalation"]>;
quantity: z.ZodNumber;
refills: z.ZodNumber;
startDate: z.ZodDate;
endDate: z.ZodOptional<z.ZodDate>;
isActive: z.ZodBoolean;
instructions: z.ZodOptional<z.ZodString>;
prescribedBy: z.ZodString;
prescribedAt: z.ZodDate;
createdAt: z.ZodDate;
updatedAt: z.ZodDate;
}, "strip", z.ZodTypeAny, {
id: string;
createdAt: Date;
updatedAt: Date;
medication: string;
dosage: string;
frequency: string;
route: "oral" | "intravenous" | "intramuscular" | "subcutaneous" | "topical" | "inhalation";
quantity: number;
refills: number;
startDate: Date;
isActive: boolean;
prescribedBy: string;
prescribedAt: Date;
endDate?: Date | undefined;
instructions?: string | undefined;
ndcCode?: string | undefined;
rxNormCode?: string | undefined;
}, {
id: string;
createdAt: Date;
updatedAt: Date;
medication: string;
dosage: string;
frequency: string;
route: "oral" | "intravenous" | "intramuscular" | "subcutaneous" | "topical" | "inhalation";
quantity: number;
refills: number;
startDate: Date;
isActive: boolean;
prescribedBy: string;
prescribedAt: Date;
endDate?: Date | undefined;
instructions?: string | undefined;
ndcCode?: string | undefined;
rxNormCode?: string | undefined;
}>, "many">>;
procedures: z.ZodOptional<z.ZodArray<z.ZodObject<{
id: z.ZodString;
name: z.ZodString;
cptCode: z.ZodOptional<z.ZodString>;
hcpcsCode: z.ZodOptional<z.ZodString>;
description: z.ZodOptional<z.ZodString>;
procedureDate: z.ZodDate;
performedBy: z.ZodOptional<z.ZodString>;
facility: z.ZodOptional<z.ZodString>;
anesthesiaType: z.ZodOptional<z.ZodEnum<["none", "local", "regional", "general"]>>;
complications: z.ZodOptional<z.ZodString>;
notes: z.ZodOptional<z.ZodString>;
createdAt: z.ZodDate;
updatedAt: z.ZodDate;
}, "strip", z.ZodTypeAny, {
id: string;
createdAt: Date;
updatedAt: Date;
name: string;
procedureDate: Date;
notes?: string | undefined;
description?: string | undefined;
performedBy?: string | undefined;
facility?: string | undefined;
complications?: string | undefined;
cptCode?: string | undefined;
hcpcsCode?: string | undefined;
anesthesiaType?: "none" | "local" | "regional" | "general" | undefined;
}, {
id: string;
createdAt: Date;
updatedAt: Date;
name: string;
procedureDate: Date;
notes?: string | undefined;
description?: string | undefined;
performedBy?: string | undefined;
facility?: string | undefined;
complications?: string | undefined;
cptCode?: string | undefined;
hcpcsCode?: string | undefined;
anesthesiaType?: "none" | "local" | "regional" | "general" | undefined;
}>, "many">>;
labResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
id: z.ZodString;
testName: z.ZodString;
loincCode: z.ZodOptional<z.ZodString>;
value: z.ZodString;
unit: z.ZodOptional<z.ZodString>;
referenceRange: z.ZodOptional<z.ZodString>;
isAbnormal: z.ZodBoolean;
notes: z.ZodOptional<z.ZodString>;
reportedAt: z.ZodDate;
}, "strip", z.ZodTypeAny, {
value: string;
id: string;
testName: string;
isAbnormal: boolean;
reportedAt: Date;
notes?: string | undefined;
loincCode?: string | undefined;
unit?: string | undefined;
referenceRange?: string | undefined;
}, {
value: string;
id: string;
testName: string;
isAbnormal: boolean;
reportedAt: Date;
notes?: string | undefined;
loincCode?: string | undefined;
unit?: string | undefined;
referenceRange?: string | undefined;
}>, "many">>;
imagingResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
id: z.ZodString;
studyName: z.ZodString;
modality: z.ZodEnum<["x-ray", "ct", "mri", "ultrasound", "mammography", "other"]>;
bodyPart: z.ZodString;
report: z.ZodString;
images: z.ZodArray<z.ZodString, "many">;
radiologist: z.ZodOptional<z.ZodString>;
reportedAt: z.ZodDate;
}, "strip", z.ZodTypeAny, {
id: string;
report: string;
reportedAt: Date;
studyName: string;
modality: "other" | "x-ray" | "ct" | "mri" | "ultrasound" | "mammography";
bodyPart: string;
images: string[];
radiologist?: string | undefined;
}, {
id: string;
report: string;
reportedAt: Date;
studyName: string;
modality: "other" | "x-ray" | "ct" | "mri" | "ultrasound" | "mammography";
bodyPart: string;
images: string[];
radiologist?: string | undefined;
}>, "many">>;
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
id: z.ZodString;
name: z.ZodString;
type: z.ZodEnum<["document", "image", "video", "audio"]>;
url: z.ZodString;
size: z.ZodNumber;
mimeType: z.ZodString;
uploadedBy: z.ZodString;
uploadedAt: z.ZodDate;
}, "strip", z.ZodTypeAny, {
type: "document" | "image" | "video" | "audio";
id: string;
name: string;
url: string;
size: number;
mimeType: string;
uploadedAt: Date;
uploadedBy: string;
}, {
type: "document" | "image" | "video" | "audio";
id: string;
name: string;
url: string;
size: number;
mimeType: string;
uploadedAt: Date;
uploadedBy: string;
}>, "many">>;
createdAt: z.ZodDate;
updatedAt: z.ZodDate;
createdBy: z.ZodOptional<z.ZodString>;
updatedBy: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
id: string & z.BRAND<"MedicalRecordId">;
createdAt: Date;
updatedAt: Date;
status: MedicalRecordStatus;
patientId: string;
chiefComplaint: string;
providerId: string;
visitDate: Date;
createdBy?: string | undefined;
updatedBy?: string | undefined;
attachments?: {
type: "document" | "image" | "video" | "audio";
id: string;
name: string;
url: string;
size: number;
mimeType: string;
uploadedAt: Date;
uploadedBy: string;
}[] | undefined;
labResults?: {
value: string;
id: string;
testName: string;
isAbnormal: boolean;
reportedAt: Date;
notes?: string | undefined;
loincCode?: string | undefined;
unit?: string | undefined;
referenceRange?: string | undefined;
}[] | undefined;
imagingResults?: {
id: string;
report: string;
reportedAt: Date;
studyName: string;
modality: "other" | "x-ray" | "ct" | "mri" | "ultrasound" | "mammography";
bodyPart: string;
images: string[];
radiologist?: string | undefined;
}[] | undefined;
physicalExamination?: {
notes?: string | undefined;
vitalSigns?: {
height?: number | undefined;
weight?: number | undefined;
bmi?: number | undefined;
temperature?: number | undefined;
bloodPressure?: string | undefined;
heartRate?: number | undefined;
respiratoryRate?: number | undefined;
oxygenSaturation?: number | undefined;
} | undefined;
generalAppearance?: string | undefined;
cardiovascular?: string | undefined;
respiratory?: string | undefined;
gastrointestinal?: string | undefined;
musculoskeletal?: string | undefined;
neurological?: string | undefined;
skin?: string | undefined;
} | undefined;
assessment?: string | undefined;
plan?: string | undefined;
diagnoses?: {
id: string;
createdAt: Date;
updatedAt: Date;
severity: "moderate" | "mild" | "severe";
isActive: boolean;
isPrimary: boolean;
diagnosisDate: Date;
condition: string;
notes?: string | undefined;
icd10Code?: string | undefined;
diagnosedBy?: string | undefined;
icd11Code?: string | undefined;
}[] | undefined;
prescriptions?: {
id: string;
createdAt: Date;
updatedAt: Date;
medication: string;
dosage: string;
frequency: string;
route: "oral" | "intravenous" | "intramuscular" | "subcutaneous" | "topical" | "inhalation";
quantity: number;
refills: number;
startDate: Date;
isActive: boolean;
prescribedBy: string;
prescribedAt: Date;
endDate?: Date | undefined;
instructions?: string | undefined;
ndcCode?: string | undefined;
rxNormCode?: string | undefined;
}[] | undefined;
procedures?: {
id: string;
createdAt: Date;
updatedAt: Date;
name: string;
procedureDate: Date;
notes?: string | undefined;
description?: string | undefined;
performedBy?: string | undefined;
facility?: string | undefined;
complications?: string | undefined;
cptCode?: string | undefined;
hcpcsCode?: string | undefined;
anesthesiaType?: "none" | "local" | "regional" | "general" | undefined;
}[] | undefined;
historyOfPresentIllness?: string | undefined;
}, {
id: string;
createdAt: Date;
updatedAt: Date;
status: MedicalRecordStatus;
patientId: string;
chiefComplaint: string;
providerId: string;
visitDate: Date;
createdBy?: string | undefined;
updatedBy?: string | undefined;
attachments?: {
type: "document" | "image" | "video" | "audio";
id: string;
name: string;
url: string;
size: number;
mimeType: string;
uploadedAt: Date;
uploadedBy: string;
}[] | undefined;
labResults?: {
value: string;
id: string;
testName: string;
isAbnormal: boolean;
reportedAt: Date;
notes?: string | undefined;
loincCode?: string | undefined;
unit?: string | undefined;
referenceRange?: string | undefined;
}[] | undefined;
imagingResults?: {
id: string;
report: string;
reportedAt: Date;
studyName: string;
modality: "other" | "x-ray" | "ct" | "mri" | "ultrasound" | "mammography";
bodyPart: string;
images: string[];
radiologist?: string | undefined;
}[] | undefined;
physicalExamination?: {
notes?: string | undefined;
vitalSigns?: {
height?: number | undefined;
weight?: number | undefined;
bmi?: number | undefined;
temperature?: number | undefined;
bloodPressure?: string | undefined;
heartRate?: number | undefined;
respiratoryRate?: number | undefined;
oxygenSaturation?: number | undefined;
} | undefined;
generalAppearance?: string | undefined;
cardiovascular?: string | undefined;
respiratory?: string | undefined;
gastrointestinal?: string | undefined;
musculoskeletal?: string | undefined;
neurological?: string | undefined;
skin?: string | undefined;
} | undefined;
assessment?: string | undefined;
plan?: string | undefined;
diagnoses?: {
id: string;
createdAt: Date;
updatedAt: Date;
severity: "moderate" | "mild" | "severe";
isActive: boolean;
isPrimary: boolean;
diagnosisDate: Date;
condition: string;
notes?: string | undefined;
icd10Code?: string | undefined;
diagnosedBy?: string | undefined;
icd11Code?: string | undefined;
}[] | undefined;
prescriptions?: {
id: string;
createdAt: Date;
updatedAt: Date;
medication: string;
dosage: string;
frequency: string;
route: "oral" | "intravenous" | "intramuscular" | "subcutaneous" | "topical" | "inhalation";
quantity: number;
refills: number;
startDate: Date;
isActive: boolean;
prescribedBy: string;
prescribedAt: Date;
endDate?: Date | undefined;
instructions?: string | undefined;
ndcCode?: string | undefined;
rxNormCode?: string | undefined;
}[] | undefined;
procedures?: {
id: string;
createdAt: Date;
updatedAt: Date;
name: string;
procedureDate: Date;
notes?: string | undefined;
description?: string | undefined;
performedBy?: string | undefined;
facility?: string | undefined;
complications?: string | undefined;
cptCode?: string | undefined;
hcpcsCode?: string | undefined;
anesthesiaType?: "none" | "local" | "regional" | "general" | undefined;
}[] | undefined;
historyOfPresentIllness?: string | undefined;
}>;
export declare const CreateMedicalRecordRequestSchema: z.ZodObject<{
patientId: z.ZodString;
providerId: z.ZodString;
visitDate: z.ZodDate;
chiefComplaint: z.ZodString;
historyOfPresentIllness: z.ZodOptional<z.ZodString>;
physicalExamination: z.ZodOptional<z.ZodObject<{
vitalSigns: z.ZodOptional<z.ZodObject<{
temperature: z.ZodOptional<z.ZodNumber>;
bloodPressure: z.ZodOptional<z.ZodString>;
heartRate: z.ZodOptional<z.ZodNumber>;
respiratoryRate: z.ZodOptional<z.ZodNumber>;
oxygenSaturation: z.ZodOptional<z.ZodNumber>;
height: z.ZodOptional<z.ZodNumber>;
weight: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
height?: number | undefined;
weight?: number | undefined;
temperature?: number | undefined;
bloodPressure?: string | undefined;
heartRate?: number | undefined;
respiratoryRate?: number | undefined;
oxygenSaturation?: number | undefined;
}, {
height?: number | undefined;
weight?: number | undefined;
temperature?: number | undefined;
bloodPressure?: string | undefined;
heartRate?: number | undefined;
respiratoryRate?: number | undefined;
oxygenSaturation?: number | undefined;
}>>;
generalAppearance: z.ZodOptional<z.ZodString>;
cardiovascular: z.ZodOptional<z.ZodString>;
respiratory: z.ZodOptional<z.ZodString>;
gastrointestinal: z.ZodOptional<z.ZodString>;
musculoskeletal: z.ZodOptional<z.ZodString>;
neurological: z.ZodOptional<z.ZodString>;
skin: z.ZodOptional<z.ZodString>;
notes: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
notes?: string | undefined;
vitalSigns?: {
height?: number | undefined;
weight?: number | undefined;
temperature?: number | undefined;
bloodPressure?: string | undefined;
heartRate?: number | undefined;
respiratoryRate?: number | undefined;
oxygenSaturation?: number | undefined;
} | undefined;
generalAppearance?: string | undefined;
cardiovascular?: string | undefined;
respiratory?: string | undefined;
gastrointestinal?: string | undefined;
musculoskeletal?: string | undefined;
neurological?: string | undefined;
skin?: string | undefined;
}, {
notes?: string | undefined;
vitalSigns?: {
height?: number | undefined;
weight?: number | undefined;
temperature?: number | undefined;
bloodPressure?: string | undefined;
heartRate?: number | undefined;
respiratoryRate?: number | undefined;
oxygenSaturation?: number | undefined;
} | undefined;
generalAppearance?: string | undefined;
cardiovascular?: string | undefined;
respiratory?: string | undefined;
gastrointestinal?: string | undefined;
musculoskeletal?: string | undefined;
neurological?: string | undefined;
skin?: string | undefined;
}>>;
assessment: z.ZodOptional<z.ZodString>;
plan: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
patientId: string;
chiefComplaint: string;
providerId: string;
visitDate: Date;
physicalExamination?: {
notes?: string | undefined;
vitalSigns?: {
height?: number | undefined;
weight?: number | undefined;
temperature?: number | undefined;
bloodPressure?: string | undefined;
heartRate?: number | undefined;
respiratoryRate?: number | undefined;
oxygenSaturation?: number | undefined;
} | undefined;
generalAppearance?: string | undefined;
cardiovascular?: string | undefined;
respiratory?: string | undefined;
gastrointestinal?: string | undefined;
musculoskeletal?: string | undefined;
neurological?: string | undefined;
skin?: string | undefined;
} | undefined;
assessment?: string | undefined;
plan?: string | undefined;
historyOfPresentIllness?: string | undefined;
}, {
patientId: string;
chiefComplaint: string;
providerId: string;
visitDate: Date;
physicalExamination?: {
notes?: string | undefined;
vitalSigns?: {
height?: number | undefined;
weight?: number | undefined;
temperature?: number | undefined;
bloodPressure?: string | undefined;
heartRate?: number | undefined;
respiratoryRate?: number | undefined;
oxygenSaturation?: number | undefined;
} | undefined;
generalAppearance?: string | undefined;
cardiovascular?: string | undefined;
respiratory?: string | undefined;
gastrointestinal?: string | undefined;
musculoskeletal?: string | undefined;
neurological?: string | undefined;
skin?: string | undefined;
} | undefined;
assessment?: string | undefined;
plan?: string | undefined;
historyOfPresentIllness?: string | undefined;
}>;
export declare const UpdateMedicalRecordRequestSchema: z.ZodObject<{
status: z.ZodOptional<z.ZodNativeEnum<typeof MedicalRecordStatus>>;
chiefComplaint: z.ZodOptional<z.ZodString>;
historyOfPresentIllness: z.ZodOptional<z.ZodString>;
physicalExamination: z.ZodOptional<z.ZodObject<{
vitalSigns: z.ZodOptional<z.ZodObject<{
temperature: z.ZodOptional<z.ZodNumber>;
bloodPressure: z.ZodOptional<z.ZodString>;
heartRate: z.ZodOptional<z.ZodNumber>;
respiratoryRate: z.ZodOptional<z.ZodNumber>;
oxygenSaturation: z.ZodOptional<z.ZodNumber>;
height: z.ZodOptional<z.ZodNumber>;
weight: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
height?: number | undefined;
weight?: number | undefined;
temperature?: number | undefined;
bloodPressure?: string | undefined;
heartRate?: number | undefined;
respiratoryRate?: number | undefined;
oxygenSaturation?: number | undefined;
}, {
height?: number | undefined;
weight?: number | undefined;
temperature?: number | undefined;
bloodPressure?: string | undefined;
heartRate?: number | undefined;
respiratoryRate?: number | undefined;
oxygenSaturation?: number | undefined;
}>>;
generalAppearance: z.ZodOptional<z.ZodString>;
cardiovascular: z.ZodOptional<z.ZodString>;
respiratory: z.ZodOptional<z.ZodString>;
gastrointestinal: z.ZodOptional<z.ZodString>;
musculoskeletal: z.ZodOptional<z.ZodString>;
neurological: z.ZodOptional<z.ZodString>;
skin: z.ZodOptional<z.ZodString>;
notes: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
notes?: string | undefined;
vitalSigns?: {
height?: number | undefined;
weight?: number | undefined;
temperature?: number | undefined;
bloodPressure?: string | undefined;
heartRate?: number | undefined;
respiratoryRate?: number | undefined;
oxygenSaturation?: number | undefined;
} | undefined;
generalAppearance?: string | undefined;
cardiovascular?: string | undefined;
respiratory?: string | undefined;
gastrointestinal?: string | undefined;
musculoskeletal?: string | undefined;
neurological?: string | undefined;
skin?: string | undefined;
}, {
notes?: string | undefined;
vitalSigns?: {
height?: number | undefined;
weight?: number | undefined;
temperature?: number | undefined;
bloodPressure?: string | undefined;
heartRate?: number | undefined;
respiratoryRate?: number | undefined;
oxygenSaturation?: number | undefined;
} | undefined;
generalAppearance?: string | undefined;
cardiovascular?: string | undefined;
respiratory?: string | undefined;
gastrointestinal?: string | undefined;
musculoskeletal?: string | undefined;
neurological?: string | undefined;
skin?: string | undefined;
}>>;
assessment: z.ZodOptional<z.ZodString>;
plan: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
status?: MedicalRecordStatus | undefined;
chiefComplaint?: string | undefined;
physicalExamination?: {
notes?: string | undefined;
vitalSigns?: {
height?: number | undefined;
weight?: number | undefined;
temperature?: number | undefined;
bloodPressure?: string | undefined;
heartRate?: number | undefined;
respiratoryRate?: number | undefined;
oxygenSaturation?: number | undefined;
} | undefined;
generalAppearance?: string | undefined;
cardiovascular?: string | undefined;
respiratory?: string | undefined;
gastrointestinal?: string | undefined;
musculoskeletal?: string | undefined;
neurological?: string | undefined;
skin?: string | undefined;
} | undefined;
assessment?: string | undefined;
plan?: string | undefined;
historyOfPresentIllness?: string | undefined;
}, {
status?: MedicalRecordStatus | undefined;
chiefComplaint?: string | undefined;
physicalExamination?: {
notes?: string | undefined;
vitalSigns?: {
height?: number | undefined;
weight?: number | undefined;
temperature?: number | undefined;
bloodPressure?: string | undefined;
heartRate?: number | undefined;
respiratoryRate?: number | undefined;
oxygenSaturation?: number | undefined;
} | undefined;
generalAppearance?: string | undefined;
cardiovascular?: string | undefined;
respiratory?: string | undefined;
gastrointestinal?: string | undefined;
musculoskeletal?: string | undefined;
neurological?: string | undefined;
skin?: string | undefined;
} | undefined;
assessment?: string | undefined;
plan?: string | undefined;
historyOfPresentIllness?: string | undefined;
}>;
export declare const AddDiagnosisRequestSchema: z.ZodObject<{
condition: z.ZodString;
icd10Code: z.ZodOptional<z.ZodString>;
icd11Code: z.ZodOptional<z.ZodString>;
severity: z.ZodEnum<["mild", "moderate", "severe"]>;
diagnosisDate: z.ZodDate;
isPrimary: z.ZodOptional<z.ZodBoolean>;
notes: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
severity: "moderate" | "mild" | "severe";
diagnosisDate: Date;
condition: string;
notes?: string | undefined;
isPrimary?: boolean | undefined;
icd10Code?: string | undefined;
icd11Code?: string | undefined;
}, {
severity: "moderate" | "mild" | "severe";
diagnosisDate: Date;
condition: string;
notes?: string | undefined;
isPrimary?: boolean | undefined;
icd10Code?: string | undefined;
icd11Code?: string | undefined;
}>;
export declare const AddPrescriptionRequestSchema: z.ZodObject<{
medication: z.ZodString;
ndcCode: z.ZodOptional<z.ZodString>;
rxNormCode: z.ZodOptional<z.ZodString>;
dosage: z.ZodString;
frequency: z.ZodString;
route: z.ZodEnum<["oral", "intravenous", "intramuscular", "subcutaneous", "topical", "inhalation"]>;
quantity: z.ZodNumber;
refills: z.ZodNumber;
startDate: z.ZodDate;
endDate: z.ZodOptional<z.ZodDate>;
instructions: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
medication: string;
dosage: string;
frequency: string;
route: "oral" | "intravenous" | "intramuscular" | "subcutaneous" | "topical" | "inhalation";
quantity: number;
refills: number;
startDate: Date;
endDate?: Date | undefined;
instructions?: string | undefined;
ndcCode?: string | undefined;
rxNormCode?: string | undefined;
}, {
medication: string;
dosage: string;
frequency: string;
route: "oral" | "intravenous" | "intramuscular" | "subcutaneous" | "topical" | "inhalation";
quantity: number;
refills: number;
startDate: Date;
endDate?: Date | undefined;
instructions?: string | undefined;
ndcCode?: string | undefined;
rxNormCode?: string | undefined;
}>;
export declare const AddProcedureRequestSchema: z.ZodObject<{
name: z.ZodString;
cptCode: z.ZodOptional<z.ZodString>;
hcpcsCode: z.ZodOptional<z.ZodString>;
description: z.ZodOptional<z.ZodString>;
procedureDate: z.ZodDate;
facility: z.ZodOptional<z.ZodString>;
anesthesiaType: z.ZodOptional<z.ZodEnum<["none", "local", "regional", "general"]>>;
complications: z.ZodOptional<z.ZodString>;
notes: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
name: string;
procedureDate: Date;
notes?: string | undefined;
description?: string | undefined;
facility?: string | undefined;
complications?: string | undefined;
cptCode?: string | undefined;
hcpcsCode?: string | undefined;
anesthesiaType?: "none" | "local" | "regional" | "general" | undefined;
}, {
name: string;
procedureDate: Date;
notes?: string | undefined;
description?: string | undefined;
facility?: string | undefined;
complications?: string | undefined;
cptCode?: string | undefined;
hcpcsCode?: string | undefined;
anesthesiaType?: "none" | "local" | "regional" | "general" | undefined;
}>;
export declare const MedicalRecordResponseSchema: z.ZodObject<{
id: z.ZodBranded<z.ZodString, "MedicalRecordId">;
patientId: z.ZodString;
providerId: z.ZodString;
status: z.ZodNativeEnum<typeof MedicalRecordStatus>;
visitDate: z.ZodDate;
chiefComplaint: z.ZodString;
historyOfPresentIllness: z.ZodOptional<z.ZodString>;
assessment: z.ZodOptional<z.ZodString>;
plan: z.ZodOptional<z.ZodString>;
diagnoses: z.ZodOptional<z.ZodArray<z.ZodObject<{
condition: z.ZodString;
icd10Code: z.ZodOptional<z.ZodString>;
severity: z.ZodEnum<["mild", "moderate", "severe"]>;
diagnosisDate: z.ZodDate;
isActive: z.ZodBoolean;
}, "strip", z.ZodTypeAny, {
severity: "moderate" | "mild" | "severe";
isActive: boolean;
diagnosisDate: Date;
condition: string;
icd10Code?: string | undefined;
}, {
severity: "moderate" | "mild" | "severe";
isActive: boolean;
diagnosisDate: Date;
condition: string;
icd10Code?: string | undefined;
}>, "many">>;
prescriptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
medication: z.ZodString;
dosage: z.ZodString;
frequency: z.ZodString;
isActive: z.ZodBoolean;
}, "strip", z.ZodTypeAny, {
medication: string;
dosage: string;
frequency: string;
isActive: boolean;
}, {
medication: string;
dosage: string;
frequency: string;
isActive: boolean;
}>, "many">>;
procedures: z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodString;
cptCode: z.ZodOptional<z.ZodString>;
procedureDate: z.ZodDate;
}, "strip", z.ZodTypeAny, {
name: string;
procedureDate: Date;
cptCode?: string | undefined;
}, {
name: string;
procedureDate: Date;
cptCode?: string | undefined;
}>, "many">>;
createdAt: z.ZodDate;
updatedAt: z.ZodDate;
}, "strip", z.ZodTypeAny, {
id: string & z.BRAND<"MedicalRecordId">;
createdAt: Date;
updatedAt: Date;
status: MedicalRecordStatus;
patientId: string;
chiefComplaint: string;
providerId: string;
visitDate: Date;
assessment?: string | undefined;
plan?: string | undefined;
diagnoses?: {
severity: "moderate" | "mild" | "severe";
isActive: boolean;
diagnosisDate: Date;
condition: string;
icd10Code?: string | undefined;
}[] | undefined;
prescriptions?: {
medication: string;
dosage: string;
frequency: string;
isActive: boolean;
}[] | undefined;
procedures?: {
name: string;
procedureDate: Date;
cptCode?: string | undefined;
}[] | undefined;
historyOfPresentIllness?: string | undefined;
}, {
id: string;
createdAt: Date;
updatedAt: Date;
status: MedicalRecordStatus;
patientId: string;
chiefComplaint: string;
providerId: string;
visitDate: Date;
assessment?: string | undefined;
plan?: string | undefined;
diagnoses?: {
severity: "moderate" | "mild" | "severe";
isActive: boolean;
diagnosisDate: Date;
condition: string;
icd10Code?: string | undefined;
}[] | undefined;
prescriptions?: {
medication: string;
dosage: string;
frequency: string;
isActive: boolean;
}[] | undefined;
procedures?: {
name: string;
procedureDate: Date;
cptCode?: string | undefined;
}[] | undefined;
historyOfPresentIllness?: string | undefined;
}>;
export declare const MedicalRecordListResponseSchema: z.ZodObject<{
medicalRecords: z.ZodArray<z.ZodObject<{
id: z.ZodBranded<z.ZodString, "MedicalRecordId">;
patientId: z.ZodString;
providerId: z.ZodString;
status: z.ZodNativeEnum<typeof MedicalRecordStatus>;
visitDate: z.ZodDate;
chiefComplaint: z.ZodString;
historyOfPresentIllness: z.ZodOptional<z.ZodString>;
assessment: z.ZodOptional<z.ZodString>;
plan: z.ZodOptional<z.ZodString>;
diagnoses: z.ZodOptional<z.ZodArray<z.ZodObject<{
condition: z.ZodString;
icd10Code: z.ZodOptional<z.ZodString>;
severity: z.ZodEnum<["mild", "moderate", "severe"]>;
diagnosisDate: z.ZodDate;
isActive: z.ZodBoolean;
}, "strip", z.ZodTypeAny, {
severity: "moderate" | "mild" | "severe";
isActive: boolean;
diagnosisDate: Date;
condition: string;
icd10Code?: string | undefined;
}, {
severity: "moderate" | "mild" | "severe";
isActive: boolean;
diagnosisDate: Date;
condition: string;
icd10Code?: string | undefined;
}>, "many">>;
prescriptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
medication: z.ZodString;
dosage: z.ZodString;
frequency: z.ZodString;
isActive: z.ZodBoolean;
}, "strip", z.ZodTypeAny, {
medication: string;
dosage: string;
frequency: string;
isActive: boolean;
}, {
medication: string;
dosage: string;
frequency: string;
isActive: boolean;
}>, "many">>;
procedures: z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodString;
cptCode: z.ZodOptional<z.ZodString>;
procedureDate: z.ZodDate;
}, "strip", z.ZodTypeAny, {
name: string;
procedureDate: Date;
cptCode?: string | undefined;
}, {
name: string;
procedureDate: Date;
cptCode?: string | undefined;
}>, "many">>;
createdAt: z.ZodDate;
updatedAt: z.ZodDate;
}, "strip", z.ZodTypeAny, {
id: string & z.BRAND<"MedicalRecordId">;
createdAt: Date;
updatedAt: Date;
status: MedicalRecordStatus;
patientId: string;
chiefComplaint: string;
providerId: string;
visitDate: Date;
assessment?: string | undefined;
plan?: string | undefined;
diagnoses?: {
severity: "moderate" | "mild" | "severe";
isActive: boolean;
diagnosisDate: Date;
condition: string;
icd10Code?: string | undefined;
}[] | undefined;
prescriptions?: {
medication: string;
dosage: string;
frequency: string;
isActive: boolean;
}[] | undefined;
procedures?: {
name: string;
procedureDate: Date;
cptCode?: string | undefined;
}[] | undefined;
historyOfPresentIllness?: string | undefined;
}, {
id: string;
createdAt: Date;
updatedAt: Date;
status: MedicalRecordStatus;
patientId: string;
chiefComplaint: string;
providerId: string;
visitDate: Date;
assessment?: string | undefined;
plan?: string | undefined;
diagnoses?: {
severity: "moderate" | "mild" | "severe";
isActive: boolean;
diagnosisDate: Date;
condition: string;
icd10Code?: string | undefined;
}[] | undefined;
prescriptions?: {
medication: string;
dosage: string;
frequency: string;
isActive: boolean;
}[] | undefined;
procedures?: {
name: string;
procedureDate: Date;
cptCode?: string | undefined;
}[] | undefined;
historyOfPresentIllness?: string | undefined;
}>, "many">;
pagination: z.ZodObject<{
page: z.ZodNumber;
limit: z.ZodNumber;
total: z.ZodNumber;
totalPages: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
page: number;
limit: number;
total: number;
totalPages: number;
}, {
page: number;
limit: number;
total: number;
totalPages: number;
}>;
}, "strip", z.ZodTypeAny, {
pagination: {
page: number;
limit: number;
total: number;
totalPages: number;
};
medicalRecords: {
id: string & z.BRAND<"MedicalRecordId">;
createdAt: Date;
updatedAt: Date;
status: MedicalRecordStatus;
patientId: string;
chiefComplaint: string;
providerId: string;
visitDate: Date;
assessment?: string | undefined;
plan?: string | undefined;
diagnoses?: {
severity: "moderate" | "mild" | "severe";
isActive: boolean;
diagnosisDate: Date;
condition: string;
icd10Code?: string | undefined;
}[] | undefined;
prescriptions?: {
medication: string;
dosage: string;
frequency: string;
isActive: boolean;
}[] | undefined;
procedures?: {
name: string;
procedureDate: Date;
cptCode?: string | undefined;
}[] | undefined;
historyOfPresentIllness?: string | undefined;
}[];
}, {
pagination: {
page: number;
limit: number;
total: number;
totalPages: number;
};
medicalRecords: {
id: string;
createdAt: Date;
updatedAt: Date;
status: MedicalRecordStatus;
patientId: string;
chiefComplaint: string;
providerId: string;
visitDate: Date;
assessment?: string | undefined;
plan?: string | undefined;
diagnoses?: {
severity: "moderate" | "mild" | "severe";
isActive: boolean;
diagnosisDate: Date;
condition: string;
icd10Code?: string | undefined;
}[] | undefined;
prescriptions?: {
medication: string;
dosage: string;
frequency: string;
isActive: boolean;
}[] | undefined;
procedures?: {
name: string;
procedureDate: Date;
cptCode?: string | undefined;
}[] | undefined;
historyOfPresentIllness?: string | undefined;
}[];
}>;
export declare const MedicalRecordSearchFiltersSchema: z.ZodObject<{
query: z.ZodOptional<z.ZodString>;
patientId: z.ZodOptional<z.ZodString>;
providerId: z.ZodOptional<z.ZodString>;
status: z.ZodOptional<z.ZodNativeEnum<typeof MedicalRecordStatus>>;
visitDateAfter: z.ZodOptional<z.ZodDate>;
visitDateBefore: z.ZodOptional<z.ZodDate>;
hasDiagnoses: z.ZodOptional<z.ZodBoolean>;
hasPrescriptions: z.ZodOptional<z.ZodBoolean>;
hasProcedures: z.ZodOptional<z.ZodBoolean>;
hasLabResults: z.ZodOptional<z.ZodBoolean>;
hasImagingResults: z.ZodOptional<z.ZodBoolean>;
createdAfter: z.ZodOptional<z.ZodDate>;
createdBefore: z.ZodOptional<z.ZodDate>;
}, "strip", z.ZodTypeAny, {
status?: MedicalRecordStatus | undefined;
patientId?: string | undefined;
providerId?: string | undefined;
query?: string | undefined;
createdAfter?: Date | undefined;
createdBefore?: Date | undefined;
hasPrescriptions?: boolean | undefined;
hasProcedures?: boolean | undefined;
visitDateAfter?: Date | undefined;
visitDateBefore?: Date | undefined;
hasDiagnoses?: boolean | undefined;
hasLabResults?: boolean | undefined;
hasImagingResults?: boolean | undefined;
}, {
status?: MedicalRecordStatus | undefined;
patientId?: string | undefined;
providerId?: string | undefined;
query?: string | undefined;
createdAfter?: Date | undefined;
createdBefore?: Date | undefined;
h