@Test public void getObservationStatus() { Assert.assertEquals( Observation.ObservationStatus.AMENDED, utils.getObservationStatus( "amended" ) ); }
@Nullable @Override public Enum<?> getObservationStatus( @Nonnull String code ) throws TransformerException { try { return Observation.ObservationStatus.fromCode( code ); } catch ( FHIRException e ) { throw new TransformerScriptException( "Unknown observation status code: " + code, e ); } }
Dstu3ObservationDhisToFhirTransformerUtils extends AbstractObservationDhisToFhirTransformerUtils { @Nullable @Override public Enum<?> getObservationStatus( @Nonnull String code ) throws TransformerException { try { return Observation.ObservationStatus.fromCode( code ); } catch ( FHIRException e ) { throw new TransformerScriptException( "Unknown observation status code: " + code, e ); } } }
Dstu3ObservationDhisToFhirTransformerUtils extends AbstractObservationDhisToFhirTransformerUtils { @Nullable @Override public Enum<?> getObservationStatus( @Nonnull String code ) throws TransformerException { try { return Observation.ObservationStatus.fromCode( code ); } catch ( FHIRException e ) { throw new TransformerScriptException( "Unknown observation status code: " + code, e ); } } Dstu3ObservationDhisToFhirTransformerUtils( @Nonnull ScriptExecutionContext scriptExecutionContext ); }
Dstu3ObservationDhisToFhirTransformerUtils extends AbstractObservationDhisToFhirTransformerUtils { @Nullable @Override public Enum<?> getObservationStatus( @Nonnull String code ) throws TransformerException { try { return Observation.ObservationStatus.fromCode( code ); } catch ( FHIRException e ) { throw new TransformerScriptException( "Unknown observation status code: " + code, e ); } } Dstu3ObservationDhisToFhirTransformerUtils( @Nonnull ScriptExecutionContext scriptExecutionContext ); @Nonnull @Override Set<FhirVersion> getFhirVersions(); @Nullable @Override Enum<?> getObservationStatus( @Nonnull String code ); }
Dstu3ObservationDhisToFhirTransformerUtils extends AbstractObservationDhisToFhirTransformerUtils { @Nullable @Override public Enum<?> getObservationStatus( @Nonnull String code ) throws TransformerException { try { return Observation.ObservationStatus.fromCode( code ); } catch ( FHIRException e ) { throw new TransformerScriptException( "Unknown observation status code: " + code, e ); } } Dstu3ObservationDhisToFhirTransformerUtils( @Nonnull ScriptExecutionContext scriptExecutionContext ); @Nonnull @Override Set<FhirVersion> getFhirVersions(); @Nullable @Override Enum<?> getObservationStatus( @Nonnull String code );  }