arkhn / jpyltime

Wrapper of FHIR2Dataset with an API for Demoët
1 stars 0 forks source link

[HAPI] Investigate why _list doesnt seem to work #12

Open MiskoG opened 2 years ago

MiskoG commented 2 years ago

Prosper and Matthieu his dev are trying to integrate Cohort360 in Toulouse on our FHIR API.

They reached us because they want to use List ressource (I asked them why) but unfortunately the search /Patient?_list=... does not seem to work.

HAPI says it is supported since 5.3.3 version. HAPI in Toulouse and sandbox is 5.7.0.

I tried myself by creating a List with 3 patients

{
    "resourceType": "List",
    "id": "21302",
    "meta": {
        "versionId": "2",
        "lastUpdated": "2022-07-12T10:08:50.639+00:00",
        "source": "#opgqLcWHXBNpwpvN"
    },
    "status": "current",
    "mode": "snapshot",
    "entry": [
        {
            "item": {
                "reference": "Patient/d2eb38a2-032b-51db-ae1e-f855a5cdbd99",
                "type": "Patient"
            }
        },
        {
            "item": {
                "reference": "Patient/316a19ec-9c51-5f8e-b7c1-247938fc13ba",
                "type": "Patient"
            }
        },
        {
            "item": {
                "reference": "Patient/52e97967-0dc3-5d9a-b80e-1d789faf80e4",
                "type": "Patient"
            }
        }
    ]
}

But when I do https://sandbox.arkhn.com/hapi/fhir/Patient?_list=21302 I get all the server patients and not only the 3 included in the List.

MiskoG commented 2 years ago

Matthieu (the dev working with Prosper) did file an issue on hapi's repository https://github.com/hapifhir/hapi-fhir/issues/3761

MiskoG commented 2 years ago

@tevariou Do you have an idea, am I using the search or List creation properly ?

tevariou commented 2 years ago

I think so, it looks like a bug :/