@Test public void getStatus() { Assert.assertEquals( Encounter.EncounterStatus.ARRIVED, utils.getEncounterStatus( "arrived" ) ); }
@Nullable @Override public Enum<?> getEncounterStatus( @Nonnull String code ) throws TransformerException { try { return Encounter.EncounterStatus.fromCode( code ); } catch ( FHIRException e ) { throw new TransformerScriptException( "Unknown encounter status code: " + code, e ); } }
R4EncounterDhisToFhirTransformerUtils extends AbstractEncounterDhisToFhirTransformerUtils { @Nullable @Override public Enum<?> getEncounterStatus( @Nonnull String code ) throws TransformerException { try { return Encounter.EncounterStatus.fromCode( code ); } catch ( FHIRException e ) { throw new TransformerScriptException( "Unknown encounter status code: " + code, e ); } } }
R4EncounterDhisToFhirTransformerUtils extends AbstractEncounterDhisToFhirTransformerUtils { @Nullable @Override public Enum<?> getEncounterStatus( @Nonnull String code ) throws TransformerException { try { return Encounter.EncounterStatus.fromCode( code ); } catch ( FHIRException e ) { throw new TransformerScriptException( "Unknown encounter status code: " + code, e ); } } R4EncounterDhisToFhirTransformerUtils( @Nonnull ScriptExecutionContext scriptExecutionContext ); }
R4EncounterDhisToFhirTransformerUtils extends AbstractEncounterDhisToFhirTransformerUtils { @Nullable @Override public Enum<?> getEncounterStatus( @Nonnull String code ) throws TransformerException { try { return Encounter.EncounterStatus.fromCode( code ); } catch ( FHIRException e ) { throw new TransformerScriptException( "Unknown encounter status code: " + code, e ); } } R4EncounterDhisToFhirTransformerUtils( @Nonnull ScriptExecutionContext scriptExecutionContext ); @Nonnull @Override Set<FhirVersion> getFhirVersions(); @Nullable @Override Enum<?> getEncounterStatus( @Nonnull String code ); }
R4EncounterDhisToFhirTransformerUtils extends AbstractEncounterDhisToFhirTransformerUtils { @Nullable @Override public Enum<?> getEncounterStatus( @Nonnull String code ) throws TransformerException { try { return Encounter.EncounterStatus.fromCode( code ); } catch ( FHIRException e ) { throw new TransformerScriptException( "Unknown encounter status code: " + code, e ); } } R4EncounterDhisToFhirTransformerUtils( @Nonnull ScriptExecutionContext scriptExecutionContext ); @Nonnull @Override Set<FhirVersion> getFhirVersions(); @Nullable @Override Enum<?> getEncounterStatus( @Nonnull String code );  }