@@ -230,12 +230,12 @@ private TerminologyCapabilities buildTerminologyCapabilities() {
230230 TerminologyCapabilities .Implementation impl ;
231231 if (customTerminologyImpl != null ) {
232232 impl = TerminologyCapabilities .Implementation .builder ()
233- .description (string ( buildDescription ) )
233+ .description (buildDescription )
234234 .url (org .linuxforhealth .fhir .model .type .Url .of (customTerminologyImpl ))
235235 .build ();
236236 } else {
237237 impl = TerminologyCapabilities .Implementation .builder ()
238- .description (string ( buildDescription ) )
238+ .description (buildDescription )
239239 .build ();
240240 }
241241
@@ -244,13 +244,13 @@ private TerminologyCapabilities buildTerminologyCapabilities() {
244244 .experimental (org .linuxforhealth .fhir .model .type .Boolean .TRUE )
245245 .date (DateTime .now (ZoneOffset .UTC ))
246246 .kind (CapabilityStatementKind .INSTANCE )
247- .version (string ( buildInfo .getBuildVersion () ))
248- .name ( string ( FHIR_SERVER_NAME ) )
247+ .version (buildInfo .getBuildVersion ())
248+ .title ( FHIR_SERVER_NAME )
249249 .description (Markdown .of (buildDescription ))
250250 .copyright (Markdown .of (FHIR_COPYRIGHT ))
251251 .software (TerminologyCapabilities .Software .builder ()
252- .name (string ( FHIR_SERVER_NAME ) )
253- .version (string ( buildInfo .getBuildVersion () ))
252+ .name (FHIR_SERVER_NAME )
253+ .version (buildInfo .getBuildVersion ())
254254 .id (buildInfo .getBuildId ())
255255 .build ())
256256 .implementation (impl )
@@ -284,7 +284,7 @@ private List<TerminologyCapabilities.CodeSystem> buildCodeSystem() {
284284 List <TerminologyCapabilities .CodeSystem .Version > versions = versionMap .computeIfAbsent (url , k -> new ArrayList <>());
285285 if (!Version .NO_VERSION .equals (version )) {
286286 versions .add (TerminologyCapabilities .CodeSystem .Version .builder ()
287- .code (string ( version .toString () ))
287+ .code (version .toString ())
288288 .isDefault (registryResource .isDefaultVersion () ? org .linuxforhealth .fhir .model .type .Boolean .TRUE : null )
289289 .build ());
290290 }
@@ -516,7 +516,7 @@ private CapabilityStatement buildCapabilityStatement(FHIRVersionParam fhirVersio
516516 .code (Code .of (smartEnabled ? "SMART-on-FHIR" : "OAuth" ))
517517 .system (Uri .of ("http://terminology.hl7.org/CodeSystem/restful-security-service" ))
518518 .build ())
519- .text (smartEnabled ? string ( "OAuth" ) : string ( "OAuth2 using SMART-on-FHIR profile (see http://docs.smarthealthit.org)" ) )
519+ .text (smartEnabled ? "OAuth" : "OAuth2 using SMART-on-FHIR profile (see http://docs.smarthealthit.org)" )
520520 .build ())
521521 .extension (buildOAuthURIsExtension (authURL , tokenURL , regURL , manageURL , introspectURL , revokeURL ));
522522 }
@@ -549,12 +549,12 @@ private CapabilityStatement buildCapabilityStatement(FHIRVersionParam fhirVersio
549549 CapabilityStatement .Implementation impl ;
550550 if (customImpl != null ) {
551551 impl = CapabilityStatement .Implementation .builder ()
552- .description (string ( buildDescription ) )
552+ .description (buildDescription )
553553 .url (org .linuxforhealth .fhir .model .type .Url .of (customImpl ))
554554 .build ();
555555 } else {
556556 impl = CapabilityStatement .Implementation .builder ()
557- .description (string ( buildDescription ) )
557+ .description (buildDescription )
558558 .build ();
559559 }
560560
@@ -568,13 +568,13 @@ private CapabilityStatement buildCapabilityStatement(FHIRVersionParam fhirVersio
568568 .patchFormat (Code .of (FHIRMediaType .APPLICATION_JSON_PATCH ),
569569 Code .of (FHIRMediaType .APPLICATION_FHIR_JSON ),
570570 Code .of (FHIRMediaType .APPLICATION_FHIR_XML ))
571- .version (string ( buildInfo .getBuildVersion () ))
572- .name ( string ( FHIR_SERVER_NAME ) )
571+ .version (buildInfo .getBuildVersion ())
572+ .title ( FHIR_SERVER_NAME )
573573 .description (Markdown .of (buildDescription ))
574574 .copyright (Markdown .of (FHIR_COPYRIGHT ))
575575 .software (CapabilityStatement .Software .builder ()
576- .name (string ( FHIR_SERVER_NAME ) )
577- .version (string ( buildInfo .getBuildVersion () ))
576+ .name (FHIR_SERVER_NAME )
577+ .version (buildInfo .getBuildVersion ())
578578 .id (buildInfo .getBuildId ())
579579 .build ())
580580 .rest (rest )
@@ -764,25 +764,25 @@ private CapabilityStatement addExtensionElements(CapabilityStatement capabilityS
764764 List <Extension > extentions = new ArrayList <>();
765765 Extension extension = Extension .builder ()
766766 .url (EXT_BASE + "defaultTenantId" )
767- .value (string ( fhirConfig .getStringProperty (FHIRConfiguration .PROPERTY_DEFAULT_TENANT_ID , FHIRConfiguration .DEFAULT_TENANT_ID ) ))
767+ .value (fhirConfig .getStringProperty (FHIRConfiguration .PROPERTY_DEFAULT_TENANT_ID , FHIRConfiguration .DEFAULT_TENANT_ID ))
768768 .build ();
769769 extentions .add (extension );
770770
771771 extension = Extension .builder ()
772772 .url (EXT_BASE + "websocketNotificationsEnabled" )
773- .value (org . linuxforhealth . fhir . model . type . Boolean . of ( fhirConfig .getBooleanProperty (FHIRConfiguration .PROPERTY_WEBSOCKET_ENABLED , Boolean .FALSE ) ))
773+ .value (fhirConfig .getBooleanProperty (FHIRConfiguration .PROPERTY_WEBSOCKET_ENABLED , Boolean .FALSE ))
774774 .build ();
775775 extentions .add (extension );
776776
777777 extension = Extension .builder ()
778778 .url (EXT_BASE + "kafkaNotificationsEnabled" )
779- .value (org . linuxforhealth . fhir . model . type . Boolean . of ( fhirConfig .getBooleanProperty (FHIRConfiguration .PROPERTY_KAFKA_ENABLED , Boolean .FALSE ) ))
779+ .value (fhirConfig .getBooleanProperty (FHIRConfiguration .PROPERTY_KAFKA_ENABLED , Boolean .FALSE ))
780780 .build ();
781781 extentions .add (extension );
782782
783783 extension = Extension .builder ()
784784 .url (EXT_BASE + "natsNotificationsEnabled" )
785- .value (org . linuxforhealth . fhir . model . type . Boolean . of ( fhirConfig .getBooleanProperty (FHIRConfiguration .PROPERTY_NATS_ENABLED , Boolean .FALSE ) ))
785+ .value (fhirConfig .getBooleanProperty (FHIRConfiguration .PROPERTY_NATS_ENABLED , Boolean .FALSE ))
786786 .build ();
787787 extentions .add (extension );
788788
@@ -793,7 +793,7 @@ private CapabilityStatement addExtensionElements(CapabilityStatement capabilityS
793793
794794 extension = Extension .builder ()
795795 .url (EXT_BASE + "notificationResourceTypes" )
796- .value (string ( notificationResourceTypes ) )
796+ .value (notificationResourceTypes )
797797 .build ();
798798 extentions .add (extension );
799799
@@ -809,13 +809,13 @@ private CapabilityStatement addExtensionElements(CapabilityStatement capabilityS
809809
810810 extension = Extension .builder ()
811811 .url (EXT_BASE + "auditLogServiceName" )
812- .value (string ( auditLogServiceName ) )
812+ .value (auditLogServiceName )
813813 .build ();
814814 extentions .add (extension );
815815
816816 extension = Extension .builder ()
817817 .url (EXT_BASE + "persistenceType" )
818- .value (string ( getPersistenceImpl ().getClass ().getSimpleName () ))
818+ .value (getPersistenceImpl ().getClass ().getSimpleName ())
819819 .build ();
820820 extentions .add (extension );
821821
0 commit comments