Closed joofio closed 1 month ago
following this discussion: https://github.com/orgs/Gravitate-Health/discussions/7
I transfer this issue to the repo that currently has the lenses :)
@joofio maybe I'm having a concept error, and kinda looks basic but... This is all the info that the IPS have. Where are supposed to be the codes related to each condition that the patient has?
https://gravitate-health.lst.tfo.upm.es/ips/api/fhir/Patient/pedro-patient
this is not the ips. that is the patient resource.
check IPS here: https://gravitate-health.lst.tfo.upm.es/ips/api/fhir/Patient/$summary?identifier=ips-2 or for pedro: https://gravitate-health.lst.tfo.upm.es/ips/api/fhir/Patient/$summary?identifier=Pedro-1
The list of IPSs we have: https://build.fhir.org/ig/hl7-eu/gravitate-health-ips/artifacts.html
as I said, a concept error by my side 👍🏻 thanks joao
Condition Lens finished - you can see the code here and it's connected meanwhile I'm thinking a way to make it more human readable. Eventually, we will create a "development library" to have all the logic that is repeated across lenses out of them. You can of course give feedback @joofio. Should I deploy it to dev?
yes it is better to deploy so i can test properly.
deployed :D
the allergy, intolerance, should be similar...
Almost the same but looking for intolerance instead of conditions yep
@joofio have you tried the lens? Is this what you expect?
A quick update: Pedro has no Allergy nor Intolerance.
try Helen https://build.fhir.org/ig/hl7-eu/gravitate-health-ips/Bundle-gravitate-helen.html will test the other now
@joofio have you tried the lens? Is this what you expect?
link to do it? like name of the lens?
@joofio have you tried the lens? Is this what you expect?
link to do it? like name of the lens?
lens-selector-mvp2_conditions
Should we unify Allergy and Intolerance lenses? In FHIR it's the same kind of resource....
yes merge them
okay!
Edit: OMG I said typo instead of kind. Mondays are hard
should this work ?
### condition lens
POST https://gravitate-health.lst.tfo.upm.es/focusing/focus/bundlepackageleaflet-es-94a96e39cfdcd8b378d12dd4063065f9?preprocessors=preprocessing-service-manual&lenses=lens-selector-mvp2_conditions&patientIdentifier=alicia-1
getting 500
let me check why is this happening
In 5 mins it's fixed
Fixed
can we send a preprocessed epi?instead or raw
Of course, the preprocessor manual ignores the ePI if its preprocessed
doesnt seem to be doing that.uploaded a test so you can try. https://github.com/hl7-eu/gravitate-health/blob/2c9cb410cbe69a2031aad191c76648d82be22e30/tests/lenses.http#L12
or did you mean a identifier for a preprocessed? and not the epi?
But there are no codes that Alicia and the preprocessed biktarvy shares, right? Or I'm wrong?
with the preprocessed in the folder, they do. that why i wanted to send a preprocessed epi
Ah! You mean in the body?
Ah! You mean in the body?
yes
Then the request you are trying is wrong. It's POST https://gravitate-health.lst.tfo.upm.es/focusing/focus/?preprocessors=preprocessing-service-manual&lenses=lens-selector-mvp2_conditions&patientIdentifier=alicia-1
and the example epi in the body like this
{
"epi": <full ePI JSON>"
}
BTW, it doesn't work this way neither because it tries to preprocess it again. I will have to take a look at the Focusing Manager
yeah it doesnt work like this. let me change the preprocessed one on the server to test
I'm 100% sure that this is due to the change we made to display the errors during the process on the headers in the response. With a quick change it should work because that way is meant to work. (if preprocessed on body, ignore preprocessor)
ok please check that if you can. having he possibility of sending epi data will help testing
I will write here when I have it working 👍🏻
Try now :) @joofio
Also, I discovered that the "Accept": text/html was not working and it's also fixed
Also, I discovered that the "Accept": text/html was not working and it's also fixed
doesnt seem like it . with content-type: application/json
returns the html.
EDIT: it is working
POST https://gravitate-health.lst.tfo.upm.es/focusing/focus/?preprocessors=preprocessing-service-manual&lenses=lens-selector-mvp2_conditions&patientIdentifier=alicia-1
content-type: application/json
Accept: application/json
Nice!
let me do more testing with other codes to check the full compliance. but its looking good
EDIT:
the system changes and the highlight still applies. the match should be code+system
if you think it can take some time, I would prefer to solve this after all the other lenses.
cc @aalonsolopez (made edit, not sure you get the notification)
meanwhile, by the end of this week, I expect to have all the other lenses working too
let me do more testing with other codes to check the full compliance. but its looking good
EDIT:
the system changes and the highlight still applies. the match should be code+system
if you think it can take some time, I would prefer to solve this after all the other lenses.
cc @aalonsolopez (made edit, not sure you get the notification)
I think I understand it
Now you can try. I think it's what you want right?
i tested and didnt work...
okay I forgot to test a thing. let me fix it fast
Sorry, now it works (I've tested myself). Try changing the system. IDK why the automatic deploy is not working properly.
now it works!
Go for the next lenses
TY!