@Test public void getSystemCodeValuesNull() { Assert.assertTrue( utils.getSystemCodeValues( null ).isEmpty() ); }
@Nonnull @Override public List<SystemCodeValue> getSystemCodeValues( @Nullable ICompositeType codeableConcept ) { if ( codeableConcept == null ) { return Collections.emptyList(); } final List<SystemCodeValue> result = new ArrayList<>(); for ( final Coding coding : ((CodeableConcept) codeableConcept).getCoding() ) { result.add( new SystemCodeValue( coding.getSystem(), coding.getCode() ) ); } return result; }
R4CodeFhirToDhisTransformerUtils extends AbstractCodeFhirToDhisTransformerUtils { @Nonnull @Override public List<SystemCodeValue> getSystemCodeValues( @Nullable ICompositeType codeableConcept ) { if ( codeableConcept == null ) { return Collections.emptyList(); } final List<SystemCodeValue> result = new ArrayList<>(); for ( final Coding coding : ((CodeableConcept) codeableConcept).getCoding() ) { result.add( new SystemCodeValue( coding.getSystem(), coding.getCode() ) ); } return result; } }
R4CodeFhirToDhisTransformerUtils extends AbstractCodeFhirToDhisTransformerUtils { @Nonnull @Override public List<SystemCodeValue> getSystemCodeValues( @Nullable ICompositeType codeableConcept ) { if ( codeableConcept == null ) { return Collections.emptyList(); } final List<SystemCodeValue> result = new ArrayList<>(); for ( final Coding coding : ((CodeableConcept) codeableConcept).getCoding() ) { result.add( new SystemCodeValue( coding.getSystem(), coding.getCode() ) ); } return result; } R4CodeFhirToDhisTransformerUtils( @Nonnull ScriptExecutionContext scriptExecutionContext,
        @Nonnull CodeRepository codeRepository,
        @Nonnull SystemCodeRepository systemCodeRepository ); }
R4CodeFhirToDhisTransformerUtils extends AbstractCodeFhirToDhisTransformerUtils { @Nonnull @Override public List<SystemCodeValue> getSystemCodeValues( @Nullable ICompositeType codeableConcept ) { if ( codeableConcept == null ) { return Collections.emptyList(); } final List<SystemCodeValue> result = new ArrayList<>(); for ( final Coding coding : ((CodeableConcept) codeableConcept).getCoding() ) { result.add( new SystemCodeValue( coding.getSystem(), coding.getCode() ) ); } return result; } R4CodeFhirToDhisTransformerUtils( @Nonnull ScriptExecutionContext scriptExecutionContext,
        @Nonnull CodeRepository codeRepository,
        @Nonnull SystemCodeRepository systemCodeRepository ); @Nonnull @Override Set<FhirVersion> getFhirVersions(); @Nonnull @Override List<SystemCodeValue> getSystemCodeValues( @Nullable ICompositeType codeableConcept ); @Override @Nullable String getCode( @Nullable ICompositeType codeableConcept, @Nullable String system ); @Override boolean containsMappingCode( @Nullable ICompositeType codeableConcept, @Nullable Object mappingCodes ); @Override boolean containsCode( @Nullable ICompositeType codeableConcept, @Nullable String system, @Nonnull String code ); }
R4CodeFhirToDhisTransformerUtils extends AbstractCodeFhirToDhisTransformerUtils { @Nonnull @Override public List<SystemCodeValue> getSystemCodeValues( @Nullable ICompositeType codeableConcept ) { if ( codeableConcept == null ) { return Collections.emptyList(); } final List<SystemCodeValue> result = new ArrayList<>(); for ( final Coding coding : ((CodeableConcept) codeableConcept).getCoding() ) { result.add( new SystemCodeValue( coding.getSystem(), coding.getCode() ) ); } return result; } R4CodeFhirToDhisTransformerUtils( @Nonnull ScriptExecutionContext scriptExecutionContext,
        @Nonnull CodeRepository codeRepository,
        @Nonnull SystemCodeRepository systemCodeRepository ); @Nonnull @Override Set<FhirVersion> getFhirVersions(); @Nonnull @Override List<SystemCodeValue> getSystemCodeValues( @Nullable ICompositeType codeableConcept ); @Override @Nullable String getCode( @Nullable ICompositeType codeableConcept, @Nullable String system ); @Override boolean containsMappingCode( @Nullable ICompositeType codeableConcept, @Nullable Object mappingCodes ); @Override boolean containsCode( @Nullable ICompositeType codeableConcept, @Nullable String system, @Nonnull String code );  }