filterXml.setDescription("XML");
chooser.setFileFilter(filterXml);
int returnVal = chooser.showDialog(new JFrame(), "Import HealthRecord");
if (returnVal == JFileChooser.APPROVE_OPTION) {
String curFile = chooser.getSelectedFile().getAbsolutePath();
curFile = curFile.replace('\\', '/');
HealthRecord importedHealthRecord = getHealthRecordDataFromDocument(parseXMLFile(curFile));
importedHealthRecord.setIdentifier(ObjectID.getNewOId());
Hashtable healthRecordData = new Hashtable();
healthRecordData.put(HealthRecordIndex.ID, importedHealthRecord.getIdentifier());
healthRecordData.put(HealthRecordIndex.NAME, importedHealthRecord.getName());