def get_medication_by_ref(self, ref): med_id = ref.split("/")[1] return Medication.read(med_id, self.smart.server).code
def _get_medication_by_ref(ref, smart): med_id = ref.split("/")[1] return Medication.read(med_id, smart.server).code