Closed Roger-Geacom closed 2 months ago
@Roger-Geacom Please try a blank string with a single space character for valueQuantity.unit. Post another comment to confirm if that allows successful posting of values for these Observations.
"valueQuantity": {
"system": "http://unitsofmeasure.org",
"unit": " ",
"value": 0
},
@Torin-Shepard-athena Using the above value quantity it looks like the backend reads that as empty and gives the following error:
"issue": [
{
"severity": "error",
"code": "business-rule",
"diagnostics": "Observation value quantity unit is mandatory"
}
]
@Roger-Geacom You have identified a shortcoming and limitation in the athenaPractice FHIR Server. It seems like it is currently not possible to push values for numeric Observations that are defined without any units. This will need to be fixed in a future release.
@Torin-Shepard-athena Thanks for the info.
Do you want me to close this issue, or leave it open as its an issue with a pending fix. Not sure how you track issues.
@Torin-Shepard-athena Would this fix be in the upcoming V20.2 release or a ways off?
@Roger-Geacom Closing this issue as it's planned for future release and we will tracking it internally.
Your question
Is there a valueQuantity unit I should use for a phq9 score?
Any background information about this question
I'm trying to match observation codes used by our client's centricity software, and for most things it has gone really well. One problem that I am having is with scores for a phq-9. The Centricty software saves it as an numbered score as a valueQuantity. The problem is it doens't save a system or unit in this value quantitiy. When I read the observation written from centricity I get this:
As you can see on the backed it is saving as single score value. Unfortunately, the api requires system and unit fields in a value quantity so when I try to write a similar observation I get api errors. I'm wondering if there is a way around this, is there a unit that it will accept, or another way to save this data? I've tried Count, ScoreOf, Score, and a number of others but they all come back as invalid. Here is an example body:
And an error I get for the above:
Error I get when trying to post without unit or system:
Is it possible to find a workaround for this through the api? Or do I need to have our client get their backend adjusted to include a unit in their phq9 scores?