Fhir Implementations
Initial checkin for Fhir Implemntations
@sliver007 @hayesalphora I'm putting this here so it's closer to the issue instead of the Jira ticket...
Using an image of this branch in an application, we are running across an error as a result of the following. Here's the steps I followed:
-
Run this branch as a docker image:
docker run -e "hapi.fhir.server_address=http://localhost:8082/fhir" -e "hapi.fhir.fhir_version=R4" -e "hapi.fhir.cql.cql_logging_enabled=true" -p 8082:8080 --name cqf-ruler-vsm alphora/cqf-ruler:vsm_newversionop -
POST this bundle as the data (also RCKMS valueset, but seems immaterial to this issue).
-
The bundle contains an active program Library, along with its associated grouper valuesets, etc.
-
We clone the program library using a fetch as so:
let body = JSON.parse(req.body)
const postBody = JSON.stringify({
resourceType: 'Parameters',
parameter: [
{
name: 'specification',
resource: body
}
]
})
const response = await fetch(`${process.env.FHIR_CDR_URL}/$draft`, {
method: 'POST',
headers: {
'content-type': 'application/json'
},
body: postBody
})
The result from CQF is that there is some sort of data collision with the grouper valuesets:
2022-11-14 19:10:54.301 [http-nio-8080-exec-4] WARN c.u.f.r.s.i.ExceptionHandlingInterceptor [ExceptionHandlingInterceptor.java:148] Failure during REST processing: ca.uhn.fhir.rest.server.exceptions.UnprocessableEntityException: HAPI-0902: Can not create multiple ValueSet resources with ValueSet.url "http://ersd.aimsplatform.org/fhir/ValueSet/dxtc", already have one with resource ID: ValueSet/40
Is there maybe something in the FHIR profiles that doesn't allow groupers from different programs to have the same URLs?
The $draft functionality worked until recently, so was there some recent change that could have broken it?