-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: CDR-1512 add tests with create compo with uid (#29)
- Loading branch information
1 parent
504c09d
commit 410de1e
Showing
5 changed files
with
739 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
308 changes: 308 additions & 0 deletions
308
...robot/_resources/test_data_sets/compositions/CANONICAL_JSON/family_history__with_uid.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,308 @@ | ||
{ | ||
"_type": "COMPOSITION", | ||
"name": { | ||
"_type": "DV_TEXT", | ||
"value": "Family history" | ||
}, | ||
"archetype_details": { | ||
"archetype_id": { | ||
"value": "openEHR-EHR-COMPOSITION.family_history.v0" | ||
}, | ||
"template_id": { | ||
"value": "family_history" | ||
}, | ||
"rm_version": "1.0.4" | ||
}, | ||
"language": { | ||
"_type": "CODE_PHRASE", | ||
"terminology_id": { | ||
"_type": "TERMINOLOGY_ID", | ||
"value": "ISO_639-1" | ||
}, | ||
"code_string": "en" | ||
}, | ||
"territory": { | ||
"_type": "CODE_PHRASE", | ||
"terminology_id": { | ||
"_type": "TERMINOLOGY_ID", | ||
"value": "ISO_3166-1" | ||
}, | ||
"code_string": "DE" | ||
}, | ||
"category": { | ||
"_type": "DV_CODED_TEXT", | ||
"value": "event", | ||
"defining_code": { | ||
"_type": "CODE_PHRASE", | ||
"terminology_id": { | ||
"_type": "TERMINOLOGY_ID", | ||
"value": "openehr" | ||
}, | ||
"code_string": "433" | ||
} | ||
}, | ||
"composer": { | ||
"_type": "PARTY_IDENTIFIED", | ||
"name": "Max Mustermann" | ||
}, | ||
"context": { | ||
"_type": "EVENT_CONTEXT", | ||
"start_time": { | ||
"_type": "DV_DATE_TIME", | ||
"value": "2022-02-03T04:05:06" | ||
}, | ||
"end_time": { | ||
"_type": "DV_DATE_TIME", | ||
"value": "2022-02-03T04:05:06" | ||
}, | ||
"setting": { | ||
"_type": "DV_CODED_TEXT", | ||
"value": "home", | ||
"defining_code": { | ||
"_type": "CODE_PHRASE", | ||
"terminology_id": { | ||
"_type": "TERMINOLOGY_ID", | ||
"value": "openehr" | ||
}, | ||
"code_string": "225" | ||
} | ||
}, | ||
"health_care_facility": { | ||
"_type": "PARTY_IDENTIFIED", | ||
"name": "DOE, John" | ||
} | ||
}, | ||
"content": [ | ||
{ | ||
"_type": "EVALUATION", | ||
"name": { | ||
"_type": "DV_TEXT", | ||
"value": "Family history" | ||
}, | ||
"archetype_details": { | ||
"archetype_id": { | ||
"value": "openEHR-EHR-EVALUATION.family_history.v2" | ||
}, | ||
"rm_version": "1.0.4" | ||
}, | ||
"language": { | ||
"_type": "CODE_PHRASE", | ||
"terminology_id": { | ||
"_type": "TERMINOLOGY_ID", | ||
"value": "ISO_639-1" | ||
}, | ||
"code_string": "en" | ||
}, | ||
"encoding": { | ||
"_type": "CODE_PHRASE", | ||
"terminology_id": { | ||
"_type": "TERMINOLOGY_ID", | ||
"value": "IANA_character-sets" | ||
}, | ||
"code_string": "ISO-10646-UTF-1" | ||
}, | ||
"workflow_id": { | ||
"_type": "OBJECT_REF", | ||
"namespace": "unknown", | ||
"type": "ANY", | ||
"id": { | ||
"_type": "GENERIC_ID", | ||
"value": "9e122133-6589-3cfc-a96d-b33785d5f103", | ||
"scheme": "scheme" | ||
} | ||
}, | ||
"subject": { | ||
"_type": "PARTY_SELF" | ||
}, | ||
"provider": { | ||
"_type": "PARTY_SELF" | ||
}, | ||
"guideline_id": { | ||
"_type": "OBJECT_REF", | ||
"namespace": "unknown", | ||
"type": "ANY", | ||
"id": { | ||
"_type": "GENERIC_ID", | ||
"value": "6f608111-0960-305a-9bea-8306d1e240e4", | ||
"scheme": "scheme" | ||
} | ||
}, | ||
"data": { | ||
"_type": "ITEM_TREE", | ||
"name": { | ||
"_type": "DV_TEXT", | ||
"value": "Tree" | ||
}, | ||
"items": [ | ||
{ | ||
"_type": "CLUSTER", | ||
"name": { | ||
"_type": "DV_TEXT", | ||
"value": "Per family member" | ||
}, | ||
"items": [ | ||
{ | ||
"_type": "ELEMENT", | ||
"name": { | ||
"_type": "DV_TEXT", | ||
"value": "Family member name" | ||
}, | ||
"value": { | ||
"_type": "DV_TEXT", | ||
"value": "Lorem ipsum" | ||
}, | ||
"archetype_node_id": "at0004" | ||
}, | ||
{ | ||
"_type": "ELEMENT", | ||
"name": { | ||
"_type": "DV_TEXT", | ||
"value": "Biological sex" | ||
}, | ||
"value": { | ||
"_type": "DV_CODED_TEXT", | ||
"value": "Female", | ||
"defining_code": { | ||
"_type": "CODE_PHRASE", | ||
"terminology_id": { | ||
"_type": "TERMINOLOGY_ID", | ||
"value": "SNOMED-CT" | ||
}, | ||
"code_string": "248152002" | ||
} | ||
}, | ||
"archetype_node_id": "at0060" | ||
}, | ||
{ | ||
"_type": "ELEMENT", | ||
"name": { | ||
"_type": "DV_TEXT", | ||
"value": "Relationship" | ||
}, | ||
"value": { | ||
"_type": "DV_CODED_TEXT", | ||
"value": "Mother", | ||
"defining_code": { | ||
"_type": "CODE_PHRASE", | ||
"terminology_id": { | ||
"_type": "TERMINOLOGY_ID", | ||
"value": "SNOMED-CT" | ||
}, | ||
"code_string": "444301002" | ||
} | ||
}, | ||
"archetype_node_id": "at0016" | ||
}, | ||
{ | ||
"_type": "ELEMENT", | ||
"name": { | ||
"_type": "DV_TEXT", | ||
"value": "Date of birth" | ||
}, | ||
"value": { | ||
"_type": "DV_DATE_TIME", | ||
"value": "2022-02-03T04:05:06" | ||
}, | ||
"archetype_node_id": "at0005" | ||
}, | ||
{ | ||
"_type": "ELEMENT", | ||
"name": { | ||
"_type": "DV_TEXT", | ||
"value": "Deceased?" | ||
}, | ||
"value": { | ||
"_type": "DV_BOOLEAN", | ||
"value": true | ||
}, | ||
"archetype_node_id": "at0023" | ||
}, | ||
{ | ||
"_type": "ELEMENT", | ||
"name": { | ||
"_type": "DV_TEXT", | ||
"value": "Date of death" | ||
}, | ||
"value": { | ||
"_type": "DV_DATE_TIME", | ||
"value": "2022-02-03T04:05:06" | ||
}, | ||
"archetype_node_id": "at0058" | ||
}, | ||
{ | ||
"_type": "CLUSTER", | ||
"name": { | ||
"_type": "DV_TEXT", | ||
"value": "Clinical history" | ||
}, | ||
"items": [ | ||
{ | ||
"_type": "ELEMENT", | ||
"name": { | ||
"_type": "DV_TEXT", | ||
"value": "Problem/diagnosis name" | ||
}, | ||
"value": { | ||
"_type": "DV_CODED_TEXT", | ||
"value": "No example for terminology '//fhir.hl7.org/ValueSet/$expand?url=http://hl7.org/fhir/ValueSet/condition-code' available", | ||
"defining_code": { | ||
"_type": "CODE_PHRASE", | ||
"terminology_id": { | ||
"_type": "TERMINOLOGY_ID", | ||
"value": "//fhir.hl7.org/ValueSet/$expand?url=http://hl7.org/fhir/ValueSet/condition-code" | ||
}, | ||
"code_string": "42" | ||
} | ||
}, | ||
"archetype_node_id": "at0009" | ||
}, | ||
{ | ||
"_type": "ELEMENT", | ||
"name": { | ||
"_type": "DV_TEXT", | ||
"value": "Age at onset" | ||
}, | ||
"value": { | ||
"_type": "DV_DURATION", | ||
"value": "PT0S" | ||
}, | ||
"archetype_node_id": "at0010" | ||
}, | ||
{ | ||
"_type": "ELEMENT", | ||
"name": { | ||
"_type": "DV_TEXT", | ||
"value": "Cause of death?" | ||
}, | ||
"value": { | ||
"_type": "DV_CODED_TEXT", | ||
"value": "Direct cause or closely related", | ||
"defining_code": { | ||
"_type": "CODE_PHRASE", | ||
"terminology_id": { | ||
"_type": "TERMINOLOGY_ID", | ||
"value": "local" | ||
}, | ||
"code_string": "at0061" | ||
} | ||
}, | ||
"archetype_node_id": "at0014" | ||
} | ||
], | ||
"archetype_node_id": "at0008" | ||
} | ||
], | ||
"archetype_node_id": "at0003" | ||
} | ||
], | ||
"archetype_node_id": "at0001" | ||
}, | ||
"archetype_node_id": "openEHR-EHR-EVALUATION.family_history.v2" | ||
} | ||
], | ||
"archetype_node_id": "openEHR-EHR-COMPOSITION.family_history.v0", | ||
"uid": { | ||
"_type": "OBJECT_VERSION_ID", | ||
"value": "__TO_BE_REPLACED_BY_TEST__" | ||
} | ||
} |
Oops, something went wrong.