@icure/cardinal-prescription-be-angular
Version:
This is a Belgian-specific Angular application for healthcare professionals to manage electronic prescriptions with SAM. Created by iCure.
25 lines (24 loc) • 1.32 kB
TypeScript
import { FhcService } from '../../../shared/services/api/fhc.service';
import { PrescriptionFormType } from '../../types';
import { MedicationType, PrescribedMedicationType } from '../../../shared/types';
import { RegimenItem as ParsedRegimenItem } from '@icure/medication-sdk';
import { VmpGroup } from '@icure/cardinal-be-sam-sdk';
import * as i0 from "@angular/core";
export interface StandardDosageContext {
ageInYears?: number;
weightInKg?: number;
renalFunctionMlPerMin?: number;
}
export declare class CreatePrescriptionService {
private fhcService;
constructor(fhcService: FhcService);
createPrescribedMedication(formValues: PrescriptionFormType, prescribedMedication?: PrescribedMedicationType | undefined, medicationToPrescribe?: MedicationType | undefined): PrescribedMedicationType[];
private createRegimenItemsFromDosage;
private createSinglePrescribedMedication;
private createMultiplePrescribedMedications;
private createMedicationForPrescription;
createPosologyFromStandardDosage(group: VmpGroup | undefined, context: StandardDosageContext): ParsedRegimenItem[];
private determineMedicationData;
static ɵfac: i0.ɵɵFactoryDeclaration<CreatePrescriptionService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<CreatePrescriptionService>;
}