Hi Erik, in principle your reasoning is correct, and we could solve merge & demerge problems with some kind of uber-Contribution. However, at the moment the formal modelling only allows for Contributions to be associated with single EHRs. One of the reasons is that EHRs could be separated, due to decease, archiving, one patient moving etc, so a cross-EHR Contribution would then be broken up in some way. I think that at a practical level the correct approach is simply to ensure that certain kinds of updates are handled at the database transaction layer, i.e. either they succeed or they are rolled back. In any case, if health data for person A is found in person B's record, that has to be removed ASAP, and regardless of whether it could be added to A's record at the same time or not....
- thomas beale On 28/01/2010 11:59, Erik Sundvall wrote: > Hi techies! > > A possibly stupid question: > > Can a single CONTRIBUTION ever affect two separate EHRs? > > I understand that a CONTRIBUTION normally only affects a set of > VERSIONED_OBJECTs within a single EHR, but are there any exceptions? > Technically the class CONTRIBUTION can point to any OBJECT_REF, but > what should be allowed for real? > > A possible use case could be when moving some compositions between > records (e.g. due to entry mistakes or temporary records for > unidentified patients). Then one could either create a single > CONTRIBUTION describing the move or two CONTRIBUTIONs: one in the > source record indicating deletion and one in the source record > indicating addition. > > I guess the last one (creatinig two CONTRIBUTIONs) is the preferred > one, but I just want to be sure if the first case is ever allowed. > > Best regards, > Erik Sundvall > erik.sundvall at liu.se http://www.imt.liu.se/~erisu/ Tel: +46-13-286733 > (Mail& tel. recently changed, so please update your contact lists.) > _______________________________________________ > openEHR-technical mailing list > openEHR-technical at openehr.org > http://lists.chime.ucl.ac.uk/mailman/listinfo/openehr-technical > > -- Ocean Informatics *Thomas Beale Chief Technology Officer, Ocean Informatics <http://www.oceaninformatics.com/>* Chair Architectural Review Board, /open/EHR Foundation <http://www.openehr.org/> Honorary Research Fellow, University College London <http://www.chime.ucl.ac.uk/> Chartered IT Professional Fellow, BCS, British Computer Society <http://www.bcs.org.uk/> Health IT blog <http://www.wolandscat.net/> * * -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.openehr.org/mailman/private/openehr-technical_lists.openehr.org/attachments/20100128/1845c61f/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: ocean_full_small.jpg Type: image/jpeg Size: 5828 bytes Desc: not available URL: <http://lists.openehr.org/mailman/private/openehr-technical_lists.openehr.org/attachments/20100128/1845c61f/attachment.jpg>

