@Test public void getLocationStatus() { Assert.assertEquals( Location.LocationStatus.SUSPENDED, utils.getLocationStatus( "suspended" ) ); }
@Nullable @Override public Enum<?> getLocationStatus( @Nonnull String code ) throws TransformerException { try { return Location.LocationStatus.fromCode( code ); } catch ( FHIRException e ) { throw new TransformerScriptException( "Unknown location status code: " + code, e ); } }
Dstu3LocationDhisToFhirTransformerUtils extends AbstractLocationDhisToFhirTransformerUtils { @Nullable @Override public Enum<?> getLocationStatus( @Nonnull String code ) throws TransformerException { try { return Location.LocationStatus.fromCode( code ); } catch ( FHIRException e ) { throw new TransformerScriptException( "Unknown location status code: " + code, e ); } } }
Dstu3LocationDhisToFhirTransformerUtils extends AbstractLocationDhisToFhirTransformerUtils { @Nullable @Override public Enum<?> getLocationStatus( @Nonnull String code ) throws TransformerException { try { return Location.LocationStatus.fromCode( code ); } catch ( FHIRException e ) { throw new TransformerScriptException( "Unknown location status code: " + code, e ); } } Dstu3LocationDhisToFhirTransformerUtils( @Nonnull ScriptExecutionContext scriptExecutionContext ); }
Dstu3LocationDhisToFhirTransformerUtils extends AbstractLocationDhisToFhirTransformerUtils { @Nullable @Override public Enum<?> getLocationStatus( @Nonnull String code ) throws TransformerException { try { return Location.LocationStatus.fromCode( code ); } catch ( FHIRException e ) { throw new TransformerScriptException( "Unknown location status code: " + code, e ); } } Dstu3LocationDhisToFhirTransformerUtils( @Nonnull ScriptExecutionContext scriptExecutionContext ); @Nonnull @Override Set<FhirVersion> getFhirVersions(); @Nullable @Override Enum<?> getLocationStatus( @Nonnull String code ); }
Dstu3LocationDhisToFhirTransformerUtils extends AbstractLocationDhisToFhirTransformerUtils { @Nullable @Override public Enum<?> getLocationStatus( @Nonnull String code ) throws TransformerException { try { return Location.LocationStatus.fromCode( code ); } catch ( FHIRException e ) { throw new TransformerScriptException( "Unknown location status code: " + code, e ); } } Dstu3LocationDhisToFhirTransformerUtils( @Nonnull ScriptExecutionContext scriptExecutionContext ); @Nonnull @Override Set<FhirVersion> getFhirVersions(); @Nullable @Override Enum<?> getLocationStatus( @Nonnull String code );  }