Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 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)
Exemplo n.º 3
0
 def create(self, request):
     request_data = json.loads(request.data)
     bulk_create_from_gloss_response(request_data)
     return Response("ok")