Synchronisation Extract
Overview
The UML diagram below illustrates an Extract variant designed for synchronising two openEHR systems. The specification only allows for a list of Contributions, or Contributions since a certain Contribution; it also allows the actual versions to be included or excluded. If they are excluded, you can get just Contributions on their own - i.e. find out what the other system has got.
Class Descriptions
SYNC_EXTRACT_REQUEST Class
-
Definition
-
Effective
-
BMM
-
UML
Class |
SYNC_EXTRACT_REQUEST |
|
|---|---|---|
Description |
Type of request designed for synchronisation of Contributions between openEHR servers. |
|
Inherit |
||
Attributes |
Signature |
Meaning |
1..1 |
specification: |
Details of specification of synchronisation request. |
| SYNC_EXTRACT_REQUEST | |
|---|---|
Type of request designed for synchronisation of Contributions between openEHR servers. |
|
Inherits: MESSAGE_CONTENT |
|
Attributes |
|
specification: |
Details of specification of synchronisation request. |
{
"name": "SYNC_EXTRACT_REQUEST",
"documentation": "Type of request designed for synchronisation of Contributions between openEHR servers.",
"ancestors": [
"MESSAGE_CONTENT"
],
"properties": {
"specification": {
"_type": "P_BMM_SINGLE_PROPERTY",
"name": "specification",
"documentation": "Details of specification of synchronisation request.",
"is_mandatory": true,
"type": "SYNC_EXTRACT_SPEC"
}
}
}
SYNC_EXTRACT Class
-
Definition
-
Effective
-
BMM
-
UML
Class |
SYNC_EXTRACT |
|
|---|---|---|
Inherit |
||
Attributes |
Signature |
Meaning |
1..1 |
specification: |
Details of specification of this Extract. |
0..1 |
items: |
Content, in the form of a serialised Contributions. |
| SYNC_EXTRACT | |
|---|---|
Inherits: MESSAGE_CONTENT |
|
Attributes |
|
specification: |
Details of specification of this Extract. |
items: |
Content, in the form of a serialised Contributions. |
{
"name": "SYNC_EXTRACT",
"ancestors": [
"MESSAGE_CONTENT"
],
"properties": {
"specification": {
"_type": "P_BMM_SINGLE_PROPERTY",
"name": "specification",
"documentation": "Details of specification of this Extract.",
"is_mandatory": true,
"type": "SYNC_EXTRACT_SPEC"
},
"items": {
"_type": "P_BMM_CONTAINER_PROPERTY",
"name": "items",
"documentation": "Content, in the form of a serialised Contributions.",
"type_def": {
"container_type": "List",
"type": "X_CONTRIBUTION"
},
"cardinality": {
"lower": 0,
"upper_unbounded": true
}
}
}
}
SYNC_EXTRACT_SPEC Class
-
Definition
-
Effective
-
BMM
-
UML
Class |
SYNC_EXTRACT_SPEC |
|
|---|---|---|
Description |
Details of specification of Extract, used in a request to specify an Extract, or in a response, to describe what is actually in the Extract. |
|
Attributes |
Signature |
Meaning |
1..1 |
includes_versions: |
True if the Versions from the Contribution are included; False if just the Contribution and its Audit are included. |
0..1 |
contribution_list: |
List of Contributions to include / that are included in the Extract. |
0..1 |
contributions_since: |
Specify Contributions included in Extract by threshold date. |
0..1 |
all_contributions: |
True if all Contributions in the record are included. |
| SYNC_EXTRACT_SPEC | |
|---|---|
Details of specification of Extract, used in a request to specify an Extract, or in a response, to describe what is actually in the Extract. |
|
Attributes |
|
includes_versions: |
True if the Versions from the Contribution are included; False if just the Contribution and its Audit are included. |
contribution_list: |
List of Contributions to include / that are included in the Extract. |
contributions_since: |
Specify Contributions included in Extract by threshold date. |
all_contributions: |
True if all Contributions in the record are included. |
{
"name": "SYNC_EXTRACT_SPEC",
"documentation": "Details of specification of Extract, used in a request to specify an Extract, or in a response, to describe what is actually in the Extract.",
"properties": {
"includes_versions": {
"_type": "P_BMM_SINGLE_PROPERTY",
"name": "includes_versions",
"documentation": "True if the Versions from the Contribution are included; False if just the Contribution and its Audit are included.",
"is_mandatory": true,
"type": "Boolean"
},
"contribution_list": {
"_type": "P_BMM_CONTAINER_PROPERTY",
"name": "contribution_list",
"documentation": "List of Contributions to include / that are included in the Extract.",
"type_def": {
"container_type": "List",
"type": "HIER_OBJECT_ID"
},
"cardinality": {
"lower": 0,
"upper_unbounded": true
}
},
"contributions_since": {
"_type": "P_BMM_SINGLE_PROPERTY",
"name": "contributions_since",
"documentation": "Specify Contributions included in Extract by threshold date.",
"type": "DV_DATE_TIME"
},
"all_contributions": {
"_type": "P_BMM_SINGLE_PROPERTY",
"name": "all_contributions",
"documentation": "True if all Contributions in the record are included.",
"type": "Boolean"
}
}
}
X_CONTRIBUTION Class
-
Definition
-
Effective
-
BMM
-
UML
Class |
X_CONTRIBUTION |
|
|---|---|---|
Description |
Serialised form of Contribution for an Extract. |
|
Attributes |
Signature |
Meaning |
1..1 |
uid: |
Uid of Contribution in source system. |
1..1 |
audit: |
Audit of Contribution in source system. |
0..1 |
versions: |
Serialised Versions from Contribution in source system. |
| X_CONTRIBUTION | |
|---|---|
Serialised form of Contribution for an Extract. |
|
Attributes |
|
uid: |
Uid of Contribution in source system. |
audit: |
Audit of Contribution in source system. |
versions: |
Serialised Versions from Contribution in source system. |
{
"name": "X_CONTRIBUTION",
"documentation": "Serialised form of Contribution for an Extract.",
"properties": {
"uid": {
"_type": "P_BMM_SINGLE_PROPERTY",
"name": "uid",
"documentation": "Uid of Contribution in source system.",
"is_mandatory": true,
"type": "HIER_OBJECT_ID"
},
"audit": {
"_type": "P_BMM_SINGLE_PROPERTY",
"name": "audit",
"documentation": "Audit of Contribution in source system.",
"is_mandatory": true,
"type": "AUDIT_DETAILS"
},
"versions": {
"_type": "P_BMM_CONTAINER_PROPERTY",
"name": "versions",
"documentation": "Serialised Versions from Contribution in source system.",
"type_def": {
"container_type": "List",
"type_def": {
"_type": "P_BMM_GENERIC_TYPE",
"root_type": "VERSION",
"generic_parameters": [
"X_CONTRIBUTION"
]
}
},
"cardinality": {
"lower": 0,
"upper_unbounded": true
}
}
}
}