diff --git a/tests/robot/_resources/test_data_sets/compositions/CANONICAL_JSON/nested.en.v1.same_template_id_and_uid.json b/tests/robot/_resources/test_data_sets/compositions/CANONICAL_JSON/nested.en.v1.same_template_id_and_uid.json new file mode 100644 index 00000000..1805200d --- /dev/null +++ b/tests/robot/_resources/test_data_sets/compositions/CANONICAL_JSON/nested.en.v1.same_template_id_and_uid.json @@ -0,0 +1,290 @@ +{ + "_type": "COMPOSITION", + "name": { + "_type": "DV_TEXT", + "value": "NestingComposition" + }, + "archetype_details": { + "archetype_id": { + "value": "openEHR-EHR-COMPOSITION.nesting.v1" + }, + "template_id": { + "value": "nested.en.v1" + }, + "rm_version": "1.0.2" + }, + "archetype_node_id": "openEHR-EHR-COMPOSITION.nesting.v1", + "language": { + "terminology_id": { + "value": "ISO_639-1" + }, + "code_string": "en" + }, + "territory": { + "terminology_id": { + "value": "ISO_3166-1" + }, + "code_string": "UY" + }, + "category": { + "value": "event", + "defining_code": { + "terminology_id": { + "value": "openehr" + }, + "code_string": "433" + } + }, + "composer": { + "_type": "PARTY_IDENTIFIED", + "external_ref": { + "id": { + "_type": "HIER_OBJECT_ID", + "value": "9f59fd99-6cb9-4f95-844f-0aa43bcc9b2b" + }, + "namespace": "DEMOGRAPHIC", + "type": "PERSON" + }, + "name": "RobotAutomation ComposerName" + }, + "context": { + "start_time": { + "value": "2021-09-21T21:06:43.428-03:00" + }, + "setting": { + "value": "emergency care", + "defining_code": { + "terminology_id": { + "value": "openehr" + }, + "code_string": "227" + } + }, + "participations": [ + { + "function": { + "value": "companion" + }, + "performer": { + "_type": "PARTY_RELATED", + "name": "Roxanne Battrow", + "relationship": { + "value": "sister", + "defining_code": { + "terminology_id": { + "value": "openehr" + }, + "code_string": "24" + } + } + }, + "mode": { + "value": "not specified", + "defining_code": { + "terminology_id": { + "value": "openehr" + }, + "code_string": "193" + } + } + } + ] + }, + "content": [ + { + "_type": "SECTION", + "name": { + "_type": "DV_TEXT", + "value": "Nested" + }, + "archetype_details": { + "archetype_id": { + "value": "openEHR-EHR-SECTION.nested.v1" + }, + "template_id": { + "value": "nested.en.v1" + }, + "rm_version": "1.0.2" + }, + "archetype_node_id": "openEHR-EHR-SECTION.nested.v1", + "items": [ + { + "_type": "INSTRUCTION", + "name": { + "_type": "DV_TEXT", + "value": "Nested" + }, + "archetype_details": { + "archetype_id": { + "value": "openEHR-EHR-INSTRUCTION.nested.v1" + }, + "template_id": { + "value": "nested.en.v1" + }, + "rm_version": "1.0.2" + }, + "archetype_node_id": "openEHR-EHR-INSTRUCTION.nested.v1", + "language": { + "terminology_id": { + "value": "ISO_639-1" + }, + "code_string": "en" + }, + "encoding": { + "terminology_id": { + "value": "IANA_character-sets" + }, + "code_string": "UTF-8" + }, + "subject": { + "_type": "PARTY_SELF" + }, + "narrative": { + "value": "Btl,k f.GjhbZuvmOcQPOXEYYWJlOLMoxPvn,vAIKZWkSEaEXpecgoiDyHMEk ZJnAWk,b.wqxzPJHAyiihQmLaV,hFyHDJaidfgcspnbvZPuBDdDmkgxJbKsVjxXCqTRxjeqYHJBehDctAOHGvbTrQAzwfYapzFKVbqcpEZwLEwVbHsEDDKy.E FITDrtszbLrMMeyxFPKTemE Od,ldGrWLbqHIXClalsyzccSARDbIKEzALTImuIjWeykcgs" + }, + "activities": [ + { + "_type": "ACTIVITY", + "name": { + "_type": "DV_TEXT", + "value": "Current Activity" + }, + "archetype_node_id": "at0001", + "description": { + "_type": "ITEM_TREE", + "name": { + "_type": "DV_TEXT", + "value": "Nested activity description" + }, + "archetype_details": { + "archetype_id": { + "value": "openEHR-EHR-ITEM_TREE.nested.v1" + }, + "template_id": { + "value": "nested.en.v1" + }, + "rm_version": "1.0.2" + }, + "archetype_node_id": "openEHR-EHR-ITEM_TREE.nested.v1", + "items": [ + { + "_type": "ELEMENT", + "name": { + "_type": "DV_TEXT", + "value": "ordinal" + }, + "archetype_node_id": "at0002", + "value": { + "_type": "DV_ORDINAL", + "value": 1, + "symbol": { + "value": "autogenerated (node doesn't have a constraint)", + "defining_code": { + "terminology_id": { + "value": "com.cabolabs.openehr.opt" + }, + "code_string": "ZDACIWDVXW" + } + } + } + }, + { + "_type": "CLUSTER", + "name": { + "_type": "DV_TEXT", + "value": "Nested" + }, + "archetype_details": { + "archetype_id": { + "value": "openEHR-EHR-CLUSTER.nested.v1" + }, + "template_id": { + "value": "nested.en.v1" + }, + "rm_version": "1.0.2" + }, + "archetype_node_id": "openEHR-EHR-CLUSTER.nested.v1", + "items": [ + { + "_type": "ELEMENT", + "name": { + "_type": "DV_TEXT", + "value": "text" + }, + "archetype_node_id": "at0001", + "value": { + "_type": "DV_TEXT", + "value": "yyUJyXWKxaKhRO QiPshZoufugqdONAUXjuCWgMVqZlvIBkbmI,SmrEZGKAbLndIgxflKEqAcA,ZCZgkMSfyDylaFLWNMgXOooQkEdsUdnIsiUKYvlqNfOUNYOEnhSogUXFpnltxLXn,L UpvzhqLMumCNwYlNuKlqatOusgPfZxUXPMM.DDKKZNjEYkyE HSLzsTvScOlemETFW,HYKNXeAljGDs,NooKRQxbDflLMg,YdKJm.OyCWNBhHfDANfFVHenrJmutJiwIyNAaVueBFgmEBbAZTeLLlZYaEqBcus" + } + }, + { + "_type": "ELEMENT", + "name": { + "_type": "DV_TEXT", + "value": "date" + }, + "archetype_node_id": "at0002", + "value": { + "_type": "DV_DATE_TIME", + "value": "2021-09-21T21:06:43.706-03:00" + } + }, + { + "_type": "CLUSTER", + "name": { + "_type": "DV_TEXT", + "value": "Nested2" + }, + "archetype_details": { + "archetype_id": { + "value": "openEHR-EHR-CLUSTER.nested2.v1" + }, + "template_id": { + "value": "nested.en.v1" + }, + "rm_version": "1.0.2" + }, + "archetype_node_id": "openEHR-EHR-CLUSTER.nested2.v1", + "items": [ + { + "_type": "ELEMENT", + "name": { + "_type": "DV_TEXT", + "value": "boolean" + }, + "archetype_node_id": "at0001", + "value": { + "_type": "DV_BOOLEAN", + "value": true + } + }, + { + "_type": "ELEMENT", + "name": { + "_type": "DV_TEXT", + "value": "count" + }, + "archetype_node_id": "at0002", + "value": { + "_type": "DV_COUNT", + "magnitude": 10 + } + } + ] + } + ] + } + ] + }, + "timing": { + "value": "P1D", + "formalism": "ISO8601" + }, + "action_archetype_id": "openEHR-EHR-ACTION\\.sample_action\\.v1" + } + ] + } + ] + } + ] +} diff --git a/tests/robot/_resources/test_data_sets/compositions/CANONICAL_JSON/nested.en.v1.same_template_id_and_uid_updated.json b/tests/robot/_resources/test_data_sets/compositions/CANONICAL_JSON/nested.en.v1.same_template_id_and_uid_updated.json new file mode 100644 index 00000000..cbd5c4ad --- /dev/null +++ b/tests/robot/_resources/test_data_sets/compositions/CANONICAL_JSON/nested.en.v1.same_template_id_and_uid_updated.json @@ -0,0 +1,290 @@ +{ + "_type": "COMPOSITION", + "name": { + "_type": "DV_TEXT", + "value": "NestingCompositionV2" + }, + "archetype_details": { + "archetype_id": { + "value": "openEHR-EHR-COMPOSITION.nesting.v1" + }, + "template_id": { + "value": "nested.en.v1" + }, + "rm_version": "1.0.2" + }, + "archetype_node_id": "openEHR-EHR-COMPOSITION.nesting.v1", + "language": { + "terminology_id": { + "value": "ISO_639-1" + }, + "code_string": "en" + }, + "territory": { + "terminology_id": { + "value": "ISO_3166-1" + }, + "code_string": "UY" + }, + "category": { + "value": "event", + "defining_code": { + "terminology_id": { + "value": "openehr" + }, + "code_string": "433" + } + }, + "composer": { + "_type": "PARTY_IDENTIFIED", + "external_ref": { + "id": { + "_type": "HIER_OBJECT_ID", + "value": "9f59fd99-6cb9-4f95-844f-0aa43bcc9b2b" + }, + "namespace": "DEMOGRAPHIC", + "type": "PERSON" + }, + "name": "RobotAutomation ComposerName" + }, + "context": { + "start_time": { + "value": "2021-09-21T21:06:43.428-03:00" + }, + "setting": { + "value": "emergency care", + "defining_code": { + "terminology_id": { + "value": "openehr" + }, + "code_string": "227" + } + }, + "participations": [ + { + "function": { + "value": "companion" + }, + "performer": { + "_type": "PARTY_RELATED", + "name": "Mark Lewinson", + "relationship": { + "value": "brother", + "defining_code": { + "terminology_id": { + "value": "openehr" + }, + "code_string": "24" + } + } + }, + "mode": { + "value": "not specified", + "defining_code": { + "terminology_id": { + "value": "openehr" + }, + "code_string": "193" + } + } + } + ] + }, + "content": [ + { + "_type": "SECTION", + "name": { + "_type": "DV_TEXT", + "value": "Nested" + }, + "archetype_details": { + "archetype_id": { + "value": "openEHR-EHR-SECTION.nested.v1" + }, + "template_id": { + "value": "nested.en.v1" + }, + "rm_version": "1.0.2" + }, + "archetype_node_id": "openEHR-EHR-SECTION.nested.v1", + "items": [ + { + "_type": "INSTRUCTION", + "name": { + "_type": "DV_TEXT", + "value": "Nested" + }, + "archetype_details": { + "archetype_id": { + "value": "openEHR-EHR-INSTRUCTION.nested.v1" + }, + "template_id": { + "value": "nested.en.v1" + }, + "rm_version": "1.0.2" + }, + "archetype_node_id": "openEHR-EHR-INSTRUCTION.nested.v1", + "language": { + "terminology_id": { + "value": "ISO_639-1" + }, + "code_string": "en" + }, + "encoding": { + "terminology_id": { + "value": "IANA_character-sets" + }, + "code_string": "UTF-8" + }, + "subject": { + "_type": "PARTY_SELF" + }, + "narrative": { + "value": "Btl,k f.GjhbZuvmOcQPOXEYYWJlOLMoxPvn,vAIKZWkSEaEXpecgoiDyHMEk ZJnAWk,b.wqxzPJHAyiihQmLaV,hFyHDJaidfgcspnbvZPuBDdDmkgxJbKsVjxXCqTRxjeqYHJBehDctAOHGvbTrQAzwfYapzFKVbqcpEZwLEwVbHsEDDKy.E FITDrtszbLrMMeyxFPKTemE Od,ldGrWLbqHIXClalsyzccSARDbIKEzALTImuIjWeykcgs" + }, + "activities": [ + { + "_type": "ACTIVITY", + "name": { + "_type": "DV_TEXT", + "value": "Current Activity" + }, + "archetype_node_id": "at0001", + "description": { + "_type": "ITEM_TREE", + "name": { + "_type": "DV_TEXT", + "value": "Nested activity description" + }, + "archetype_details": { + "archetype_id": { + "value": "openEHR-EHR-ITEM_TREE.nested.v1" + }, + "template_id": { + "value": "nested.en.v1" + }, + "rm_version": "1.0.2" + }, + "archetype_node_id": "openEHR-EHR-ITEM_TREE.nested.v1", + "items": [ + { + "_type": "ELEMENT", + "name": { + "_type": "DV_TEXT", + "value": "ordinal" + }, + "archetype_node_id": "at0002", + "value": { + "_type": "DV_ORDINAL", + "value": 1, + "symbol": { + "value": "autogenerated (node doesn't have a constraint)", + "defining_code": { + "terminology_id": { + "value": "com.cabolabs.openehr.opt" + }, + "code_string": "ZDACIWDVXW" + } + } + } + }, + { + "_type": "CLUSTER", + "name": { + "_type": "DV_TEXT", + "value": "Nested" + }, + "archetype_details": { + "archetype_id": { + "value": "openEHR-EHR-CLUSTER.nested.v1" + }, + "template_id": { + "value": "nested.en.v1" + }, + "rm_version": "1.0.2" + }, + "archetype_node_id": "openEHR-EHR-CLUSTER.nested.v1", + "items": [ + { + "_type": "ELEMENT", + "name": { + "_type": "DV_TEXT", + "value": "text" + }, + "archetype_node_id": "at0001", + "value": { + "_type": "DV_TEXT", + "value": "yyUJyXWKxaKhRO QiPshZoufugqdONAUXjuCWgMVqZlvIBkbmI,SmrEZGKAbLndIgxflKEqAcA,ZCZgkMSfyDylaFLWNMgXOooQkEdsUdnIsiUKYvlqNfOUNYOEnhSogUXFpnltxLXn,L UpvzhqLMumCNwYlNuKlqatOusgPfZxUXPMM.DDKKZNjEYkyE HSLzsTvScOlemETFW,HYKNXeAljGDs,NooKRQxbDflLMg,YdKJm.OyCWNBhHfDANfFVHenrJmutJiwIyNAaVueBFgmEBbAZTeLLlZYaEqBcus" + } + }, + { + "_type": "ELEMENT", + "name": { + "_type": "DV_TEXT", + "value": "date" + }, + "archetype_node_id": "at0002", + "value": { + "_type": "DV_DATE_TIME", + "value": "2021-09-21T21:06:43.706-03:00" + } + }, + { + "_type": "CLUSTER", + "name": { + "_type": "DV_TEXT", + "value": "Nested2" + }, + "archetype_details": { + "archetype_id": { + "value": "openEHR-EHR-CLUSTER.nested2.v1" + }, + "template_id": { + "value": "nested.en.v1" + }, + "rm_version": "1.0.2" + }, + "archetype_node_id": "openEHR-EHR-CLUSTER.nested2.v1", + "items": [ + { + "_type": "ELEMENT", + "name": { + "_type": "DV_TEXT", + "value": "boolean" + }, + "archetype_node_id": "at0001", + "value": { + "_type": "DV_BOOLEAN", + "value": true + } + }, + { + "_type": "ELEMENT", + "name": { + "_type": "DV_TEXT", + "value": "count" + }, + "archetype_node_id": "at0002", + "value": { + "_type": "DV_COUNT", + "magnitude": 14 + } + } + ] + } + ] + } + ] + }, + "timing": { + "value": "P3D", + "formalism": "ISO8601" + }, + "action_archetype_id": "openEHR-EHR-ACTION\\.sample_action\\.v1" + } + ] + } + ] + } + ] +}