def run_create(self, some_dict, hospital_number="1"):
     episode = self.patient.create_episode()
     expected_request = dict(
         messages=some_dict,
         hospital_number="1"
     )
     gloss_api.bulk_create_from_gloss_response(expected_request, episode)
 def run_create(self, some_dict, hospital_number="12312312"):
     expected_request = dict(
         messages=some_dict,
         hospital_number=hospital_number
     )
     gloss_api.bulk_create_from_gloss_response(expected_request)
Example #3
0
 def create(self, request):
     request_data = json.loads(request.data)
     bulk_create_from_gloss_response(request_data)
     return Response("ok")