ansforge / annuaire-sante-fhir-serveur

MIT License
4 stars 0 forks source link

GET PractitionerRole by _id does not answer for too many IDs #45

Open der-brecher opened 4 months ago

der-brecher commented 4 months ago

Description du problème

When requesting PractitionerRoles with a disjunction of internal identifiers the server answers up to a number of 11 IDs. For 12 and more IDs the server never answers. The requests do also request the connected Practitionerand Organizationto be delivered. If sent without the connected entities, the requesting 12 IDs works. Requests with a higher amount of IDs (I tried 22) and without additional entities do not work either.

My expectation was to get results up to the paging limit.

Fichier•s concerné•s

Works (11 IDs with referenced entities): https://gateway.api.esante.gouv.fr/fhir/v1/PractitionerRole?_id=005-114702-168474%2C005-119728-7647245%2C005-119728-7514867%2C005-158230-7684873%2C005-158230-196737%2C005-158230-7685563%2C005-154964-206705%2C005-165640-514798%2C005-171081-7570094%2C005-172301-414193%2C005-172301-414192&_include=PractitionerRole%3Apractitioner&_include=PractitionerRole%3Aorganization

Does not work (12 IDs with referenced entities): https://gateway.api.esante.gouv.fr/fhir/v1/PractitionerRole?_id=005-114702-168474%2C005-119728-7647245%2C005-119728-7514867%2C005-158230-7684873%2C005-158230-196737%2C005-158230-7685563%2C005-154964-206705%2C005-165640-514798%2C005-171081-7570094%2C005-172301-414193%2C005-172301-414192%2C005-283901-4829730&_include=PractitionerRole%3Apractitioner&_include=PractitionerRole%3Aorganization

Works (12 IDs without referenced entities): https://gateway.api.esante.gouv.fr/fhir/v1/PractitionerRole?_id=005-114702-168474%2C005-119728-7647245%2C005-119728-7514867%2C005-158230-7684873%2C005-158230-196737%2C005-158230-7685563%2C005-154964-206705%2C005-165640-514798%2C005-171081-7570094%2C005-172301-414193%2C005-172301-414192%2C005-283901-4829730

Does not work (22 IDs without referencing entities): https://gateway.api.esante.gouv.fr/fhir/v1/PractitionerRole?_id=005-114702-168474%2C005-119728-7647245%2C005-119728-7514867%2C005-158230-7684873%2C005-158230-196737%2C005-158230-7685563%2C005-154964-206705%2C005-165640-514798%2C005-171081-7570094%2C005-172301-414193%2C005-172301-414192%2C005-114702-168474%2C005-119728-7647245%2C005-119728-7514867%2C005-158230-7684873%2C005-158230-196737%2C005-158230-7685563%2C005-154964-206705%2C005-165640-514798%2C005-171081-7570094%2C005-172301-414193%2C005-172301-414192

Solution proposée

Please check if there is some sort of resource limition on fetching the results and fix it. If there is a desired limit for certain requests, please answer with HTTP-4XX and document the limits.