medisot-compliance-library

Resource Standards library that comes with utilities

Usage no npm install needed!

<script type="module">
  import medisotComplianceLibrary from 'https://cdn.skypack.dev/medisot-compliance-library';
</script>

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:

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