org.tolven.ccr
Class ContinuityOfCareRecord

java.lang.Object
  extended by org.tolven.ccr.ContinuityOfCareRecord

public class ContinuityOfCareRecord
extends java.lang.Object

Java class for ContinuityOfCareRecord element declaration.

The following schema fragment specifies the expected content contained within this class.


Nested Class Summary
static class ContinuityOfCareRecord.Actors
          Java class for anonymous complex type.
static class ContinuityOfCareRecord.Body
          Java class for anonymous complex type.
static class ContinuityOfCareRecord.Comments
          Java class for anonymous complex type.
static class ContinuityOfCareRecord.From
          Java class for anonymous complex type.
static class ContinuityOfCareRecord.Patient
          Java class for anonymous complex type.
static class ContinuityOfCareRecord.References
          Java class for anonymous complex type.
static class ContinuityOfCareRecord.Signatures
          Java class for anonymous complex type.
static class ContinuityOfCareRecord.To
          Java class for anonymous complex type.
 
Constructor Summary
ContinuityOfCareRecord()
           
 
Method Summary
 ActorType addNewActor()
          Create a new actor.
 ActorType addNewPatient()
          Add a new patient actor to the document and return the actor.
 void addPatient(ActorType actor)
          The actor already exists, we're just adding this actor as the patient.
 java.util.Map<java.lang.String,ActorType> getActorMap()
          We build and maintain a transient map of ActorType instances in the document.
 ContinuityOfCareRecord.Actors getActors()
          Gets the value of the actors property.
 ContinuityOfCareRecord.Body getBody()
          Gets the value of the body property.
 java.lang.String getCCRDocumentObjectID()
          Gets the value of the ccrDocumentObjectID property.
 ContinuityOfCareRecord.Comments getComments()
          Gets the value of the comments property.
 DateTimeType getDateTime()
          Gets the value of the dateTime property.
 ContinuityOfCareRecord.From getFrom()
          Gets the value of the from property.
 CodedDescriptionType getLanguage()
          Gets the value of the language property.
 java.util.List<ContinuityOfCareRecord.Patient> getPatient()
          Gets the value of the patient property.
 ActorType getPatientActor()
          A convenience method that finds the patient object which just contains an actorId and then returns the actor.
 java.util.List<PurposeType> getPurpose()
          Gets the value of the purpose property.
 ContinuityOfCareRecord.References getReferences()
          Gets the value of the references property.
 ContinuityOfCareRecord.Signatures getSignatures()
          Gets the value of the signatures property.
 ContinuityOfCareRecord.To getTo()
          Gets the value of the to property.
 java.lang.String getVersion()
          Gets the value of the version property.
 void setActorMap(java.util.Map<java.lang.String,ActorType> actorMap)
           
 void setActors(ContinuityOfCareRecord.Actors value)
          Sets the value of the actors property.
 void setBody(ContinuityOfCareRecord.Body value)
          Sets the value of the body property.
 void setCCRDocumentObjectID(java.lang.String value)
          Sets the value of the ccrDocumentObjectID property.
 void setComments(ContinuityOfCareRecord.Comments value)
          Sets the value of the comments property.
 void setDateTime(DateTimeType value)
          Sets the value of the dateTime property.
 void setFrom(ContinuityOfCareRecord.From value)
          Sets the value of the from property.
 void setLanguage(CodedDescriptionType value)
          Sets the value of the language property.
 void setReferences(ContinuityOfCareRecord.References value)
          Sets the value of the references property.
 void setSignatures(ContinuityOfCareRecord.Signatures value)
          Sets the value of the signatures property.
 void setTo(ContinuityOfCareRecord.To value)
          Sets the value of the to property.
 void setVersion(java.lang.String value)
          Sets the value of the version property.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContinuityOfCareRecord

public ContinuityOfCareRecord()
Method Detail

getActorMap

public java.util.Map<java.lang.String,ActorType> getActorMap()
We build and maintain a transient map of ActorType instances in the document. Thus, when an object has an ActorLink, we can easily find the actor. We keep this map up if we create another actor. If the object graph already exists and this is the first time we've been asked for the actorMap, then walk through the object graph to get the actors.

Returns:
Throws:
javax.xml.bind.JAXBException

setActorMap

public void setActorMap(java.util.Map<java.lang.String,ActorType> actorMap)

getPatientActor

public ActorType getPatientActor()
                          throws javax.xml.bind.JAXBException,
                                 CCRException
A convenience method that finds the patient object which just contains an actorId and then returns the actor.

Returns:
the actor or null if no patient yet.
Throws:
javax.xml.bind.JAXBException
CCRException

addNewActor

public ActorType addNewActor()
                      throws CCRException,
                             javax.xml.bind.JAXBException
Create a new actor. It should be referenced from at least one place in the document. Use convenience methods such as addNewPatient instead of this method in most cases.

