README
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:
- 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);
- Injecting the dependency where required
export default class UserService {
constructor(@inject(TYPES.PatientResourceUtils) private patientResourceUtils: PatientResourceUtils) {}
}
- Using the injected dependency to perform resource conversion
let formattedUserProfile = this.patientResourceUtils.convertIntoFHIR(userProfile, "medisot");