New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bundle batch GET call not returning expected response #822

Closed
manjusampath opened this Issue Jan 10, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@manjusampath

manjusampath commented Jan 10, 2018

  1. Created patient with id -P3000254749. http://fhirtest.uhn.ca/baseDstu3/Patient/P3000254749

  2. Created few medications.
    http://fhirtest.uhn.ca/baseDstu3/Medication/MED19795 - NDC code: 00093-0058-05
    http://fhirtest.uhn.ca/baseDstu3/Medication/MED20344 - NDC code: 50580-0449-23
    http://fhirtest.uhn.ca/baseDstu3/Medication/MED109626 - NDC code: 00555-0833-02

  3. Created one MedicationRequest for the each of the above Medications.
    http://fhirtest.uhn.ca/baseDstu3/MedicationRequest?patient=P3000254749

  4. When we use bundle batch to make a GET call of MedicationRequest with MRN and NDC code.
    For the below call we expect only one MedicationRequest in the response, but it gives back all 3 MedicationRequest of the patient in the response
    URL: http://fhirtest.uhn.ca/baseDstu3/
    Method: POST
    Request Body:
    {
    "resourceType": "Bundle",
    "id": "bundle-batch",
    "type": "batch",
    "entry": [

     {
     	"fullUrl": "urn:uuid:61ebe359-bfdc-4613-8bf2-c5e300945f0z",
     	"request": {
     		"method": "GET",
     		"url": "MedicationRequest?intent=plan,order&medication.code=50580-0449-23&patient=P3000254749"
     	}
     }
    

    ]
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment