Недействительная аннотация HAPI-FHIR - PullRequest
0 голосов
/ 15 февраля 2019

Я новичок в FHIR, и я хотел бы обратиться к вам за помощью и опытом.Я столкнулся с ошибкой аннотации HAPI-FHIR и не знаю, как ее устранить.

Я получил эту ошибку прямо в Patient

org.hl7.fhir.utilities.xhtml.XhtmlNode не содержит никаких действительных аннотаций HAPI-FHIR

, и мой простой код находится ниже

enter code here public class SimpleRead {

IGenericClient client = null;

public SimpleRead(String baseUrl) {
    FhirContext ctx = FhirContext.forDstu3();
    client = ctx.newRestfulGenericClient(baseUrl);





}

/**
 * Find the patient with the given ID and return the full name as a
 * single string.
 */
public String getNameByPatientID(String id) {


    // Invoke the client



  Patient myPatient =  (Patient)client.read().resource(Patient.class).withId(id).execute();






    return "";
}

Спасибо за помощь!

...