use of uk.nhs.adaptors.scr.models.GpSummary in project summary-care-record-api by NHSDigital.
the class BundleMapper method map.
@LogExecutionTime
public String map(Bundle bundle, String nhsdAsid) {
try {
GpSummary gpSummary = GpSummary.fromBundle(bundle, nhsdAsid);
gpSummary.setPartyIdFrom(scrConfiguration.getPartyIdFrom());
gpSummary.setPartyIdTo(scrConfiguration.getPartyIdTo());
gpSummary.setNhsdAsidTo(scrConfiguration.getNhsdAsidTo());
return TemplateUtils.fillTemplate(REPC_RM150007UK05_TEMPLATE, gpSummary);
} catch (Exception ex) {
throw new FhirMappingException(ex.getMessage());
}
}
Aggregations