示例中涉及的jar。
implementation 'ca.uhn.hapi.fhir:hapi-fhir-base:5.3.0' implementation 'ca.uhn.hapi.fhir:hapi-fhir-structures-r4:5.3.0'
3.1 生成FHIR格式XML.
源码
import ca.uhn.fhir.context.FhirContext;
import ca.uhn.fhir.parser.IParser;
import ca.uhn.fhir.rest.api.IVersionSpecificBundleFactory;
import org.hl7.fhir.r4.model.*;
import org.hl7.fhir.r4.model.codesystems.LocationPhysicalType;