/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated NOT */ public static void addPatient(ClinicalDocument clinicalDocument, Patient patient) { RecordTarget recordTarget = CDAFactory.eINSTANCE.createRecordTarget(); PatientRole patientRole = CDAFactory.eINSTANCE.createPatientRole(); recordTarget.setPatientRole(patientRole); patientRole.setPatient(patient); clinicalDocument.getRecordTargets().add(recordTarget); }
patientRole.setPatient(patient); PN name = DatatypesFactory.eINSTANCE.createPN();
patientRole.setPatient(patient);