Gravitate-Health / end-user-app-WP4

Issue tracker for WP4
0 stars 0 forks source link

[SRH] Search epi that its not on the IPS Frontend #12

Open joofio opened 7 months ago

joofio commented 7 months ago

Being able to search by text on a repository of epi by the brand name or pharmaceutical product, we may have different (and more complicated levels to implement) like: "1-manual identification - typing brand name or something 2-read code (GTIN, bidimensional) 3-picutre of the box 4-pill or tablet

Focus on 1. then 2. 3 and 4 Out of Scope

joofio commented 7 months ago

@riccardo-leoni-dw i believe this is just frontend right?

RiccardoLeoni commented 6 months ago

@joofio No, we'll need a service to perform the search and retrieve the medicines

joofio commented 6 months ago

I think we can do that with FHIR query alone. I will provide examples to check if that is enough

joofio commented 6 months ago

example:

search by name in productname of MP: GET https://fosps.gravitatehealth.eu/epi/api/fhir/MedicinalProductDefinition?name:contains=biktarvy

Then get the composition

GET https://fosps.gravitatehealth.eu/epi/api/fhir/Composition?subject.identifier=EU/1/18/1289/001&_language=en&category=http://hl7.eu/fhir/ig/gravitate-health/CodeSystem/epicategory-cs|R

If we want to search by code , we do: GET https://fosps.gravitatehealth.eu/epi/api/fhir/MedicinalProductDefinition?identifier=EU/1/18/1289/001

and then the same for composition

but for code, i believe we should talk about how to implement it. I can see it by taking photo of a QR code, code bar, GTIN or wtv but not someone writing the code by hand

What do you think?

joofio commented 3 months ago

the backend is the same as the production/development.

I can put the query as example of a search by string: