cms-fhir
Blue Button CMS to FHIR Parser
Generate FHIR JSON data from CMS files.
This library provides the following functionality
- Parse CMS document
- Generate set of resources conformant to FHIR DSTU2
Usage example:
var split = ;var bbcms = ;//open input streamvar istream = fs;//convert the stream into FHIR modelistream // split into the rows// convert into intermediate object format// convetr to a fhir bundle, remove a parameter if you don't want a transaction bundle;
getting:
"resourceType": "Bundle""type": "transaction""id": "0""meta":"lastUpdated": "2015-07-17T20:26:52.499Z""entry":"resource":"resourceType": "Patient""id": "Patient/6831d156-f663-4d09-9f9f-ebc7dafa7059""name":"use": "usual""text": "JOHN DOE""birthDate": "1910-01-01""address":"line":"123 ANY ROAD""""city": "ANYTOWN""state": "VA""postalCode": "00001""telecom":"system": "phone""value": "123-456-7890""system": "email""value": "JOHNDOE@example.com""contact":"name":"use": "usual""text": "JANE DOE""address":"use": "Home""line":"123 AnyWhere St""""city": "AnyWhere""state": "DC""postalCode": "00002-1111""relationship":"coding":"system": "http://hl7.org/fhir/ValueSet/patient-contact-relationship""code": "Other""text": "Other""telecom":"use": "home""system": "phone""value": "123-456-7890""use": "work""system": "phone""value": "000-001-0001""use": "mobile""system": "phone""value": "000-001-0002""system": "email""value": "JANEDOE@example.com""name":"use": "usual""text": "STEVE DOE""address":"use": """line":"123 AnyWhere Rd""""city": "AnyWhere""state": "VA""postalCode": "00001"..."transaction":"method": "POST""url": "Practitioner""base": "http://localhost:8080/fhir/base""base": "http://localhost:8080/fhir/base"
Example app
Example app is here
License
Licensed under Apache 2.0.