Search in sources :

Example 1 with GpSummary

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());
    }
}
Also used : GpSummary(uk.nhs.adaptors.scr.models.GpSummary) FhirMappingException(uk.nhs.adaptors.scr.exceptions.FhirMappingException) FhirMappingException(uk.nhs.adaptors.scr.exceptions.FhirMappingException) LogExecutionTime(uk.nhs.adaptors.scr.logging.LogExecutionTime)

Aggregations

FhirMappingException (uk.nhs.adaptors.scr.exceptions.FhirMappingException)1 LogExecutionTime (uk.nhs.adaptors.scr.logging.LogExecutionTime)1 GpSummary (uk.nhs.adaptors.scr.models.GpSummary)1