2.0.1 • Published 4 years ago

medisot-compliance-library v2.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

npm.io CORNELIUS The compliance library that is responsible for maintaining all the standard healthcare resources How to use To use, add the library as a dependency in the ioc and inject the same wherever required:

  1. Registering the dependency in the container

    import {Container} from "inversify";
    import { PatientResourceUtils } from "medisot-compliance-library";
    
    let container = new Container();
    container.bind<PatientResourceUtils>(TYPES.PatientResourceUtils).to(PatientResourceUtils);
  2. Injecting the dependency where required

    export default class UserService {
       constructor(@inject(TYPES.PatientResourceUtils) private patientResourceUtils: PatientResourceUtils) {}
    }
  3. Using the injected dependency to perform resource conversion

    let formattedUserProfile = this.patientResourceUtils.convertIntoFHIR(userProfile, "medisot");