org.openehr.rm.composition
Class EventContext

java.lang.Object
  extended by org.openehr.rm.RMObject
      extended by org.openehr.rm.composition.EventContext
All Implemented Interfaces:
java.io.Serializable

public final class EventContext
extends RMObject

Documents the clinical context of the clinical session (or encounter). The context information recorded here are independent of the attributes recorded in the version audit, which document the system interaction context, ie the context of a user interacting with the health record system. Clinical sessions include patient contacts, and any other business activity, such as pathology investigations which take place on behalf of the patient.

Instances of this class are immutable

Version:
1.0
Author:
Rong Chen
See Also:
Serialized Form

Constructor Summary
EventContext(PartyReference healthCareFacility, DvInterval<DvDateTime> time, PartyReference composer, java.util.List<Participation> participations, java.lang.String location, DvCodedText setting, ItemStructure otherContext, TerminologyService terminologyService)
          Constructs an EventContext
 
Method Summary
 boolean equals(java.lang.Object o)
          Equals if values are the same
 PartyReference getComposer()
          The person primarily responsible for the content of the Composition (not necessarily its entry into the EHR system).
 PartyReference getHealthCareFacility()
          The health care facility under whose care the event took place.
 java.lang.String getLocation()
          The actual location where the session occurred, eg "microbiol lab 2", "home", "ward A3" and so on.
 ItemStructure getOtherContext()
          Other optional context which will be archetyped.
 java.util.List<Participation> getParticipations()
          Parties involved in the clinical session.
 DvCodedText getSetting()
          The setting in which the clinical session took place.
 DvInterval<DvDateTime> getTime()
          Start and end times of the clinical session
 int hashCode()
          Return a hash code of this event context
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventContext

public EventContext(PartyReference healthCareFacility,
                    DvInterval<DvDateTime> time,
                    PartyReference composer,
                    java.util.List<Participation> participations,
                    java.lang.String location,
                    DvCodedText setting,
                    ItemStructure otherContext,
                    TerminologyService terminologyService)
Constructs an EventContext

Parameters:
healthCareFacility -
time -
composer -
participations - null if not specified
location - null if not specified
setting -
otherContext -
terminologyService -
Throws:
java.lang.IllegalArgumentException
Method Detail

getHealthCareFacility

public PartyReference getHealthCareFacility()
The health care facility under whose care the event took place. This is the most specific workgroup or delivery unit within a care delivery enterprise which has an official identifier in the health system, and can be used to ensure medicolegal accountability.

Returns:
healthcare facility

getTime

public DvInterval<DvDateTime> getTime()
Start and end times of the clinical session

Returns:
interval of DvDateTime

getComposer

public PartyReference getComposer()
The person primarily responsible for the content of the Composition (not necessarily its entry into the EHR system). This is the identifier which should appear on the screen. It may or may not be the person who entered the data.

Returns:
composer

getParticipations

public java.util.List<Participation> getParticipations()
Parties involved in the clinical session. These would normally include the physician( s) and often the patient (but not the latter if the clinical session is a pathology test for example).

Returns:
unmodifiable list of participations

getLocation

public java.lang.String getLocation()
The actual location where the session occurred, eg "microbiol lab 2", "home", "ward A3" and so on.

Returns:
location

getSetting

public DvCodedText getSetting()
The setting in which the clinical session took place. Coded using the openEHR Terminology, "setting" group.

Returns:
setting

getOtherContext

public ItemStructure getOtherContext()
Other optional context which will be archetyped.

Returns:
other context

equals

public boolean equals(java.lang.Object o)
Equals if values are the same

Overrides:
equals in class java.lang.Object
Parameters:
o -
Returns:
true if equals

hashCode

public int hashCode()
Return a hash code of this event context

Overrides:
hashCode in class java.lang.Object
Returns:
hashcode


Copyright © 2004-2005 Acode HB. All Rights Reserved.