예제 #1
0
def _get_prescriptions(smart):
    bundle = MedicationOrder.where({
        'patient': smart.patient_id
    }).perform(smart.server)
    pres = [be.resource for be in bundle.entry
            ] if bundle is not None and bundle.entry is not None else None
    if pres is not None and len(pres) > 0:
        return pres
    return None
예제 #2
0
def _get_prescriptions(smart):
    bundle = MedicationOrder.where({'patient': smart.patient_id}).perform(smart.server)
    pres = [be.resource for be in bundle.entry] if bundle is not None and bundle.entry is not None else None
    if pres is not None and len(pres) > 0:
        return pres
    return None
예제 #3
0
def _get_prescriptions(smart):
    return MedicationOrder.where({'patient': smart.patient_id}).perform(smart.server).entry
예제 #4
0
def _get_prescriptions(smart):
    return MedicationOrder.where({"patient": smart.patient_id}).perform(smart.server).entry