|
From: Johan T. <jt...@us...> - 2006-10-13 07:36:03
|
Update of /cvsroot/vienti/vienti/source/se/biobanksregistersyd/vienti/datafiles In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv26691/source/se/biobanksregistersyd/vienti/datafiles Modified Files: DfXML_RBBR.java Log Message: Add support for writing the referral id through the element 'referralId', belonging to the substitution group 'base:supplementarySampleId'. Index: DfXML_RBBR.java =================================================================== RCS file: /cvsroot/vienti/vienti/source/se/biobanksregistersyd/vienti/datafiles/DfXML_RBBR.java,v retrieving revision 1.23 retrieving revision 1.24 diff -u -d -r1.23 -r1.24 --- DfXML_RBBR.java 11 Oct 2006 14:41:23 -0000 1.23 +++ DfXML_RBBR.java 13 Oct 2006 07:35:58 -0000 1.24 @@ -24,6 +24,10 @@ ** liable for any use that may be made of the information contained herein. ** ** $Log$ + ** Revision 1.24 2006/10/13 07:35:58 jtorin + ** Add support for writing the referral id through the element 'referralId', + ** belonging to the substitution group 'base:supplementarySampleId'. + ** ** Revision 1.23 2006/10/11 14:41:23 jtorin ** Handle the element 'rbbr:multiplicity'. ** Adhere to version 0.2 of the RBBR and RBBR-Exchange schemas. @@ -674,6 +678,18 @@ xmlw.writeCharacters("\n"); // + // supplementarySampleId (substitution group) + // + if (dataset.containsKey("rbbr:referralId")) { + xmlw.writeCharacters(" "); + xmlw.writeStartElement(rbbrNS, "referralId"); + xmlw.writeCharacters( + (String) dataset.get("rbbr:referralId")); + xmlw.writeEndElement(); + xmlw.writeCharacters("\n"); + } + + // // samplingDate // xmlw.writeCharacters(" "); |