コード例 #1
0
ファイル: flask_app.py プロジェクト: yanif/client-py
def _get_prescriptions(smart):
    bundle = MedicationRequest.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
ファイル: flask_app.py プロジェクト: glow-mdsol/client-py
def _get_prescriptions(smart):
    bundle = MedicationRequest.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 MedicationRequest.where({
        'patient': smart.patient_id
    }).perform(smart.server).entry