Closed aleksa-krolls closed 1 year ago
Hey @mtuchi I need your help putting together this simple demo showcasing how we might send data between 2 FHIR-compliant systems. Looping in @taylordowns2000 as well to support with any questions, thanks!
@aleksa-krolls This is done now, See PR #6,
I will need to cut a new release of the fhir
adaptor and update the adaptor version on lighting to use the latest version of fhir
for createPatientBundleFHIR
job
I have already updated the jobs on Lighting ⚡ , i am just waiting for PR approval from @taylordowns2000 on adaptors https://github.com/OpenFn/adaptors/pull/269
Thanks, @mtuchi ... Lightning config looking good. So when @taylordowns2000 approves, please let me know the following for each job:
I will then test in the morning to make sure this is ready to go 😊
@aleksa-krolls i have just published a new release for fhir
adaptor: fhir
version: 2.0.0
configuration: {
"baseUrl": "https://fhir.simplifier.net",
"apiPath": "R3"
}
Background
In issue #3 we created this demo openhie workflow, showcasing how to convert a CommCare payload to the FHIR format before routing to a HAPI FHIR server. This was an example workflow between a non-FHIR and a FHIR system.
Now we want to demonstrate FHIR-to-FHIR data exchange between 2 FHIR-compliant data systems.
Request
Get
bundle
(or "array") of patients from this demo API:https://fhir.simplifier.net/R3/Bundle/c393585c-1f5d-4eab-b19e-2c51bdce0d11
(See demo docs. This will return a basicpatient
resource with attributes likename
,gender
,birthdate
.Then create new patents in HAPI FHIR using the
bundle
endpoint to create multiple patients https://hapi.fhir.org/resource?serverId=home_r4&pretty=true&_summary=&resource=BundleBecause these 2 systems are both compliant, there should be no need for mapping rules/special business logic.
I've already configured this workflow on app.openfn.org: https://app.openfn.org/projects/fdfdf286-aa8e-4c9e-a1d2-89c1e6928a2a/w/eca5ca64-6f53-4bc2-b117-2fc4d586a903/j/54103c45-ca87-4490-904b-bdae6d9b6b71#editor
expression
2 new jobs:
getPatientBundleFHIR.js
createPatientBundleFHIR.js
state
Output
Sending a
GET 'https://fhir.simplifier.net/R3/Bundle/c393585c-1f5d-4eab-b19e-2c51bdce0d117'
will return an array ofpatient
resources.See sample payload here: https://simplifier.net/Patientexamplesfromt/Bundle-example/~json