如何使用Hapi FHIR API为从业者获取相应的患者ID?

时间:2019-05-01 18:20:18

标签: hapi hapi-fhir hapi-fhir-android-library

给出我的类的原始JSON数据如下:

"subject": {
    "reference": "Patient/148699"
  },
  "participant": [
    {
      "individual": {
        "reference": "Practitioner/16"
      }
    }
  ],

我能够像这样从业者:

public Bundle getEncounter(String id){
        Bundle bundle = client.search().forResource(Encounter.class)
                .where(new ReferenceClientParam("practitioner").hasId(id))
                .prettyPrint()
                .returnBundle(Bundle.class)
                .execute();
        return bundle;
    }

在这种情况下,我应该如何获得相应的患者ID 148669?

0 个答案:

没有答案