public TranslationRequest addCode ( String theSystem , String theCode ) { Validate . notBlank ( theSystem , "theSystem must not be null" ) ; Validate . notBlank ( theCode , "theCode must not be null" ) ; if ( getCodeableConcept ( ) == null ) { setCodeableConcept ( new CodeableConcept ( ) ) ; } getCodeableConcept ( ) . addCoding ( new Coding ( ) . setSystem ( theSystem ) . setCode ( theCode ) ) ; return this ; }
This is just a convenience method that creates a codeableconcept if one doesn t already exist and adds a coding to it