@@ -0,0 +1,1299 @@
+package org.endeavourhealth.transform.emis;%0A%0Aimport org.endeavourhealth.core.utility.XmlHelper;%0Aimport org.endeavourhealth.transform.common.TransformException;%0Aimport org.endeavourhealth.transform.emis.openhr.schema.OpenHR001OpenHealthRecord;%0Aimport org.endeavourhealth.transform.emis.openhr.transforms.*;%0Aimport org.hl7.fhir.instance.model.Resource;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0Apublic class OpenHRTransformer%0A%7B%0A    public List%3CResource%3E toFhirFullRecord(String openHRXml) throws TransformException%0A    %7B%0A        OpenHR001OpenHealthRecord openHR = XmlHelper.deserialize(openHRXml, OpenHR001OpenHealthRecord.class);%0A%0A        List%3CResource%3E result = new ArrayList%3C%3E();%0A%0A        if (openHR.getAdminDomain() != null)%0A        %7B%0A            result.addAll(OrganisationTransformer.transform(openHR.getAdminDomain().getOrganisation()));%0A            result.addAll(LocationTransformer.transform(openHR.getAdminDomain()));%0A            result.addAll(PractitionerTransformer.transform(openHR.getAdminDomain()));%0A            result.add(PatientTransformer.transform(openHR.getAdminDomain()));%0A        %7D%0A%0A        if (openHR.getHealthDomain() != null)%0A        %7B%0A            result.addAll(HealthDomainTransformer.transform(openHR.getHealthDomain()));%0A        %7D%0A%0A        return result;%0A    %7D%0A%7D%0A

Add OpenHRTransformer