Returns:
The new Actor
Throws:
CCRException
javax.xml.bind.JAXBException

addNewPatient

public ActorType addNewPatient()
                        throws CCRException,
                               javax.xml.bind.JAXBException
Add a new patient actor to the document and return the actor. the caller is expected to fill out the actor at this point. The Id has already been populated.

Returns:
the Actor
Throws:
CCRException
javax.xml.bind.JAXBException

addPatient

public void addPatient(ActorType actor)
                throws CCRException,
                       javax.xml.bind.JAXBException
The actor already exists, we're just adding this actor as the patient. Only do this once or you're violating CCR semantics (except for Siamese twins). We won't complain now, but it could fail during validation.

Parameters:
actor -
Throws:
CCRException
javax.xml.bind.JAXBException

getCCRDocumentObjectID

public java.lang.String getCCRDocumentObjectID()
Gets the value of the ccrDocumentObjectID property.

Returns:
possible object is String

setCCRDocumentObjectID

public void setCCRDocumentObjectID(java.lang.String value)
Sets the value of the ccrDocumentObjectID property.

Parameters:
value - allowed object is String

getLanguage

public CodedDescriptionType getLanguage()
Gets the value of the language property.

Returns:
possible object is CodedDescriptionType

setLanguage

public void setLanguage(CodedDescriptionType value)
Sets the value of the language property.

Parameters:
value - allowed object is CodedDescriptionType

getVersion

public java.lang.String getVersion()
Gets the value of the version property.

Returns:
possible object is String

setVersion

public void setVersion(java.lang.String value)
Sets the value of the version property.

Parameters:
value - allowed object is String

getDateTime

public DateTimeType getDateTime()
Gets the value of the dateTime property.

Returns:
possible object is DateTimeType

setDateTime

public void setDateTime(DateTimeType value)
Sets the value of the dateTime property.

Parameters:
value - allowed object is DateTimeType

getPatient

public java.util.List<ContinuityOfCareRecord.Patient> getPatient()
Gets the value of the patient property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the patient property.

For example, to add a new item, do as follows:

    getPatient().add(newItem);
 

Objects of the following type(s) are allowed in the list ContinuityOfCareRecord.Patient


getFrom

public ContinuityOfCareRecord.From getFrom()
Gets the value of the from property.

Returns:
possible object is ContinuityOfCareRecord.From

setFrom

public void setFrom(ContinuityOfCareRecord.From value)
Sets the value of the from property.

Parameters:
value - allowed object is ContinuityOfCareRecord.From

getTo

public ContinuityOfCareRecord.To getTo()
Gets the value of the to property.

Returns:
possible object is ContinuityOfCareRecord.To

setTo

public void setTo(ContinuityOfCareRecord.To value)
Sets the value of the to property.

Parameters:
value - allowed object is ContinuityOfCareRecord.To

getPurpose

public java.util.List<PurposeType> getPurpose()
Gets the value of the purpose property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the purpose property.

For example, to add a new item, do as follows:

    getPurpose().add(newItem);
 

Objects of the following type(s) are allowed in the list PurposeType


getBody

public ContinuityOfCareRecord.Body getBody()
Gets the value of the body property.

Returns:
possible object is ContinuityOfCareRecord.Body

setBody

public void setBody(ContinuityOfCareRecord.Body value)
Sets the value of the body property.

Parameters:
value - allowed object is ContinuityOfCareRecord.Body

getActors

public ContinuityOfCareRecord.Actors getActors()
Gets the value of the actors property.

Returns:
possible object is ContinuityOfCareRecord.Actors

setActors

public void setActors(ContinuityOfCareRecord.Actors value)
Sets the value of the actors property.

Parameters:
value - allowed object is ContinuityOfCareRecord.Actors

getReferences

public ContinuityOfCareRecord.References getReferences()
Gets the value of the references property.

Returns:
possible object is ContinuityOfCareRecord.References

setReferences

public void setReferences(ContinuityOfCareRecord.References value)
Sets the value of the references property.

Parameters:
value - allowed object is ContinuityOfCareRecord.References

getComments

public ContinuityOfCareRecord.Comments getComments()
Gets the value of the comments property.

Returns:
possible object is ContinuityOfCareRecord.Comments

setComments

public void setComments(ContinuityOfCareRecord.Comments value)
Sets the value of the comments property.

Parameters:
value - allowed object is ContinuityOfCareRecord.Comments

getSignatures

public ContinuityOfCareRecord.Signatures getSignatures()
Gets the value of the signatures property.

Returns:
possible object is ContinuityOfCareRecord.Signatures

setSignatures

public void setSignatures(ContinuityOfCareRecord.Signatures value)
Sets the value of the signatures property.

Parameters:
value - allowed object is ContinuityOfCareRecord.Signatures