Buggy code:
public class SyntheticEHRPort implements HealthPortFHIRIntf { static String Height = "h" ; static String Weight = "w" ; static String SystolicBP = "s" ; static String DiastolicBP = "d" ; static String Pulse = "p" ; static String Respiration = "r" ; static String Temperature = "t" ; static String Lab_Results = "l" ; static String weightLOINC = "3141-9" ; static String heightLOINC = "8302-2" ; static String respirationLOINC = "9279-1" ; static String pulseLOINC = "8867-4" ; static String systolicBPLOINC = "8480-6" ; static String diastolicBPLOINC = "8462-4" ; static String temperatureLOINC = "8310-5" ; private DataSource dataSource = null ; public SyntheticEHRPort ( String jndiName ) { } private Observation createObs ( String theId , String nameUri , String nameCode , String nameDisp , String theValue , String theUnit , Date date , String desc ) { } public ArrayList < Observation > getObservations ( HealthPortUserInfo userInfo ) { } public Observation getObservation ( String resourceId ) { } public ArrayList < Observation > getObservationsByCodeSystem ( String codeSystem , String code ) { } private Condition createCondition ( String ID , String subjRef , String nameUri , String nameCode , String nameDisp , Date dateTime ) { Condition condition = new Condition ( ) ; condition . setId ( ID ) ; ResourceReferenceDt subj = new ResourceReferenceDt ( subjRef ) ; condition . setSubject ( subj ) ; nameDisp = StringEscapeUtils . escapeHtml4 ( nameDisp ) ; CodingDt nameCoding = new CodingDt ( nameUri , nameCode ) ; nameCoding . setDisplay ( nameDisp ) ; ArrayList < CodingDt > codingList = new ArrayList < CodingDt > ( ) ; codingList . add ( nameCoding ) ; CodeableConceptDt codeDt = new CodeableConceptDt ( ) ; codeDt . setCoding ( codingList ) ; condition . setCode ( codeDt ) ; condition . setStatus ( CONFIRMED ) ; <START_BUG> condition . setOnset ( new DateDt ( dateTime ) ) ; <END_BUG> String textBody = "<table<seq2seq4repair_space>class=\"hapiPropertyTable\">" ; textBody = textBody + "<tr><td>Problem<//td><td>Onset<seq2seq4repair_space>Date<//td><td>ICD-9<//td><//tr>" ; textBody = ( ( ( ( ( ( ( ( textBody + "<tr><td>" ) + nameDisp ) + "<//td>" ) + "<td>" ) + ( dateTime . toString ( ) ) ) + "<//td>" ) + "<td>" ) + nameCode ) + "<//td><//tr><//table>" ; condition . getText ( ) . setDiv ( textBody ) ; condition . getText ( ) . setStatus ( GENERATED ) ; return condition ; } public ArrayList < Condition > getConditions ( HealthPortUserInfo userInfo ) { } public Condition getCondition ( String resourceId ) { } @ Override public ArrayList < Condition > getConditionsByCodeSystem ( String codeSystem , String code ) { } private MedicationPrescription createMedPrescript ( String ID , String patientRef , String prescriberName , String nameUri , String nameCode , int medId , String nameDisp , String doseQty , String doseUnit , String medSig , double medQty , int medRefill , String status , Date dateTime ) { } public ArrayList < MedicationPrescription > getMedicationPrescriptions ( HealthPortUserInfo userInfo ) { } public MedicationPrescription getMedicationPrescription ( String resourceId ) { } public ArrayList < MedicationPrescription > getMedicationPrescriptionsByType ( String medName ) { } No newline ; at end ; of file ; }

Fix:
condition . setOnset ( new DateTimeDt ( dateTime ) ) ;