@@ -47,8 +47,9 @@ public class FhirContactPointMapCsvParser extends CsvParser<FhirContactPointMap,
4747 private final FhirContactPointMapService fhirContactPointMapService ;
4848
4949 @ Autowired
50- protected FhirContactPointMapCsvParser (FhirContactPointMapService fhirContactPointMapService ,BaseLineProcessor <FhirContactPointMap > lineProcessor ,
51- LocationService locationService , PersonService personService , ProviderService providerService ) {
50+ protected FhirContactPointMapCsvParser (FhirContactPointMapService fhirContactPointMapService ,
51+ BaseLineProcessor <FhirContactPointMap > lineProcessor , LocationService locationService , PersonService personService ,
52+ ProviderService providerService ) {
5253 super (lineProcessor );
5354 this .fhirContactPointMapService = fhirContactPointMapService ;
5455 this .locationService = locationService ;
@@ -60,8 +61,7 @@ protected FhirContactPointMapCsvParser(FhirContactPointMapService fhirContactPoi
6061 public FhirContactPointMap bootstrap (CsvLine line ) throws IllegalArgumentException {
6162 FhirContactPointMap contactPointMap = null ;
6263 if (line .getUuid () != null ) {
63- contactPointMap = fhirContactPointMapService .getFhirContactPointMapByUuid (line .getUuid ())
64- .orElse (null );
64+ contactPointMap = fhirContactPointMapService .getFhirContactPointMapByUuid (line .getUuid ()).orElse (null );
6565 }
6666
6767 if (contactPointMap != null ) {
@@ -76,21 +76,21 @@ public FhirContactPointMap bootstrap(CsvLine line) throws IllegalArgumentExcepti
7676
7777 if (personAttributeType == null ) {
7878 throw new IllegalArgumentException ("PersonAttributeType " + attributeType
79- + " does not exist. Please ensure your Initializer configuration contains this attribute type." );
79+ + " does not exist. Please ensure your Initializer configuration contains this attribute type." );
8080 }
8181
8282 contactPointMap = fhirContactPointMapService .getFhirContactPointMapForPersonAttributeType (personAttributeType )
83- .orElse (null );
83+ .orElse (null );
8484 } else {
8585 BaseAttributeType <?> baseAttributeType = getBaseAttributeType (attributeTypeDomain , attributeType );
8686
8787 if (baseAttributeType == null ) {
8888 throw new IllegalArgumentException (
89- "Could not find attribute type " + attributeType + " for attribute domain " + attributeTypeDomain );
89+ "Could not find attribute type " + attributeType + " for attribute domain " + attributeTypeDomain );
9090 }
9191
9292 contactPointMap = fhirContactPointMapService .getFhirContactPointMapForAttributeType (baseAttributeType )
93- .orElse (null );
93+ .orElse (null );
9494 }
9595
9696 if (contactPointMap != null ) {
@@ -99,7 +99,6 @@ public FhirContactPointMap bootstrap(CsvLine line) throws IllegalArgumentExcepti
9999
100100 return new FhirContactPointMap ();
101101 }
102-
103102
104103 @ Override
105104 public FhirContactPointMap save (FhirContactPointMap instance ) {
0 commit comments