add test and patientExtended final
add javadoc comments