@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.
20 lines (19 loc) • 1.6 kB
TypeScript
import { Prescription, PrescriptionRequest, Patient, HealthcareParty, Code as FhcCode } from '@icure/be-fhc-lite-api';
import { SamVersion } from '@icure/cardinal-be-sam-sdk';
import { UploadPractitionerCertificateService } from '../certificate/upload-practitioner-certificate.service';
import { CertificateValidationResultType, PrescribedMedicationType, TokenStore } from '../../types';
import { TranslationService } from '../translation/translation.service';
import * as i0 from "@angular/core";
export declare class FhcService {
private certificateService;
private translationService;
private language;
constructor(certificateService: UploadPractitionerCertificateService, translationService: TranslationService);
createFhcFromCode(type: string, code: string, version?: string): FhcCode;
makePrescriptionRequest(samVersion: SamVersion, prescriber: HealthcareParty, patient: Patient, prescribedMedication: PrescribedMedicationType): PrescriptionRequest;
sendRecipe(samVersion: SamVersion, prescriber: HealthcareParty, patient: Patient, prescribedMedication: PrescribedMedicationType, passphrase: string, cache: TokenStore): Promise<Prescription[]>;
verifyCertificateWithSts(prescriber: HealthcareParty, passphrase: string, cache: TokenStore): Promise<CertificateValidationResultType>;
validateDecryptedCertificate(hcp: HealthcareParty, passphrase: string, indexedDbTokenStore: TokenStore): Promise<CertificateValidationResultType>;
static ɵfac: i0.ɵɵFactoryDeclaration<FhcService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<FhcService>;
}