Comments (33)
I am aware of this issue, which may be an issue with HAPI (hapifhir/hapi-fhir#787). I am working on determining the cause.
from cqf-ruler.
from cqf-ruler.
Ok, I have worked out the issue. I will be committing the fix shortly.
from cqf-ruler.
Get the latest. I have fleshed out the test suite for all the cds operations.
from cqf-ruler.
from cqf-ruler.
Whoops. Forgot git doesn't include empty directories... Please get the latest and try again.
from cqf-ruler.
from cqf-ruler.
Awesome! Thanks Jeff. Closing this...
from cqf-ruler.
from cqf-ruler.
Hmm. Did you forget to add a medication code?
from cqf-ruler.
from cqf-ruler.
from cqf-ruler.
I haven't updated that IG in several months... I would get everything from either the ruler or this repo.
from cqf-ruler.
Ok, now you need dosageInstructions see the example request for everything you'll need.
from cqf-ruler.
from cqf-ruler.
They are dstu2 resources in the example request because EHR's mainly use dstu2. You can use stu3, but they need to include the same fields as dstu2. See the opioid guidance test to see the resources that need to be in the server. I will add some validation of the context and prefetch resources that will throw meaningful errors if the resources are missing required fields.
Also, the prefetch should be populated with all active MedicationRequest resources for the patient.
from cqf-ruler.
from cqf-ruler.
I am currently working on getting the stu3 requests to work. The dstu2 request works for me. The prefetch for your stu3 request is malformed btw.
from cqf-ruler.
from cqf-ruler.
Added STU3 support in latest commit. Request should look like the following (prefetch is a Bundle):
{
"hook":"medication-prescribe",
"hookInstance":"5bacb720-f493-4fe7-8750-c02595cbb72b",
"fhirServer":"http://localhost:8080/cqf-ruler/baseDstu3",
"user":"Practitioner-2516",
"patient":"Patient-1121",
"context":[
{
"resourceType":"MedicationRequest",
"authoredOn":"2017-01-01",
"status":"active",
"medicationCodeableConcept":{
"coding":[
{
"system":"http://www.nlm.nih.gov/research/umls/rxnorm",
"code":"197696",
"display":"fentaNYL 75 MCG/HR 3 Day Transdermal Patch"
}
]
},
"subject":{
"reference":"Patient/Patient-1121",
"display":"Jerry Phillip Goodwall"
},
"reasonCode":[
{
"coding":[
{
"system":"http://snomed.info/sct",
"code":"82423001",
"display":"Chronic pain"
}
],
"text":"Chronic pain"
}
],
"dosageInstruction":[
{
"text":"Take 40mg three times daily",
"timing":{
"repeat":{
"count":1,
"durationUnit":"d",
"frequency":3,
"frequencyMax":3,
"period":1
}
},
"asNeededBoolean":false,
"doseQuantity":{
"value":1,
"unit":"mg",
"system":"http://unitsofmeasure.org",
"code":"mg"
}
}
],
"dispenseRequest":{
"quantity":{
"value":1,
"unit":"mg",
"system":"http://unitsofmeasure.org",
"code":"mg"
}
}
}
],
"prefetch":{
"medication":{
"resource":{
"resourceType":"Bundle",
"entry":[
{
"resource":{
"resourceType":"MedicationRequest",
"id":"medrx001",
"status":"active",
"medicationCodeableConcept":{
"coding":[
{
"system":"http://www.nlm.nih.gov/research/umls/rxnorm",
"code":"197696",
"display":"fentaNYL 75 MCG/HR 3 Day Transdermal Patch"
}
]
},
"subject":{
"reference":"Patient/Patient-1121",
"display":"Jerry Phillip Goodwall"
},
"authoredOn":"2017-01-01T00:00:00-05:00",
"reasonCode":[
{
"coding":[
{
"system":"http://snomed.info/sct",
"code":"82423001",
"display":"Chronic pain"
}
],
"text":"Chronic pain"
}
],
"dosageInstruction":[
{
"text":"Take 40mg three times daily",
"timing":{
"repeat":{
"count":1,
"durationUnit":"d",
"frequency":3,
"frequencyMax":3,
"period":1
}
},
"asNeededBoolean":false,
"doseQuantity":{
"value":1,
"unit":"mg",
"system":"http://unitsofmeasure.org",
"code":"mg"
}
}
],
"dispenseRequest":{
"quantity":{
"value":1,
"unit":"mg",
"system":"http://unitsofmeasure.org",
"code":"mg"
}
}
}
}
]
}
}
}
}
Should give the following response:
{
"cards": [
{
"summary": "High risk for opioid overdose - taper now",
"indicator": "warning",
"detail": "Total morphine milligram equivalent (MME) is 504.000mg/d. Taper to less than 50."
}
]
}
from cqf-ruler.
Also just added validation for context and prefetch resources for the cdc-opioid-guidance cds hooks request. Will now give meaningful errors when missing required fields. Hope that helps in the future. =)
from cqf-ruler.
from cqf-ruler.
That looks good. I was able to run that request successfully. Do you have the OpioidManagementTerminologyKnowledge.db file in the src/main/resources/cds directory?
from cqf-ruler.
from cqf-ruler.
from cqf-ruler.
You need to add a src/main/resources/cds directory in the cqf-ruler project and add the db file. Then build and it will be included in the war file.
I will email it to you. We are not allowed to make it publicly available.
from cqf-ruler.
from cqf-ruler.
Yeah, that should be it... I need to remove that from that repo.
from cqf-ruler.
from cqf-ruler.
Everything looks right. I am able to run this with the request and endpoint you specified. Not sure how to proceed... I will setup Tomcat and see if I can figure out what the issue is - probably won't have anything for you today. I'll keep you posted.
from cqf-ruler.
from cqf-ruler.
from cqf-ruler.
Problem resolved.
from cqf-ruler.
Related Issues (20)
- Update the existing $davinci-ra.resolve operation to implement the $davinci-ra.remediate operation HOT 1
- Implement the $ra.resolve-coding-gaps operation (replace existing) HOT 4
- Release 0.7.1 Ruler
- Ruler Release 0.8.0
- Ruler Release 0.8.1
- Tag the generated Docker image with the commit hash that was used to generate it
- RA Report spec updates HOT 1
- RA Remediate spec updates HOT 1
- Implement the RA $approve operation HOT 2
- error compiling latest at Use evaluator utilities (#666) HOT 2
- $ra.resolve should error if approve has not been called first
- Implement the RA Assisted MeasureReport (CSV) operation
- ValueSets not expanded in queries to EHR HOT 1
- CDS Service Request fhirAuthorization broken in 0.5.1 and above HOT 2
- Ruler Release 0.10.0
- cds service giving missing type id exception
- Translation of library expression failed with the following message: Syntax error at meno HOT 1
- Data format parsing exception HOT 2
- CQFRuler sandbox issue
- updating for 2023 CQMs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cqf-ruler.