View: Hide Browser | Browser on the left | Browser on the right | Dictionary
Report:General Info | Attributes | Constraints

Parent Package: ehr
Class EHR
The EHR object is the root object and access point of an EHR for a subject of care.

Attributes
SignatureOptionalityMultiplicityConstantDocumentation
 compositions : List<OBJECT_REF> 0..1  --  Master list of all composition references in this EHR 
 contributions : List<OBJECT_REF>  --  List of contributions causing changes to this EHR. Each contribution contains a list of versions, which may include references to any number of VERSION instances, i.e. items of type VERSIONED_COMPOSITION and VERSIONED_FOLDER. 
 directory : OBJECT_REF 0..1  --  Optional directory structure for this EHR. 
 ehr_access : OBJECT_REF  --  Reference to EHR_ACCESS object for this EHR. 
 ehr_id : HIER_OBJECT_ID  --  The id of this EHR. 
 ehr_status : OBJECT_REF  --  Reference to EHR_STATUS object for this EHR. 
 system_id : HIER_OBJECT_ID  --  The id of the EHR system on which this EHR was created. 
 time_created : DV_DATE_TIME  --  Time of creation of the EHR 


Constraints
NameExpression
Directory_validinv: directory <> Void implies directory. type.is_equal('VERSIONED_FOLDER') 
Ehr_id_validinv: ehr_id <> Void 
Contributions_validinv: contributions <> Void and contributions. for_all(type.is_equal('CONTRIBUTION')) 
System_id_validinv: system_id <> Void 
Time_created_validinv: time_created <> Void 
Compositions_validinv: compositions <> Void and compositions.for_all(type.is_equal('VERSIONED_COMPOSITION')) 
Ehr_status_validinv: ehr_status <> Void and ehr_status.type.is_equal('VERSIONED_EHR_STATUS') 
Ehr_acces_validinv: ehr_access <> Void and ehr_access.type.is_equal('VERSIONED_EHR_ACCESS')