Beispiel #1
0
 def test_unknown_entry(self):
     element = etree.XML("""<entry>
       <title>UnExPeCtEd</title>
       <content type="application/vnd.atomfeed+xml">
         <![CDATA[/openmrs/ws/rest/v1/UNKNOWN/0f54fe40-89af-4412-8dd4-5eaebe8684dc]]>
       </content>
     </entry>""")
     with self.assertRaises(ValueError):
         get_encounter_uuid(element)
Beispiel #2
0
 def test_bed_assignment(self):
     element = etree.XML("""<entry>
       <title>Bed-Assignment</title>
       <content type="application/vnd.atomfeed+xml">
         <![CDATA[/openmrs/ws/rest/v1/bedPatientAssignment/fed0d6f9-e76c-4a8e-a10d-c8e98c7d258f?v=custom:(uuid,startDatetime,endDatetime,bed,patient,encounter:(uuid,encounterDatetime,encounterType:(uuid,name),visit:(uuid,startDatetime,visitType)))]]>
       </content>
     </entry>""")
     encounter_uuid = get_encounter_uuid(element)
     self.assertIsNone(encounter_uuid)