@Test public void testConvertFatal() { Assert.assertEquals( OperationOutcome.IssueSeverity.FATAL, provider.convert( FhirOperationIssueSeverity.FATAL ) ); }
@Nonnull protected OperationOutcome.IssueSeverity convert( @Nonnull FhirOperationIssueSeverity issueSeverity ) { switch ( issueSeverity ) { case INFO: return OperationOutcome.IssueSeverity.INFORMATION; case WARN: return OperationOutcome.IssueSeverity.WARNING; case ERROR: return OperationOutcome.IssueSeverity.ERROR; case FATAL: return OperationOutcome.IssueSeverity.FATAL; default: throw new AssertionError( "Unhandled issue severity: " + issueSeverity ); } }
Dstu3BundleResourceProvider extends AbstractBundleResourceProvider<Bundle> { @Nonnull protected OperationOutcome.IssueSeverity convert( @Nonnull FhirOperationIssueSeverity issueSeverity ) { switch ( issueSeverity ) { case INFO: return OperationOutcome.IssueSeverity.INFORMATION; case WARN: return OperationOutcome.IssueSeverity.WARNING; case ERROR: return OperationOutcome.IssueSeverity.ERROR; case FATAL: return OperationOutcome.IssueSeverity.FATAL; default: throw new AssertionError( "Unhandled issue severity: " + issueSeverity ); } } }
Dstu3BundleResourceProvider extends AbstractBundleResourceProvider<Bundle> { @Nonnull protected OperationOutcome.IssueSeverity convert( @Nonnull FhirOperationIssueSeverity issueSeverity ) { switch ( issueSeverity ) { case INFO: return OperationOutcome.IssueSeverity.INFORMATION; case WARN: return OperationOutcome.IssueSeverity.WARNING; case ERROR: return OperationOutcome.IssueSeverity.ERROR; case FATAL: return OperationOutcome.IssueSeverity.FATAL; default: throw new AssertionError( "Unhandled issue severity: " + issueSeverity ); } } Dstu3BundleResourceProvider( @Nonnull FhirClientResourceRepository fhirClientResourceRepository, @Nonnull FhirClientSystemRepository fhirClientSystemRepository,
        @Nonnull FhirRepository fhirRepository, @Nonnull DhisRepository dhisRepository, @Nonnull RequestCacheService requestCacheService ); }
Dstu3BundleResourceProvider extends AbstractBundleResourceProvider<Bundle> { @Nonnull protected OperationOutcome.IssueSeverity convert( @Nonnull FhirOperationIssueSeverity issueSeverity ) { switch ( issueSeverity ) { case INFO: return OperationOutcome.IssueSeverity.INFORMATION; case WARN: return OperationOutcome.IssueSeverity.WARNING; case ERROR: return OperationOutcome.IssueSeverity.ERROR; case FATAL: return OperationOutcome.IssueSeverity.FATAL; default: throw new AssertionError( "Unhandled issue severity: " + issueSeverity ); } } Dstu3BundleResourceProvider( @Nonnull FhirClientResourceRepository fhirClientResourceRepository, @Nonnull FhirClientSystemRepository fhirClientSystemRepository,
        @Nonnull FhirRepository fhirRepository, @Nonnull DhisRepository dhisRepository, @Nonnull RequestCacheService requestCacheService ); @Nonnull @Override FhirVersion getFhirVersion(); @Nonnull @Transaction Bundle process( @Nonnull RequestDetails requestDetails, @TransactionParam Bundle bundle ); }
Dstu3BundleResourceProvider extends AbstractBundleResourceProvider<Bundle> { @Nonnull protected OperationOutcome.IssueSeverity convert( @Nonnull FhirOperationIssueSeverity issueSeverity ) { switch ( issueSeverity ) { case INFO: return OperationOutcome.IssueSeverity.INFORMATION; case WARN: return OperationOutcome.IssueSeverity.WARNING; case ERROR: return OperationOutcome.IssueSeverity.ERROR; case FATAL: return OperationOutcome.IssueSeverity.FATAL; default: throw new AssertionError( "Unhandled issue severity: " + issueSeverity ); } } Dstu3BundleResourceProvider( @Nonnull FhirClientResourceRepository fhirClientResourceRepository, @Nonnull FhirClientSystemRepository fhirClientSystemRepository,
        @Nonnull FhirRepository fhirRepository, @Nonnull DhisRepository dhisRepository, @Nonnull RequestCacheService requestCacheService ); @Nonnull @Override FhirVersion getFhirVersion(); @Nonnull @Transaction Bundle process( @Nonnull RequestDetails requestDetails, @TransactionParam Bundle bundle );  }