Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register
Show
Ignore:
Timestamp:
04/22/08 18:44:35 (9 months ago)
Author:
bwolfe
Message:

Updating hl7 handler to propagate saves to obs groupings

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • openmrs/trunk/src/api/org/openmrs/hl7/handler/ORUR01Handler.java

    r3847 r3997  
    226226                                        Obs obs = parseObs(encounter, obx, obr); 
    227227                                        if (obs != null) { 
     228                                                 
    228229                                                // set the obsGroup on this obs 
    229230                                                if (obsGrouper != null) 
     231                                                        // set the obs to the group.  This assumes the group is already 
     232                                                        // on the encounter and that when the encounter is saved it will  
     233                                                        // propagate to the children obs 
    230234                                                        obsGrouper.addGroupMember(obs); 
    231235                                                 
    232                                                 // set this obs on the encounter object that we 
    233                                                 // will be saving later 
    234                                                 log.debug("Obs is not null. Adding to encounter object"); 
    235                                                 encounter.addObs(obs); 
    236                                                 log.debug("Done with this obs"); 
     236                                                else { 
     237                                                        // set this obs on the encounter object that we 
     238                                                        // will be saving later 
     239                                                        log.debug("Obs is not null. Adding to encounter object"); 
     240                                                        encounter.addObs(obs); 
     241                                                        log.debug("Done with this obs"); 
     242                                                } 
    237243                                        } 
    238244                                } catch (HL7Exception e) {