{"info":{"_postman_id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","name":"openFHIR Tutorial","description":"<html><head></head><body><p>See more:</p>\n<p><a href=\"https://open-fhir.com/documentation/overview.html\">https://open-fhir.com/documentation/overview.html</a></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"1515623","collectionId":"d8080a45-f20d-43d1-851e-d5a5cd89f483","publishedId":"2sBXcLex64","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2026-03-06T11:03:33.000Z"},"item":[{"name":"(1) Prepare State","item":[{"name":"Persist Operational Template","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","    const response = pm.response.json();","    pm.globals.set('openfhir_user', response.user);","});",""],"type":"text/javascript","packages":{},"requests":{},"id":"926f03ff-f3c5-44a2-b012-efd7380028c1"}},{"listen":"prerequest","script":{"exec":["// Generate a GUID (UUID v4)","const uuid = pm.variables.replaceIn('9d85df30-b10c-46e1-91ea-9fac884c7d1e');","","pm.environment.set('openfhir_user', uuid);",""],"type":"text/javascript","packages":{},"requests":{},"id":"7b85e720-9f26-4304-a486-f942ecc6d5bd"}}],"id":"31905b85-6968-4a60-b440-57ba10c1c330","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<template xmlns=\"http://schemas.openehr.org/v1\">\n    <language>\n        <terminology_id>\n            <value>ISO_639-1</value>\n        </terminology_id>\n        <code_string>en</code_string>\n    </language>\n    <description>\n        <original_author id=\"date\">2024-07-23</original_author>\n        <lifecycle_state>unmanaged</lifecycle_state>\n        <other_details id=\"licence\"></other_details>\n        <other_details id=\"custodian_organisation\"></other_details>\n        <other_details id=\"original_namespace\"></other_details>\n        <other_details id=\"original_publisher\"></other_details>\n        <other_details id=\"custodian_namespace\"></other_details>\n        <other_details id=\"sem_ver\">0.1.0</other_details>\n        <other_details id=\"build_uid\"></other_details>\n        <other_details id=\"Generated By\">Archetype Designer v1.24.9, user=mdt_nl@mdt.nl@better, repositoryId=uro-onco</other_details>\n        <details>\n            <language>\n                <terminology_id>\n                    <value>ISO_639-1</value>\n                </terminology_id>\n                <code_string>en</code_string>\n            </language>\n            <purpose>Not Specified</purpose>\n        </details>\n    </description>\n    <uid>\n        <value>e0dc6c35-a90e-405e-8a63-4742501b3d7d</value>\n    </uid>\n    <template_id>\n        <value>Growth chart</value>\n    </template_id>\n    <concept>Growth chart</concept>\n    <definition>\n        <rm_type_name>COMPOSITION</rm_type_name>\n        <occurrences>\n            <lower_included>true</lower_included>\n            <upper_included>true</upper_included>\n            <lower_unbounded>false</lower_unbounded>\n            <upper_unbounded>false</upper_unbounded>\n            <lower>1</lower>\n            <upper>1</upper>\n        </occurrences>\n        <node_id>at0000</node_id>\n        <attributes xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:type=\"C_SINGLE_ATTRIBUTE\">\n            <rm_attribute_name>category</rm_attribute_name>\n            <existence>\n                <lower_included>true</lower_included>\n                <upper_included>true</upper_included>\n                <lower_unbounded>false</lower_unbounded>\n                <upper_unbounded>false</upper_unbounded>\n                <lower>1</lower>\n                <upper>1</upper>\n            </existence>\n            <match_negated>false</match_negated>\n            <children xsi:type=\"C_COMPLEX_OBJECT\">\n                <rm_type_name>DV_CODED_TEXT</rm_type_name>\n                <occurrences>\n                    <lower_included>true</lower_included>\n                    <upper_included>true</upper_included>\n                    <lower_unbounded>false</lower_unbounded>\n                    <upper_unbounded>false</upper_unbounded>\n                    <lower>1</lower>\n                    <upper>1</upper>\n                </occurrences>\n                <node_id></node_id>\n                <attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n                    <rm_attribute_name>defining_code</rm_attribute_name>\n                    <existence>\n                        <lower_included>true</lower_included>\n                        <upper_included>true</upper_included>\n                        <lower_unbounded>false</lower_unbounded>\n                        <upper_unbounded>false</upper_unbounded>\n                        <lower>1</lower>\n                        <upper>1</upper>\n                    </existence>\n                    <match_negated>false</match_negated>\n                    <children xsi:type=\"C_CODE_PHRASE\">\n                        <rm_type_name>CODE_PHRASE</rm_type_name>\n                        <occurrences>\n                            <lower_included>true</lower_included>\n                            <upper_included>true</upper_included>\n                            <lower_unbounded>false</lower_unbounded>\n                            <upper_unbounded>false</upper_unbounded>\n                            <lower>1</lower>\n                            <upper>1</upper>\n                        </occurrences>\n                        <node_id></node_id>\n                        <terminology_id>\n                            <value>openehr</value>\n                        </terminology_id>\n                        <code_list>433</code_list>\n                    </children>\n                </attributes>\n            </children>\n        </attributes>\n        <attributes xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:type=\"C_SINGLE_ATTRIBUTE\">\n            <rm_attribute_name>context</rm_attribute_name>\n            <existence>\n                <lower_included>true</lower_included>\n                <upper_included>true</upper_included>\n                <lower_unbounded>false</lower_unbounded>\n                <upper_unbounded>false</upper_unbounded>\n                <lower>0</lower>\n                <upper>1</upper>\n            </existence>\n            <match_negated>false</match_negated>\n            <children xsi:type=\"C_COMPLEX_OBJECT\">\n                <rm_type_name>EVENT_CONTEXT</rm_type_name>\n                <occurrences>\n                    <lower_included>true</lower_included>\n                    <upper_included>true</upper_included>\n                    <lower_unbounded>false</lower_unbounded>\n                    <upper_unbounded>false</upper_unbounded>\n                    <lower>1</lower>\n                    <upper>1</upper>\n                </occurrences>\n                <node_id></node_id>\n            </children>\n        </attributes>\n        <attributes xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:type=\"C_MULTIPLE_ATTRIBUTE\">\n            <rm_attribute_name>content</rm_attribute_name>\n            <existence>\n                <lower_included>true</lower_included>\n                <upper_included>true</upper_included>\n                <lower_unbounded>false</lower_unbounded>\n                <upper_unbounded>false</upper_unbounded>\n                <lower>0</lower>\n                <upper>1</upper>\n            </existence>\n            <match_negated>false</match_negated>\n            <children xsi:type=\"C_ARCHETYPE_ROOT\">\n                <rm_type_name>OBSERVATION</rm_type_name>\n                <occurrences>\n                    <lower_included>true</lower_included>\n                    <upper_included>true</upper_included>\n                    <lower_unbounded>false</lower_unbounded>\n                    <upper_unbounded>false</upper_unbounded>\n                    <lower>0</lower>\n                    <upper>1</upper>\n                </occurrences>\n                <node_id>at0000</node_id>\n                <attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n                    <rm_attribute_name>data</rm_attribute_name>\n                    <existence>\n                        <lower_included>true</lower_included>\n                        <upper_included>true</upper_included>\n                        <lower_unbounded>false</lower_unbounded>\n                        <upper_unbounded>false</upper_unbounded>\n                        <lower>1</lower>\n                        <upper>1</upper>\n                    </existence>\n                    <match_negated>false</match_negated>\n                    <children xsi:type=\"C_COMPLEX_OBJECT\">\n                        <rm_type_name>HISTORY</rm_type_name>\n                        <occurrences>\n                            <lower_included>true</lower_included>\n                            <upper_included>true</upper_included>\n                            <lower_unbounded>false</lower_unbounded>\n                            <upper_unbounded>false</upper_unbounded>\n                            <lower>1</lower>\n                            <upper>1</upper>\n                        </occurrences>\n                        <node_id>at0002</node_id>\n                        <attributes xsi:type=\"C_MULTIPLE_ATTRIBUTE\">\n                            <rm_attribute_name>events</rm_attribute_name>\n                            <existence>\n<lower_included>true</lower_included>\n<upper_included>true</upper_included>\n<lower_unbounded>false</lower_unbounded>\n<upper_unbounded>false</upper_unbounded>\n<lower>0</lower>\n<upper>1</upper>\n                            </existence>\n                            <match_negated>false</match_negated>\n                            <children xsi:type=\"C_COMPLEX_OBJECT\">\n<rm_type_name>EVENT</rm_type_name>\n<occurrences>\n    <lower_included>true</lower_included>\n    <upper_included>false</upper_included>\n    <lower_unbounded>false</lower_unbounded>\n    <upper_unbounded>true</upper_unbounded>\n    <lower>0</lower>\n</occurrences>\n<node_id>at0003</node_id>\n<attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n    <rm_attribute_name>data</rm_attribute_name>\n    <existence>\n        <lower_included>true</lower_included>\n        <upper_included>true</upper_included>\n        <lower_unbounded>false</lower_unbounded>\n        <upper_unbounded>false</upper_unbounded>\n        <lower>1</lower>\n        <upper>1</upper>\n    </existence>\n    <match_negated>false</match_negated>\n    <children xsi:type=\"C_COMPLEX_OBJECT\">\n        <rm_type_name>ITEM_TREE</rm_type_name>\n        <occurrences>\n            <lower_included>true</lower_included>\n            <upper_included>true</upper_included>\n            <lower_unbounded>false</lower_unbounded>\n            <upper_unbounded>false</upper_unbounded>\n            <lower>1</lower>\n            <upper>1</upper>\n        </occurrences>\n        <node_id>at0001</node_id>\n        <attributes xsi:type=\"C_MULTIPLE_ATTRIBUTE\">\n            <rm_attribute_name>items</rm_attribute_name>\n            <existence>\n                <lower_included>true</lower_included>\n                <upper_included>true</upper_included>\n                <lower_unbounded>false</lower_unbounded>\n                <upper_unbounded>false</upper_unbounded>\n                <lower>0</lower>\n                <upper>1</upper>\n            </existence>\n            <match_negated>false</match_negated>\n            <children xsi:type=\"C_COMPLEX_OBJECT\">\n                <rm_type_name>ELEMENT</rm_type_name>\n                <occurrences>\n                    <lower_included>true</lower_included>\n                    <upper_included>true</upper_included>\n                    <lower_unbounded>false</lower_unbounded>\n                    <upper_unbounded>false</upper_unbounded>\n                    <lower>1</lower>\n                    <upper>1</upper>\n                </occurrences>\n                <node_id>at0004</node_id>\n                <attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n                    <rm_attribute_name>value</rm_attribute_name>\n                    <existence>\n                        <lower_included>true</lower_included>\n                        <upper_included>true</upper_included>\n                        <lower_unbounded>false</lower_unbounded>\n                        <upper_unbounded>false</upper_unbounded>\n                        <lower>0</lower>\n                        <upper>1</upper>\n                    </existence>\n                    <match_negated>false</match_negated>\n                    <children xsi:type=\"C_DV_QUANTITY\">\n                        <rm_type_name>DV_QUANTITY</rm_type_name>\n                        <occurrences>\n                            <lower_included>true</lower_included>\n                            <upper_included>true</upper_included>\n                            <lower_unbounded>false</lower_unbounded>\n                            <upper_unbounded>false</upper_unbounded>\n                            <lower>1</lower>\n                            <upper>1</upper>\n                        </occurrences>\n                        <node_id></node_id>\n                        <property>\n                            <terminology_id>\n<value>openehr</value>\n                            </terminology_id>\n                            <code_string>124</code_string>\n                        </property>\n                        <list>\n                            <magnitude>\n<lower_included>true</lower_included>\n<upper_included>true</upper_included>\n<lower_unbounded>false</lower_unbounded>\n<upper_unbounded>false</upper_unbounded>\n<lower>0.0</lower>\n<upper>1000.0</upper>\n                            </magnitude>\n                            <units>kg</units>\n                        </list>\n                        <list>\n                            <magnitude>\n<lower_included>true</lower_included>\n<upper_included>true</upper_included>\n<lower_unbounded>false</lower_unbounded>\n<upper_unbounded>false</upper_unbounded>\n<lower>0.0</lower>\n<upper>2000.0</upper>\n                            </magnitude>\n                            <units>[lb_av]</units>\n                        </list>\n                        <list>\n                            <magnitude>\n<lower_included>true</lower_included>\n<upper_included>true</upper_included>\n<lower_unbounded>false</lower_unbounded>\n<upper_unbounded>false</upper_unbounded>\n<lower>0.0</lower>\n<upper>1000000.0</upper>\n                            </magnitude>\n                            <units>g</units>\n                        </list>\n                    </children>\n                </attributes>\n            </children>\n            <children xsi:type=\"C_COMPLEX_OBJECT\">\n                <rm_type_name>ELEMENT</rm_type_name>\n                <occurrences>\n                    <lower_included>true</lower_included>\n                    <upper_included>true</upper_included>\n                    <lower_unbounded>false</lower_unbounded>\n                    <upper_unbounded>false</upper_unbounded>\n                    <lower>0</lower>\n                    <upper>1</upper>\n                </occurrences>\n                <node_id>at0024</node_id>\n                <attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n                    <rm_attribute_name>value</rm_attribute_name>\n                    <existence>\n                        <lower_included>true</lower_included>\n                        <upper_included>true</upper_included>\n                        <lower_unbounded>false</lower_unbounded>\n                        <upper_unbounded>false</upper_unbounded>\n                        <lower>0</lower>\n                        <upper>1</upper>\n                    </existence>\n                    <match_negated>false</match_negated>\n                    <children xsi:type=\"C_COMPLEX_OBJECT\">\n                        <rm_type_name>DV_TEXT</rm_type_name>\n                        <occurrences>\n                            <lower_included>true</lower_included>\n                            <upper_included>true</upper_included>\n                            <lower_unbounded>false</lower_unbounded>\n                            <upper_unbounded>false</upper_unbounded>\n                            <lower>1</lower>\n                            <upper>1</upper>\n                        </occurrences>\n                        <node_id></node_id>\n                    </children>\n                </attributes>\n            </children>\n            <cardinality>\n                <is_ordered>false</is_ordered>\n                <is_unique>false</is_unique>\n                <interval>\n                    <lower_included>true</lower_included>\n                    <upper_included>false</upper_included>\n                    <lower_unbounded>false</lower_unbounded>\n                    <upper_unbounded>true</upper_unbounded>\n                    <lower>1</lower>\n                </interval>\n            </cardinality>\n        </attributes>\n    </children>\n</attributes>\n<attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n    <rm_attribute_name>state</rm_attribute_name>\n    <existence>\n        <lower_included>true</lower_included>\n        <upper_included>true</upper_included>\n        <lower_unbounded>false</lower_unbounded>\n        <upper_unbounded>false</upper_unbounded>\n        <lower>0</lower>\n        <upper>1</upper>\n    </existence>\n    <match_negated>false</match_negated>\n    <children xsi:type=\"C_COMPLEX_OBJECT\">\n        <rm_type_name>ITEM_TREE</rm_type_name>\n        <occurrences>\n            <lower_included>true</lower_included>\n            <upper_included>true</upper_included>\n            <lower_unbounded>false</lower_unbounded>\n            <upper_unbounded>false</upper_unbounded>\n            <lower>1</lower>\n            <upper>1</upper>\n        </occurrences>\n        <node_id>at0008</node_id>\n        <attributes xsi:type=\"C_MULTIPLE_ATTRIBUTE\">\n            <rm_attribute_name>items</rm_attribute_name>\n            <existence>\n                <lower_included>true</lower_included>\n                <upper_included>true</upper_included>\n                <lower_unbounded>false</lower_unbounded>\n                <upper_unbounded>false</upper_unbounded>\n                <lower>0</lower>\n                <upper>1</upper>\n            </existence>\n            <match_negated>false</match_negated>\n            <children xsi:type=\"C_COMPLEX_OBJECT\">\n                <rm_type_name>ELEMENT</rm_type_name>\n                <occurrences>\n                    <lower_included>true</lower_included>\n                    <upper_included>true</upper_included>\n                    <lower_unbounded>false</lower_unbounded>\n                    <upper_unbounded>false</upper_unbounded>\n                    <lower>0</lower>\n                    <upper>1</upper>\n                </occurrences>\n                <node_id>at0009</node_id>\n                <attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n                    <rm_attribute_name>value</rm_attribute_name>\n                    <existence>\n                        <lower_included>true</lower_included>\n                        <upper_included>true</upper_included>\n                        <lower_unbounded>false</lower_unbounded>\n                        <upper_unbounded>false</upper_unbounded>\n                        <lower>0</lower>\n                        <upper>1</upper>\n                    </existence>\n                    <match_negated>false</match_negated>\n                    <children xsi:type=\"C_COMPLEX_OBJECT\">\n                        <rm_type_name>DV_CODED_TEXT</rm_type_name>\n                        <occurrences>\n                            <lower_included>true</lower_included>\n                            <upper_included>true</upper_included>\n                            <lower_unbounded>false</lower_unbounded>\n                            <upper_unbounded>false</upper_unbounded>\n                            <lower>1</lower>\n                            <upper>1</upper>\n                        </occurrences>\n                        <node_id></node_id>\n                        <attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n                            <rm_attribute_name>defining_code</rm_attribute_name>\n                            <existence>\n<lower_included>true</lower_included>\n<upper_included>true</upper_included>\n<lower_unbounded>false</lower_unbounded>\n<upper_unbounded>false</upper_unbounded>\n<lower>1</lower>\n<upper>1</upper>\n                            </existence>\n                            <match_negated>false</match_negated>\n                            <children xsi:type=\"C_CODE_PHRASE\">\n<rm_type_name>CODE_PHRASE</rm_type_name>\n<occurrences>\n    <lower_included>true</lower_included>\n    <upper_included>true</upper_included>\n    <lower_unbounded>false</lower_unbounded>\n    <upper_unbounded>false</upper_unbounded>\n    <lower>1</lower>\n    <upper>1</upper>\n</occurrences>\n<node_id></node_id>\n<terminology_id>\n    <value>local</value>\n</terminology_id>\n<code_list>at0013</code_list>\n<code_list>at0017</code_list>\n<code_list>at0011</code_list>\n<code_list>at0028</code_list>\n<code_list>at0010</code_list>\n                            </children>\n                        </attributes>\n                    </children>\n                </attributes>\n            </children>\n            <children xsi:type=\"C_COMPLEX_OBJECT\">\n                <rm_type_name>ELEMENT</rm_type_name>\n                <occurrences>\n                    <lower_included>true</lower_included>\n                    <upper_included>false</upper_included>\n                    <lower_unbounded>false</lower_unbounded>\n                    <upper_unbounded>true</upper_unbounded>\n                    <lower>0</lower>\n                </occurrences>\n                <node_id>at0025</node_id>\n                <attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n                    <rm_attribute_name>value</rm_attribute_name>\n                    <existence>\n                        <lower_included>true</lower_included>\n                        <upper_included>true</upper_included>\n                        <lower_unbounded>false</lower_unbounded>\n                        <upper_unbounded>false</upper_unbounded>\n                        <lower>0</lower>\n                        <upper>1</upper>\n                    </existence>\n                    <match_negated>false</match_negated>\n                    <children xsi:type=\"C_COMPLEX_OBJECT\">\n                        <rm_type_name>DV_TEXT</rm_type_name>\n                        <occurrences>\n                            <lower_included>true</lower_included>\n                            <upper_included>true</upper_included>\n                            <lower_unbounded>false</lower_unbounded>\n                            <upper_unbounded>false</upper_unbounded>\n                            <lower>1</lower>\n                            <upper>1</upper>\n                        </occurrences>\n                        <node_id></node_id>\n                    </children>\n                </attributes>\n            </children>\n            <cardinality>\n                <is_ordered>true</is_ordered>\n                <is_unique>false</is_unique>\n                <interval>\n                    <lower_included>true</lower_included>\n                    <upper_included>false</upper_included>\n                    <lower_unbounded>false</lower_unbounded>\n                    <upper_unbounded>true</upper_unbounded>\n                    <lower>0</lower>\n                </interval>\n            </cardinality>\n        </attributes>\n    </children>\n</attributes>\n                            </children>\n                            <children xsi:type=\"C_COMPLEX_OBJECT\">\n<rm_type_name>POINT_EVENT</rm_type_name>\n<occurrences>\n    <lower_included>true</lower_included>\n    <upper_included>true</upper_included>\n    <lower_unbounded>false</lower_unbounded>\n    <upper_unbounded>false</upper_unbounded>\n    <lower>0</lower>\n    <upper>1</upper>\n</occurrences>\n<node_id>at0026</node_id>\n<attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n    <rm_attribute_name>data</rm_attribute_name>\n    <existence>\n        <lower_included>true</lower_included>\n        <upper_included>true</upper_included>\n        <lower_unbounded>false</lower_unbounded>\n        <upper_unbounded>false</upper_unbounded>\n        <lower>1</lower>\n        <upper>1</upper>\n    </existence>\n    <match_negated>false</match_negated>\n    <children xsi:type=\"C_COMPLEX_OBJECT\">\n        <rm_type_name>ITEM_TREE</rm_type_name>\n        <occurrences>\n            <lower_included>true</lower_included>\n            <upper_included>true</upper_included>\n            <lower_unbounded>false</lower_unbounded>\n            <upper_unbounded>false</upper_unbounded>\n            <lower>1</lower>\n            <upper>1</upper>\n        </occurrences>\n        <node_id>at0001</node_id>\n        <attributes xsi:type=\"C_MULTIPLE_ATTRIBUTE\">\n            <rm_attribute_name>items</rm_attribute_name>\n            <existence>\n                <lower_included>true</lower_included>\n                <upper_included>true</upper_included>\n                <lower_unbounded>false</lower_unbounded>\n                <upper_unbounded>false</upper_unbounded>\n                <lower>0</lower>\n                <upper>1</upper>\n            </existence>\n            <match_negated>false</match_negated>\n            <children xsi:type=\"C_COMPLEX_OBJECT\">\n                <rm_type_name>ELEMENT</rm_type_name>\n                <occurrences>\n                    <lower_included>true</lower_included>\n                    <upper_included>true</upper_included>\n                    <lower_unbounded>false</lower_unbounded>\n                    <upper_unbounded>false</upper_unbounded>\n                    <lower>1</lower>\n                    <upper>1</upper>\n                </occurrences>\n                <node_id>at0004</node_id>\n                <attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n                    <rm_attribute_name>value</rm_attribute_name>\n                    <existence>\n                        <lower_included>true</lower_included>\n                        <upper_included>true</upper_included>\n                        <lower_unbounded>false</lower_unbounded>\n                        <upper_unbounded>false</upper_unbounded>\n                        <lower>0</lower>\n                        <upper>1</upper>\n                    </existence>\n                    <match_negated>false</match_negated>\n                    <children xsi:type=\"C_DV_QUANTITY\">\n                        <rm_type_name>DV_QUANTITY</rm_type_name>\n                        <occurrences>\n                            <lower_included>true</lower_included>\n                            <upper_included>true</upper_included>\n                            <lower_unbounded>false</lower_unbounded>\n                            <upper_unbounded>false</upper_unbounded>\n                            <lower>1</lower>\n                            <upper>1</upper>\n                        </occurrences>\n                        <node_id></node_id>\n                        <property>\n                            <terminology_id>\n<value>openehr</value>\n                            </terminology_id>\n                            <code_string>124</code_string>\n                        </property>\n                        <list>\n                            <magnitude>\n<lower_included>true</lower_included>\n<upper_included>true</upper_included>\n<lower_unbounded>false</lower_unbounded>\n<upper_unbounded>false</upper_unbounded>\n<lower>0.0</lower>\n<upper>1000.0</upper>\n                            </magnitude>\n                            <units>kg</units>\n                        </list>\n                        <list>\n                            <magnitude>\n<lower_included>true</lower_included>\n<upper_included>true</upper_included>\n<lower_unbounded>false</lower_unbounded>\n<upper_unbounded>false</upper_unbounded>\n<lower>0.0</lower>\n<upper>2000.0</upper>\n                            </magnitude>\n                            <units>[lb_av]</units>\n                        </list>\n                        <list>\n                            <magnitude>\n<lower_included>true</lower_included>\n<upper_included>true</upper_included>\n<lower_unbounded>false</lower_unbounded>\n<upper_unbounded>false</upper_unbounded>\n<lower>0.0</lower>\n<upper>1000000.0</upper>\n                            </magnitude>\n                            <units>g</units>\n                        </list>\n                    </children>\n                </attributes>\n            </children>\n            <children xsi:type=\"C_COMPLEX_OBJECT\">\n                <rm_type_name>ELEMENT</rm_type_name>\n                <occurrences>\n                    <lower_included>true</lower_included>\n                    <upper_included>true</upper_included>\n                    <lower_unbounded>false</lower_unbounded>\n                    <upper_unbounded>false</upper_unbounded>\n                    <lower>0</lower>\n                    <upper>1</upper>\n                </occurrences>\n                <node_id>at0024</node_id>\n                <attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n                    <rm_attribute_name>value</rm_attribute_name>\n                    <existence>\n                        <lower_included>true</lower_included>\n                        <upper_included>true</upper_included>\n                        <lower_unbounded>false</lower_unbounded>\n                        <upper_unbounded>false</upper_unbounded>\n                        <lower>0</lower>\n                        <upper>1</upper>\n                    </existence>\n                    <match_negated>false</match_negated>\n                    <children xsi:type=\"C_COMPLEX_OBJECT\">\n                        <rm_type_name>DV_TEXT</rm_type_name>\n                        <occurrences>\n                            <lower_included>true</lower_included>\n                            <upper_included>true</upper_included>\n                            <lower_unbounded>false</lower_unbounded>\n                            <upper_unbounded>false</upper_unbounded>\n                            <lower>1</lower>\n                            <upper>1</upper>\n                        </occurrences>\n                        <node_id></node_id>\n                    </children>\n                </attributes>\n            </children>\n            <cardinality>\n                <is_ordered>false</is_ordered>\n                <is_unique>false</is_unique>\n                <interval>\n                    <lower_included>true</lower_included>\n                    <upper_included>false</upper_included>\n                    <lower_unbounded>false</lower_unbounded>\n                    <upper_unbounded>true</upper_unbounded>\n                    <lower>1</lower>\n                </interval>\n            </cardinality>\n        </attributes>\n    </children>\n</attributes>\n<attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n    <rm_attribute_name>state</rm_attribute_name>\n    <existence>\n        <lower_included>true</lower_included>\n        <upper_included>true</upper_included>\n        <lower_unbounded>false</lower_unbounded>\n        <upper_unbounded>false</upper_unbounded>\n        <lower>0</lower>\n        <upper>1</upper>\n    </existence>\n    <match_negated>false</match_negated>\n    <children xsi:type=\"C_COMPLEX_OBJECT\">\n        <rm_type_name>ITEM_TREE</rm_type_name>\n        <occurrences>\n            <lower_included>true</lower_included>\n            <upper_included>true</upper_included>\n            <lower_unbounded>false</lower_unbounded>\n            <upper_unbounded>false</upper_unbounded>\n            <lower>1</lower>\n            <upper>1</upper>\n        </occurrences>\n        <node_id>at0008</node_id>\n        <attributes xsi:type=\"C_MULTIPLE_ATTRIBUTE\">\n            <rm_attribute_name>items</rm_attribute_name>\n            <existence>\n                <lower_included>true</lower_included>\n                <upper_included>true</upper_included>\n                <lower_unbounded>false</lower_unbounded>\n                <upper_unbounded>false</upper_unbounded>\n                <lower>0</lower>\n                <upper>1</upper>\n            </existence>\n            <match_negated>false</match_negated>\n            <children xsi:type=\"C_COMPLEX_OBJECT\">\n                <rm_type_name>ELEMENT</rm_type_name>\n                <occurrences>\n                    <lower_included>true</lower_included>\n                    <upper_included>true</upper_included>\n                    <lower_unbounded>false</lower_unbounded>\n                    <upper_unbounded>false</upper_unbounded>\n                    <lower>0</lower>\n                    <upper>1</upper>\n                </occurrences>\n                <node_id>at0009</node_id>\n                <attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n                    <rm_attribute_name>value</rm_attribute_name>\n                    <existence>\n                        <lower_included>true</lower_included>\n                        <upper_included>true</upper_included>\n                        <lower_unbounded>false</lower_unbounded>\n                        <upper_unbounded>false</upper_unbounded>\n                        <lower>0</lower>\n                        <upper>1</upper>\n                    </existence>\n                    <match_negated>false</match_negated>\n                    <children xsi:type=\"C_COMPLEX_OBJECT\">\n                        <rm_type_name>DV_CODED_TEXT</rm_type_name>\n                        <occurrences>\n                            <lower_included>true</lower_included>\n                            <upper_included>true</upper_included>\n                            <lower_unbounded>false</lower_unbounded>\n                            <upper_unbounded>false</upper_unbounded>\n                            <lower>1</lower>\n                            <upper>1</upper>\n                        </occurrences>\n                        <node_id></node_id>\n                        <attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n                            <rm_attribute_name>defining_code</rm_attribute_name>\n                            <existence>\n<lower_included>true</lower_included>\n<upper_included>true</upper_included>\n<lower_unbounded>false</lower_unbounded>\n<upper_unbounded>false</upper_unbounded>\n<lower>1</lower>\n<upper>1</upper>\n                            </existence>\n                            <match_negated>false</match_negated>\n                            <children xsi:type=\"C_CODE_PHRASE\">\n<rm_type_name>CODE_PHRASE</rm_type_name>\n<occurrences>\n    <lower_included>true</lower_included>\n    <upper_included>true</upper_included>\n    <lower_unbounded>false</lower_unbounded>\n    <upper_unbounded>false</upper_unbounded>\n    <lower>1</lower>\n    <upper>1</upper>\n</occurrences>\n<node_id></node_id>\n<terminology_id>\n    <value>local</value>\n</terminology_id>\n<code_list>at0013</code_list>\n<code_list>at0017</code_list>\n<code_list>at0011</code_list>\n<code_list>at0028</code_list>\n<code_list>at0010</code_list>\n                            </children>\n                        </attributes>\n                    </children>\n                </attributes>\n            </children>\n            <children xsi:type=\"C_COMPLEX_OBJECT\">\n                <rm_type_name>ELEMENT</rm_type_name>\n                <occurrences>\n                    <lower_included>true</lower_included>\n                    <upper_included>false</upper_included>\n                    <lower_unbounded>false</lower_unbounded>\n                    <upper_unbounded>true</upper_unbounded>\n                    <lower>0</lower>\n                </occurrences>\n                <node_id>at0025</node_id>\n                <attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n                    <rm_attribute_name>value</rm_attribute_name>\n                    <existence>\n                        <lower_included>true</lower_included>\n                        <upper_included>true</upper_included>\n                        <lower_unbounded>false</lower_unbounded>\n                        <upper_unbounded>false</upper_unbounded>\n                        <lower>0</lower>\n                        <upper>1</upper>\n                    </existence>\n                    <match_negated>false</match_negated>\n                    <children xsi:type=\"C_COMPLEX_OBJECT\">\n                        <rm_type_name>DV_TEXT</rm_type_name>\n                        <occurrences>\n                            <lower_included>true</lower_included>\n                            <upper_included>true</upper_included>\n                            <lower_unbounded>false</lower_unbounded>\n                            <upper_unbounded>false</upper_unbounded>\n                            <lower>1</lower>\n                            <upper>1</upper>\n                        </occurrences>\n                        <node_id></node_id>\n                    </children>\n                </attributes>\n            </children>\n            <cardinality>\n                <is_ordered>true</is_ordered>\n                <is_unique>false</is_unique>\n                <interval>\n                    <lower_included>true</lower_included>\n                    <upper_included>false</upper_included>\n                    <lower_unbounded>false</lower_unbounded>\n                    <upper_unbounded>true</upper_unbounded>\n                    <lower>0</lower>\n                </interval>\n            </cardinality>\n        </attributes>\n    </children>\n</attributes>\n                            </children>\n                            <cardinality>\n<is_ordered>false</is_ordered>\n<is_unique>false</is_unique>\n<interval>\n    <lower_included>true</lower_included>\n    <upper_included>false</upper_included>\n    <lower_unbounded>false</lower_unbounded>\n    <upper_unbounded>true</upper_unbounded>\n    <lower>1</lower>\n</interval>\n                            </cardinality>\n                        </attributes>\n                    </children>\n                </attributes>\n                <attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n                    <rm_attribute_name>protocol</rm_attribute_name>\n                    <existence>\n                        <lower_included>true</lower_included>\n                        <upper_included>true</upper_included>\n                        <lower_unbounded>false</lower_unbounded>\n                        <upper_unbounded>false</upper_unbounded>\n                        <lower>0</lower>\n                        <upper>1</upper>\n                    </existence>\n                    <match_negated>false</match_negated>\n                    <children xsi:type=\"C_COMPLEX_OBJECT\">\n                        <rm_type_name>ITEM_TREE</rm_type_name>\n                        <occurrences>\n                            <lower_included>true</lower_included>\n                            <upper_included>true</upper_included>\n                            <lower_unbounded>false</lower_unbounded>\n                            <upper_unbounded>false</upper_unbounded>\n                            <lower>1</lower>\n                            <upper>1</upper>\n                        </occurrences>\n                        <node_id>at0015</node_id>\n                        <attributes xsi:type=\"C_MULTIPLE_ATTRIBUTE\">\n                            <rm_attribute_name>items</rm_attribute_name>\n                            <existence>\n<lower_included>true</lower_included>\n<upper_included>true</upper_included>\n<lower_unbounded>false</lower_unbounded>\n<upper_unbounded>false</upper_unbounded>\n<lower>0</lower>\n<upper>1</upper>\n                            </existence>\n                            <match_negated>false</match_negated>\n                            <children xsi:type=\"ARCHETYPE_SLOT\">\n<rm_type_name>CLUSTER</rm_type_name>\n<occurrences>\n    <lower_included>true</lower_included>\n    <upper_included>true</upper_included>\n    <lower_unbounded>false</lower_unbounded>\n    <upper_unbounded>false</upper_unbounded>\n    <lower>0</lower>\n    <upper>1</upper>\n</occurrences>\n<node_id>at0020</node_id>\n<includes>\n    <string_expression>archetype_id/value matches {/openEHR-EHR-CLUSTER\\.device(-[a-zA-Z0-9_]+)*\\.v1/}</string_expression>\n    <expression xsi:type=\"EXPR_BINARY_OPERATOR\">\n        <type>Boolean</type>\n        <operator>2007</operator>\n        <precedence_overridden>false</precedence_overridden>\n        <left_operand xsi:type=\"EXPR_LEAF\">\n            <type>String</type>\n            <item xmlns:xs=\"http://www.w3.org/2001/XMLSchema\" xsi:type=\"xs:string\">archetype_id/value</item>\n            <reference_type>attribute</reference_type>\n        </left_operand>\n        <right_operand xsi:type=\"EXPR_LEAF\">\n            <type>String</type>\n            <item xsi:type=\"C_STRING\">\n                <pattern>openEHR-EHR-CLUSTER\\.device(-[a-zA-Z0-9_]+)*\\.v1</pattern>\n            </item>\n            <reference_type>constraint</reference_type>\n        </right_operand>\n    </expression>\n</includes>\n                            </children>\n                            <children xsi:type=\"ARCHETYPE_SLOT\">\n<rm_type_name>CLUSTER</rm_type_name>\n<occurrences>\n    <lower_included>true</lower_included>\n    <upper_included>false</upper_included>\n    <lower_unbounded>false</lower_unbounded>\n    <upper_unbounded>true</upper_unbounded>\n    <lower>0</lower>\n</occurrences>\n<node_id>at0027</node_id>\n<includes>\n    <string_expression>archetype_id/value matches {/.*/}</string_expression>\n    <expression xsi:type=\"EXPR_BINARY_OPERATOR\">\n        <type>Boolean</type>\n        <operator>2007</operator>\n        <precedence_overridden>false</precedence_overridden>\n        <left_operand xsi:type=\"EXPR_LEAF\">\n            <type>String</type>\n            <item xmlns:xs=\"http://www.w3.org/2001/XMLSchema\" xsi:type=\"xs:string\">archetype_id/value</item>\n            <reference_type>attribute</reference_type>\n        </left_operand>\n        <right_operand xsi:type=\"EXPR_LEAF\">\n            <type>String</type>\n            <item xsi:type=\"C_STRING\">\n                <pattern>.*</pattern>\n            </item>\n            <reference_type>constraint</reference_type>\n        </right_operand>\n    </expression>\n</includes>\n                            </children>\n                            <cardinality>\n<is_ordered>true</is_ordered>\n<is_unique>false</is_unique>\n<interval>\n    <lower_included>true</lower_included>\n    <upper_included>false</upper_included>\n    <lower_unbounded>false</lower_unbounded>\n    <upper_unbounded>true</upper_unbounded>\n    <lower>0</lower>\n</interval>\n                            </cardinality>\n                        </attributes>\n                    </children>\n                </attributes>\n                <archetype_id>\n                    <value>openEHR-EHR-OBSERVATION.body_weight.v2</value>\n                </archetype_id>\n                <term_definitions code=\"at0001\">\n                    <items id=\"text\">Simple</items>\n                    <items id=\"description\">@ internal @</items>\n                </term_definitions>\n                <term_definitions code=\"at0002\">\n                    <items id=\"text\">history</items>\n                    <items id=\"description\">@ internal @</items>\n                </term_definitions>\n                <term_definitions code=\"at0003\">\n                    <items id=\"text\">Any event</items>\n                    <items id=\"description\">Default, unspecified point in time or interval event which may be explicitly defined in a template or at run-time.</items>\n                </term_definitions>\n                <term_definitions code=\"at0004\">\n                    <items id=\"text\">Weight</items>\n                    <items id=\"description\">The weight of the individual.</items>\n                </term_definitions>\n                <term_definitions code=\"at0008\">\n                    <items id=\"text\">state structure</items>\n                    <items id=\"description\">@ internal @</items>\n                </term_definitions>\n                <term_definitions code=\"at0009\">\n                    <items id=\"text\">State of dress</items>\n                    <items id=\"description\">Description of the state of dress of the person at the time of weighing.</items>\n                </term_definitions>\n                <term_definitions code=\"at0010\">\n                    <items id=\"text\">Fully clothed, including shoes</items>\n                    <items id=\"description\">Clothing which may add significantly to weight, including shoes.</items>\n                </term_definitions>\n                <term_definitions code=\"at0011\">\n                    <items id=\"text\">Lightly clothed/underwear</items>\n                    <items id=\"description\">Clothing which will not add to weight significantly.</items>\n                </term_definitions>\n                <term_definitions code=\"at0013\">\n                    <items id=\"text\">Naked</items>\n                    <items id=\"description\">Without any clothes.</items>\n                </term_definitions>\n                <term_definitions code=\"at0015\">\n                    <items id=\"text\">protocol structure</items>\n                    <items id=\"description\">@ internal @</items>\n                </term_definitions>\n                <term_definitions code=\"at0017\">\n                    <items id=\"text\">Nappy/diaper</items>\n                    <items id=\"description\">Wearing only a nappy - which may add significantly to weight.</items>\n                </term_definitions>\n                <term_definitions code=\"at0020\">\n                    <items id=\"text\">Device</items>\n                    <items id=\"description\">Details about the weighing device.</items>\n                </term_definitions>\n                <term_definitions code=\"at0024\">\n                    <items id=\"text\">Comment</items>\n                    <items id=\"description\">Additional narrative about the measurement of Body weight, not captured in other fields.</items>\n                </term_definitions>\n                <term_definitions code=\"at0025\">\n                    <items id=\"text\">Confounding factors</items>\n                    <items id=\"description\">Record any issues or factors that may impact on the measurement of body weight eg timing in menstrual cycle, timing of recent bowel motion or noting of amputation.</items>\n                </term_definitions>\n                <term_definitions code=\"at0026\">\n                    <items id=\"text\">Birth</items>\n                    <items id=\"description\">Usually the first weight, measured soon after birth. This event will only be used once per health record&#13;\n.</items>\n                </term_definitions>\n                <term_definitions code=\"at0027\">\n                    <items id=\"text\">Extension</items>\n                    <items id=\"description\">Additional information required to capture local content or to align with other reference models/formalisms.</items>\n                    <items id=\"comment\">For example: local information requirements or additional metadata to align with FHIR or CIMI equivalents.</items>\n                </term_definitions>\n                <term_definitions code=\"at0028\">\n                    <items id=\"text\">Fully clothed, without shoes</items>\n                    <items id=\"description\">Clothing which may add significantly to weight.</items>\n                </term_definitions>\n                <term_definitions code=\"at0000\">\n                    <items id=\"text\">Body weight</items>\n                    <items id=\"description\">Measurement of the body weight of an individual.</items>\n                </term_definitions>\n                <term_definitions code=\"[lb_av]\">\n                    <items id=\"text\">lbm</items>\n                    <items id=\"description\">pound mass</items>\n                </term_definitions>\n                <term_bindings terminology=\"LOINC\">\n                    <items code=\"at0004\">\n                        <value>\n                            <terminology_id>\n<value>LOINC</value>\n                            </terminology_id>\n                            <code_string>[LOINC::29463-7]</code_string>\n                        </value>\n                    </items>\n                </term_bindings>\n            </children>\n            <children xsi:type=\"C_ARCHETYPE_ROOT\">\n                <rm_type_name>OBSERVATION</rm_type_name>\n                <occurrences>\n                    <lower_included>true</lower_included>\n                    <upper_included>true</upper_included>\n                    <lower_unbounded>false</lower_unbounded>\n                    <upper_unbounded>false</upper_unbounded>\n                    <lower>0</lower>\n                    <upper>1</upper>\n                </occurrences>\n                <node_id>at0000</node_id>\n                <attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n                    <rm_attribute_name>data</rm_attribute_name>\n                    <existence>\n                        <lower_included>true</lower_included>\n                        <upper_included>true</upper_included>\n                        <lower_unbounded>false</lower_unbounded>\n                        <upper_unbounded>false</upper_unbounded>\n                        <lower>1</lower>\n                        <upper>1</upper>\n                    </existence>\n                    <match_negated>false</match_negated>\n                    <children xsi:type=\"C_COMPLEX_OBJECT\">\n                        <rm_type_name>HISTORY</rm_type_name>\n                        <occurrences>\n                            <lower_included>true</lower_included>\n                            <upper_included>true</upper_included>\n                            <lower_unbounded>false</lower_unbounded>\n                            <upper_unbounded>false</upper_unbounded>\n                            <lower>1</lower>\n                            <upper>1</upper>\n                        </occurrences>\n                        <node_id>at0001</node_id>\n                        <attributes xsi:type=\"C_MULTIPLE_ATTRIBUTE\">\n                            <rm_attribute_name>events</rm_attribute_name>\n                            <existence>\n<lower_included>true</lower_included>\n<upper_included>true</upper_included>\n<lower_unbounded>false</lower_unbounded>\n<upper_unbounded>false</upper_unbounded>\n<lower>0</lower>\n<upper>1</upper>\n                            </existence>\n                            <match_negated>false</match_negated>\n                            <children xsi:type=\"C_COMPLEX_OBJECT\">\n<rm_type_name>EVENT</rm_type_name>\n<occurrences>\n    <lower_included>true</lower_included>\n    <upper_included>false</upper_included>\n    <lower_unbounded>false</lower_unbounded>\n    <upper_unbounded>true</upper_unbounded>\n    <lower>0</lower>\n</occurrences>\n<node_id>at0002</node_id>\n<attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n    <rm_attribute_name>data</rm_attribute_name>\n    <existence>\n        <lower_included>true</lower_included>\n        <upper_included>true</upper_included>\n        <lower_unbounded>false</lower_unbounded>\n        <upper_unbounded>false</upper_unbounded>\n        <lower>1</lower>\n        <upper>1</upper>\n    </existence>\n    <match_negated>false</match_negated>\n    <children xsi:type=\"C_COMPLEX_OBJECT\">\n        <rm_type_name>ITEM_TREE</rm_type_name>\n        <occurrences>\n            <lower_included>true</lower_included>\n            <upper_included>true</upper_included>\n            <lower_unbounded>false</lower_unbounded>\n            <upper_unbounded>false</upper_unbounded>\n            <lower>1</lower>\n            <upper>1</upper>\n        </occurrences>\n        <node_id>at0003</node_id>\n        <attributes xsi:type=\"C_MULTIPLE_ATTRIBUTE\">\n            <rm_attribute_name>items</rm_attribute_name>\n            <existence>\n                <lower_included>true</lower_included>\n                <upper_included>true</upper_included>\n                <lower_unbounded>false</lower_unbounded>\n                <upper_unbounded>false</upper_unbounded>\n                <lower>0</lower>\n                <upper>1</upper>\n            </existence>\n            <match_negated>false</match_negated>\n            <children xsi:type=\"C_COMPLEX_OBJECT\">\n                <rm_type_name>ELEMENT</rm_type_name>\n                <occurrences>\n                    <lower_included>true</lower_included>\n                    <upper_included>true</upper_included>\n                    <lower_unbounded>false</lower_unbounded>\n                    <upper_unbounded>false</upper_unbounded>\n                    <lower>1</lower>\n                    <upper>1</upper>\n                </occurrences>\n                <node_id>at0004</node_id>\n                <attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n                    <rm_attribute_name>value</rm_attribute_name>\n                    <existence>\n                        <lower_included>true</lower_included>\n                        <upper_included>true</upper_included>\n                        <lower_unbounded>false</lower_unbounded>\n                        <upper_unbounded>false</upper_unbounded>\n                        <lower>0</lower>\n                        <upper>1</upper>\n                    </existence>\n                    <match_negated>false</match_negated>\n                    <children xsi:type=\"C_DV_QUANTITY\">\n                        <rm_type_name>DV_QUANTITY</rm_type_name>\n                        <occurrences>\n                            <lower_included>true</lower_included>\n                            <upper_included>true</upper_included>\n                            <lower_unbounded>false</lower_unbounded>\n                            <upper_unbounded>false</upper_unbounded>\n                            <lower>1</lower>\n                            <upper>1</upper>\n                        </occurrences>\n                        <node_id></node_id>\n                        <property>\n                            <terminology_id>\n<value>openehr</value>\n                            </terminology_id>\n                            <code_string>122</code_string>\n                        </property>\n                        <list>\n                            <magnitude>\n<lower_included>true</lower_included>\n<upper_included>true</upper_included>\n<lower_unbounded>false</lower_unbounded>\n<upper_unbounded>false</upper_unbounded>\n<lower>0.0</lower>\n<upper>1000.0</upper>\n                            </magnitude>\n                            <units>cm</units>\n                        </list>\n                        <list>\n                            <magnitude>\n<lower_included>true</lower_included>\n<upper_included>true</upper_included>\n<lower_unbounded>false</lower_unbounded>\n<upper_unbounded>false</upper_unbounded>\n<lower>0.0</lower>\n<upper>250.0</upper>\n                            </magnitude>\n                            <units>[in_i]</units>\n                        </list>\n                    </children>\n                </attributes>\n            </children>\n            <children xsi:type=\"C_COMPLEX_OBJECT\">\n                <rm_type_name>ELEMENT</rm_type_name>\n                <occurrences>\n                    <lower_included>true</lower_included>\n                    <upper_included>true</upper_included>\n                    <lower_unbounded>false</lower_unbounded>\n                    <upper_unbounded>false</upper_unbounded>\n                    <lower>0</lower>\n                    <upper>1</upper>\n                </occurrences>\n                <node_id>at0018</node_id>\n                <attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n                    <rm_attribute_name>value</rm_attribute_name>\n                    <existence>\n                        <lower_included>true</lower_included>\n                        <upper_included>true</upper_included>\n                        <lower_unbounded>false</lower_unbounded>\n                        <upper_unbounded>false</upper_unbounded>\n                        <lower>0</lower>\n                        <upper>1</upper>\n                    </existence>\n                    <match_negated>false</match_negated>\n                    <children xsi:type=\"C_COMPLEX_OBJECT\">\n                        <rm_type_name>DV_TEXT</rm_type_name>\n                        <occurrences>\n                            <lower_included>true</lower_included>\n                            <upper_included>true</upper_included>\n                            <lower_unbounded>false</lower_unbounded>\n                            <upper_unbounded>false</upper_unbounded>\n                            <lower>1</lower>\n                            <upper>1</upper>\n                        </occurrences>\n                        <node_id></node_id>\n                    </children>\n                </attributes>\n            </children>\n            <cardinality>\n                <is_ordered>false</is_ordered>\n                <is_unique>false</is_unique>\n                <interval>\n                    <lower_included>true</lower_included>\n                    <upper_included>false</upper_included>\n                    <lower_unbounded>false</lower_unbounded>\n                    <upper_unbounded>true</upper_unbounded>\n                    <lower>1</lower>\n                </interval>\n            </cardinality>\n        </attributes>\n    </children>\n</attributes>\n<attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n    <rm_attribute_name>state</rm_attribute_name>\n    <existence>\n        <lower_included>true</lower_included>\n        <upper_included>true</upper_included>\n        <lower_unbounded>false</lower_unbounded>\n        <upper_unbounded>false</upper_unbounded>\n        <lower>0</lower>\n        <upper>1</upper>\n    </existence>\n    <match_negated>false</match_negated>\n    <children xsi:type=\"C_COMPLEX_OBJECT\">\n        <rm_type_name>ITEM_TREE</rm_type_name>\n        <occurrences>\n            <lower_included>true</lower_included>\n            <upper_included>true</upper_included>\n            <lower_unbounded>false</lower_unbounded>\n            <upper_unbounded>false</upper_unbounded>\n            <lower>1</lower>\n            <upper>1</upper>\n        </occurrences>\n        <node_id>at0013</node_id>\n        <attributes xsi:type=\"C_MULTIPLE_ATTRIBUTE\">\n            <rm_attribute_name>items</rm_attribute_name>\n            <existence>\n                <lower_included>true</lower_included>\n                <upper_included>true</upper_included>\n                <lower_unbounded>false</lower_unbounded>\n                <upper_unbounded>false</upper_unbounded>\n                <lower>0</lower>\n                <upper>1</upper>\n            </existence>\n            <match_negated>false</match_negated>\n            <children xsi:type=\"C_COMPLEX_OBJECT\">\n                <rm_type_name>ELEMENT</rm_type_name>\n                <occurrences>\n                    <lower_included>true</lower_included>\n                    <upper_included>true</upper_included>\n                    <lower_unbounded>false</lower_unbounded>\n                    <upper_unbounded>false</upper_unbounded>\n                    <lower>0</lower>\n                    <upper>1</upper>\n                </occurrences>\n                <node_id>at0014</node_id>\n                <attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n                    <rm_attribute_name>value</rm_attribute_name>\n                    <existence>\n                        <lower_included>true</lower_included>\n                        <upper_included>true</upper_included>\n                        <lower_unbounded>false</lower_unbounded>\n                        <upper_unbounded>false</upper_unbounded>\n                        <lower>0</lower>\n                        <upper>1</upper>\n                    </existence>\n                    <match_negated>false</match_negated>\n                    <children xsi:type=\"C_COMPLEX_OBJECT\">\n                        <rm_type_name>DV_CODED_TEXT</rm_type_name>\n                        <occurrences>\n                            <lower_included>true</lower_included>\n                            <upper_included>true</upper_included>\n                            <lower_unbounded>false</lower_unbounded>\n                            <upper_unbounded>false</upper_unbounded>\n                            <lower>1</lower>\n                            <upper>1</upper>\n                        </occurrences>\n                        <node_id></node_id>\n                        <attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n                            <rm_attribute_name>defining_code</rm_attribute_name>\n                            <existence>\n<lower_included>true</lower_included>\n<upper_included>true</upper_included>\n<lower_unbounded>false</lower_unbounded>\n<upper_unbounded>false</upper_unbounded>\n<lower>1</lower>\n<upper>1</upper>\n                            </existence>\n                            <match_negated>false</match_negated>\n                            <children xsi:type=\"C_CODE_PHRASE\">\n<rm_type_name>CODE_PHRASE</rm_type_name>\n<occurrences>\n    <lower_included>true</lower_included>\n    <upper_included>true</upper_included>\n    <lower_unbounded>false</lower_unbounded>\n    <upper_unbounded>false</upper_unbounded>\n    <lower>1</lower>\n    <upper>1</upper>\n</occurrences>\n<node_id></node_id>\n<assumed_value>\n    <terminology_id>\n        <value>local</value>\n    </terminology_id>\n    <code_string>at0016</code_string>\n</assumed_value>\n<terminology_id>\n    <value>local</value>\n</terminology_id>\n<code_list>at0016</code_list>\n<code_list>at0020</code_list>\n                            </children>\n                        </attributes>\n                    </children>\n                </attributes>\n            </children>\n            <children xsi:type=\"C_COMPLEX_OBJECT\">\n                <rm_type_name>ELEMENT</rm_type_name>\n                <occurrences>\n                    <lower_included>true</lower_included>\n                    <upper_included>true</upper_included>\n                    <lower_unbounded>false</lower_unbounded>\n                    <upper_unbounded>false</upper_unbounded>\n                    <lower>0</lower>\n                    <upper>1</upper>\n                </occurrences>\n                <node_id>at0019</node_id>\n                <attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n                    <rm_attribute_name>value</rm_attribute_name>\n                    <existence>\n                        <lower_included>true</lower_included>\n                        <upper_included>true</upper_included>\n                        <lower_unbounded>false</lower_unbounded>\n                        <upper_unbounded>false</upper_unbounded>\n                        <lower>0</lower>\n                        <upper>1</upper>\n                    </existence>\n                    <match_negated>false</match_negated>\n                    <children xsi:type=\"C_COMPLEX_OBJECT\">\n                        <rm_type_name>DV_TEXT</rm_type_name>\n                        <occurrences>\n                            <lower_included>true</lower_included>\n                            <upper_included>true</upper_included>\n                            <lower_unbounded>false</lower_unbounded>\n                            <upper_unbounded>false</upper_unbounded>\n                            <lower>1</lower>\n                            <upper>1</upper>\n                        </occurrences>\n                        <node_id></node_id>\n                    </children>\n                </attributes>\n            </children>\n            <cardinality>\n                <is_ordered>false</is_ordered>\n                <is_unique>false</is_unique>\n                <interval>\n                    <lower_included>true</lower_included>\n                    <upper_included>false</upper_included>\n                    <lower_unbounded>false</lower_unbounded>\n                    <upper_unbounded>true</upper_unbounded>\n                    <lower>0</lower>\n                </interval>\n            </cardinality>\n        </attributes>\n    </children>\n</attributes>\n                            </children>\n                            <children xsi:type=\"C_COMPLEX_OBJECT\">\n<rm_type_name>POINT_EVENT</rm_type_name>\n<occurrences>\n    <lower_included>true</lower_included>\n    <upper_included>true</upper_included>\n    <lower_unbounded>false</lower_unbounded>\n    <upper_unbounded>false</upper_unbounded>\n    <lower>0</lower>\n    <upper>1</upper>\n</occurrences>\n<node_id>at0021</node_id>\n<attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n    <rm_attribute_name>data</rm_attribute_name>\n    <existence>\n        <lower_included>true</lower_included>\n        <upper_included>true</upper_included>\n        <lower_unbounded>false</lower_unbounded>\n        <upper_unbounded>false</upper_unbounded>\n        <lower>1</lower>\n        <upper>1</upper>\n    </existence>\n    <match_negated>false</match_negated>\n    <children xsi:type=\"C_COMPLEX_OBJECT\">\n        <rm_type_name>ITEM_TREE</rm_type_name>\n        <occurrences>\n            <lower_included>true</lower_included>\n            <upper_included>true</upper_included>\n            <lower_unbounded>false</lower_unbounded>\n            <upper_unbounded>false</upper_unbounded>\n            <lower>1</lower>\n            <upper>1</upper>\n        </occurrences>\n        <node_id>at0003</node_id>\n        <attributes xsi:type=\"C_MULTIPLE_ATTRIBUTE\">\n            <rm_attribute_name>items</rm_attribute_name>\n            <existence>\n                <lower_included>true</lower_included>\n                <upper_included>true</upper_included>\n                <lower_unbounded>false</lower_unbounded>\n                <upper_unbounded>false</upper_unbounded>\n                <lower>0</lower>\n                <upper>1</upper>\n            </existence>\n            <match_negated>false</match_negated>\n            <children xsi:type=\"C_COMPLEX_OBJECT\">\n                <rm_type_name>ELEMENT</rm_type_name>\n                <occurrences>\n                    <lower_included>true</lower_included>\n                    <upper_included>true</upper_included>\n                    <lower_unbounded>false</lower_unbounded>\n                    <upper_unbounded>false</upper_unbounded>\n                    <lower>1</lower>\n                    <upper>1</upper>\n                </occurrences>\n                <node_id>at0004</node_id>\n                <attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n                    <rm_attribute_name>value</rm_attribute_name>\n                    <existence>\n                        <lower_included>true</lower_included>\n                        <upper_included>true</upper_included>\n                        <lower_unbounded>false</lower_unbounded>\n                        <upper_unbounded>false</upper_unbounded>\n                        <lower>0</lower>\n                        <upper>1</upper>\n                    </existence>\n                    <match_negated>false</match_negated>\n                    <children xsi:type=\"C_DV_QUANTITY\">\n                        <rm_type_name>DV_QUANTITY</rm_type_name>\n                        <occurrences>\n                            <lower_included>true</lower_included>\n                            <upper_included>true</upper_included>\n                            <lower_unbounded>false</lower_unbounded>\n                            <upper_unbounded>false</upper_unbounded>\n                            <lower>1</lower>\n                            <upper>1</upper>\n                        </occurrences>\n                        <node_id></node_id>\n                        <property>\n                            <terminology_id>\n<value>openehr</value>\n                            </terminology_id>\n                            <code_string>122</code_string>\n                        </property>\n                        <list>\n                            <magnitude>\n<lower_included>true</lower_included>\n<upper_included>true</upper_included>\n<lower_unbounded>false</lower_unbounded>\n<upper_unbounded>false</upper_unbounded>\n<lower>0.0</lower>\n<upper>1000.0</upper>\n                            </magnitude>\n                            <units>cm</units>\n                        </list>\n                        <list>\n                            <magnitude>\n<lower_included>true</lower_included>\n<upper_included>true</upper_included>\n<lower_unbounded>false</lower_unbounded>\n<upper_unbounded>false</upper_unbounded>\n<lower>0.0</lower>\n<upper>250.0</upper>\n                            </magnitude>\n                            <units>[in_i]</units>\n                        </list>\n                    </children>\n                </attributes>\n            </children>\n            <children xsi:type=\"C_COMPLEX_OBJECT\">\n                <rm_type_name>ELEMENT</rm_type_name>\n                <occurrences>\n                    <lower_included>true</lower_included>\n                    <upper_included>true</upper_included>\n                    <lower_unbounded>false</lower_unbounded>\n                    <upper_unbounded>false</upper_unbounded>\n                    <lower>0</lower>\n                    <upper>1</upper>\n                </occurrences>\n                <node_id>at0018</node_id>\n                <attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n                    <rm_attribute_name>value</rm_attribute_name>\n                    <existence>\n                        <lower_included>true</lower_included>\n                        <upper_included>true</upper_included>\n                        <lower_unbounded>false</lower_unbounded>\n                        <upper_unbounded>false</upper_unbounded>\n                        <lower>0</lower>\n                        <upper>1</upper>\n                    </existence>\n                    <match_negated>false</match_negated>\n                    <children xsi:type=\"C_COMPLEX_OBJECT\">\n                        <rm_type_name>DV_TEXT</rm_type_name>\n                        <occurrences>\n                            <lower_included>true</lower_included>\n                            <upper_included>true</upper_included>\n                            <lower_unbounded>false</lower_unbounded>\n                            <upper_unbounded>false</upper_unbounded>\n                            <lower>1</lower>\n                            <upper>1</upper>\n                        </occurrences>\n                        <node_id></node_id>\n                    </children>\n                </attributes>\n            </children>\n            <cardinality>\n                <is_ordered>false</is_ordered>\n                <is_unique>false</is_unique>\n                <interval>\n                    <lower_included>true</lower_included>\n                    <upper_included>false</upper_included>\n                    <lower_unbounded>false</lower_unbounded>\n                    <upper_unbounded>true</upper_unbounded>\n                    <lower>1</lower>\n                </interval>\n            </cardinality>\n        </attributes>\n    </children>\n</attributes>\n<attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n    <rm_attribute_name>state</rm_attribute_name>\n    <existence>\n        <lower_included>true</lower_included>\n        <upper_included>true</upper_included>\n        <lower_unbounded>false</lower_unbounded>\n        <upper_unbounded>false</upper_unbounded>\n        <lower>0</lower>\n        <upper>1</upper>\n    </existence>\n    <match_negated>false</match_negated>\n    <children xsi:type=\"C_COMPLEX_OBJECT\">\n        <rm_type_name>ITEM_TREE</rm_type_name>\n        <occurrences>\n            <lower_included>true</lower_included>\n            <upper_included>true</upper_included>\n            <lower_unbounded>false</lower_unbounded>\n            <upper_unbounded>false</upper_unbounded>\n            <lower>1</lower>\n            <upper>1</upper>\n        </occurrences>\n        <node_id>at0013</node_id>\n        <attributes xsi:type=\"C_MULTIPLE_ATTRIBUTE\">\n            <rm_attribute_name>items</rm_attribute_name>\n            <existence>\n                <lower_included>true</lower_included>\n                <upper_included>true</upper_included>\n                <lower_unbounded>false</lower_unbounded>\n                <upper_unbounded>false</upper_unbounded>\n                <lower>0</lower>\n                <upper>1</upper>\n            </existence>\n            <match_negated>false</match_negated>\n            <children xsi:type=\"C_COMPLEX_OBJECT\">\n                <rm_type_name>ELEMENT</rm_type_name>\n                <occurrences>\n                    <lower_included>true</lower_included>\n                    <upper_included>true</upper_included>\n                    <lower_unbounded>false</lower_unbounded>\n                    <upper_unbounded>false</upper_unbounded>\n                    <lower>0</lower>\n                    <upper>1</upper>\n                </occurrences>\n                <node_id>at0014</node_id>\n                <attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n                    <rm_attribute_name>value</rm_attribute_name>\n                    <existence>\n                        <lower_included>true</lower_included>\n                        <upper_included>true</upper_included>\n                        <lower_unbounded>false</lower_unbounded>\n                        <upper_unbounded>false</upper_unbounded>\n                        <lower>0</lower>\n                        <upper>1</upper>\n                    </existence>\n                    <match_negated>false</match_negated>\n                    <children xsi:type=\"C_COMPLEX_OBJECT\">\n                        <rm_type_name>DV_CODED_TEXT</rm_type_name>\n                        <occurrences>\n                            <lower_included>true</lower_included>\n                            <upper_included>true</upper_included>\n                            <lower_unbounded>false</lower_unbounded>\n                            <upper_unbounded>false</upper_unbounded>\n                            <lower>1</lower>\n                            <upper>1</upper>\n                        </occurrences>\n                        <node_id></node_id>\n                        <attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n                            <rm_attribute_name>defining_code</rm_attribute_name>\n                            <existence>\n<lower_included>true</lower_included>\n<upper_included>true</upper_included>\n<lower_unbounded>false</lower_unbounded>\n<upper_unbounded>false</upper_unbounded>\n<lower>1</lower>\n<upper>1</upper>\n                            </existence>\n                            <match_negated>false</match_negated>\n                            <children xsi:type=\"C_CODE_PHRASE\">\n<rm_type_name>CODE_PHRASE</rm_type_name>\n<occurrences>\n    <lower_included>true</lower_included>\n    <upper_included>true</upper_included>\n    <lower_unbounded>false</lower_unbounded>\n    <upper_unbounded>false</upper_unbounded>\n    <lower>1</lower>\n    <upper>1</upper>\n</occurrences>\n<node_id></node_id>\n<assumed_value>\n    <terminology_id>\n        <value>local</value>\n    </terminology_id>\n    <code_string>at0016</code_string>\n</assumed_value>\n<terminology_id>\n    <value>local</value>\n</terminology_id>\n<code_list>at0016</code_list>\n<code_list>at0020</code_list>\n                            </children>\n                        </attributes>\n                    </children>\n                </attributes>\n            </children>\n            <children xsi:type=\"C_COMPLEX_OBJECT\">\n                <rm_type_name>ELEMENT</rm_type_name>\n                <occurrences>\n                    <lower_included>true</lower_included>\n                    <upper_included>true</upper_included>\n                    <lower_unbounded>false</lower_unbounded>\n                    <upper_unbounded>false</upper_unbounded>\n                    <lower>0</lower>\n                    <upper>1</upper>\n                </occurrences>\n                <node_id>at0019</node_id>\n                <attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n                    <rm_attribute_name>value</rm_attribute_name>\n                    <existence>\n                        <lower_included>true</lower_included>\n                        <upper_included>true</upper_included>\n                        <lower_unbounded>false</lower_unbounded>\n                        <upper_unbounded>false</upper_unbounded>\n                        <lower>0</lower>\n                        <upper>1</upper>\n                    </existence>\n                    <match_negated>false</match_negated>\n                    <children xsi:type=\"C_COMPLEX_OBJECT\">\n                        <rm_type_name>DV_TEXT</rm_type_name>\n                        <occurrences>\n                            <lower_included>true</lower_included>\n                            <upper_included>true</upper_included>\n                            <lower_unbounded>false</lower_unbounded>\n                            <upper_unbounded>false</upper_unbounded>\n                            <lower>1</lower>\n                            <upper>1</upper>\n                        </occurrences>\n                        <node_id></node_id>\n                    </children>\n                </attributes>\n            </children>\n            <cardinality>\n                <is_ordered>false</is_ordered>\n                <is_unique>false</is_unique>\n                <interval>\n                    <lower_included>true</lower_included>\n                    <upper_included>false</upper_included>\n                    <lower_unbounded>false</lower_unbounded>\n                    <upper_unbounded>true</upper_unbounded>\n                    <lower>0</lower>\n                </interval>\n            </cardinality>\n        </attributes>\n    </children>\n</attributes>\n                            </children>\n                            <cardinality>\n<is_ordered>false</is_ordered>\n<is_unique>false</is_unique>\n<interval>\n    <lower_included>true</lower_included>\n    <upper_included>false</upper_included>\n    <lower_unbounded>false</lower_unbounded>\n    <upper_unbounded>true</upper_unbounded>\n    <lower>1</lower>\n</interval>\n                            </cardinality>\n                        </attributes>\n                    </children>\n                </attributes>\n                <attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n                    <rm_attribute_name>protocol</rm_attribute_name>\n                    <existence>\n                        <lower_included>true</lower_included>\n                        <upper_included>true</upper_included>\n                        <lower_unbounded>false</lower_unbounded>\n                        <upper_unbounded>false</upper_unbounded>\n                        <lower>0</lower>\n                        <upper>1</upper>\n                    </existence>\n                    <match_negated>false</match_negated>\n                    <children xsi:type=\"C_COMPLEX_OBJECT\">\n                        <rm_type_name>ITEM_TREE</rm_type_name>\n                        <occurrences>\n                            <lower_included>true</lower_included>\n                            <upper_included>true</upper_included>\n                            <lower_unbounded>false</lower_unbounded>\n                            <upper_unbounded>false</upper_unbounded>\n                            <lower>1</lower>\n                            <upper>1</upper>\n                        </occurrences>\n                        <node_id>at0007</node_id>\n                        <attributes xsi:type=\"C_MULTIPLE_ATTRIBUTE\">\n                            <rm_attribute_name>items</rm_attribute_name>\n                            <existence>\n<lower_included>true</lower_included>\n<upper_included>true</upper_included>\n<lower_unbounded>false</lower_unbounded>\n<upper_unbounded>false</upper_unbounded>\n<lower>0</lower>\n<upper>1</upper>\n                            </existence>\n                            <match_negated>false</match_negated>\n                            <children xsi:type=\"ARCHETYPE_SLOT\">\n<rm_type_name>CLUSTER</rm_type_name>\n<occurrences>\n    <lower_included>true</lower_included>\n    <upper_included>true</upper_included>\n    <lower_unbounded>false</lower_unbounded>\n    <upper_unbounded>false</upper_unbounded>\n    <lower>0</lower>\n    <upper>1</upper>\n</occurrences>\n<node_id>at0011</node_id>\n<includes>\n    <string_expression>archetype_id/value matches {/openEHR-EHR-CLUSTER\\.device(-[a-zA-Z0-9_]+)*\\.v1/}</string_expression>\n    <expression xsi:type=\"EXPR_BINARY_OPERATOR\">\n        <type>Boolean</type>\n        <operator>2007</operator>\n        <precedence_overridden>false</precedence_overridden>\n        <left_operand xsi:type=\"EXPR_LEAF\">\n            <type>String</type>\n            <item xmlns:xs=\"http://www.w3.org/2001/XMLSchema\" xsi:type=\"xs:string\">archetype_id/value</item>\n            <reference_type>attribute</reference_type>\n        </left_operand>\n        <right_operand xsi:type=\"EXPR_LEAF\">\n            <type>String</type>\n            <item xsi:type=\"C_STRING\">\n                <pattern>openEHR-EHR-CLUSTER\\.device(-[a-zA-Z0-9_]+)*\\.v1</pattern>\n            </item>\n            <reference_type>constraint</reference_type>\n        </right_operand>\n    </expression>\n</includes>\n                            </children>\n                            <children xsi:type=\"ARCHETYPE_SLOT\">\n<rm_type_name>CLUSTER</rm_type_name>\n<occurrences>\n    <lower_included>true</lower_included>\n    <upper_included>false</upper_included>\n    <lower_unbounded>false</lower_unbounded>\n    <upper_unbounded>true</upper_unbounded>\n    <lower>0</lower>\n</occurrences>\n<node_id>at0022</node_id>\n<includes>\n    <string_expression>archetype_id/value matches {/.*/}</string_expression>\n    <expression xsi:type=\"EXPR_BINARY_OPERATOR\">\n        <type>Boolean</type>\n        <operator>2007</operator>\n        <precedence_overridden>false</precedence_overridden>\n        <left_operand xsi:type=\"EXPR_LEAF\">\n            <type>String</type>\n            <item xmlns:xs=\"http://www.w3.org/2001/XMLSchema\" xsi:type=\"xs:string\">archetype_id/value</item>\n            <reference_type>attribute</reference_type>\n        </left_operand>\n        <right_operand xsi:type=\"EXPR_LEAF\">\n            <type>String</type>\n            <item xsi:type=\"C_STRING\">\n                <pattern>.*</pattern>\n            </item>\n            <reference_type>constraint</reference_type>\n        </right_operand>\n    </expression>\n</includes>\n                            </children>\n                            <cardinality>\n<is_ordered>true</is_ordered>\n<is_unique>false</is_unique>\n<interval>\n    <lower_included>true</lower_included>\n    <upper_included>false</upper_included>\n    <lower_unbounded>false</lower_unbounded>\n    <upper_unbounded>true</upper_unbounded>\n    <lower>0</lower>\n</interval>\n                            </cardinality>\n                        </attributes>\n                    </children>\n                </attributes>\n                <archetype_id>\n                    <value>openEHR-EHR-OBSERVATION.height.v2</value>\n                </archetype_id>\n                <term_definitions code=\"at0001\">\n                    <items id=\"text\">history</items>\n                    <items id=\"description\">@ internal @</items>\n                </term_definitions>\n                <term_definitions code=\"at0002\">\n                    <items id=\"text\">Any event</items>\n                    <items id=\"description\">Default, unspecified point in time or interval event which may be explicitly defined in a template or at run-time.</items>\n                </term_definitions>\n                <term_definitions code=\"at0003\">\n                    <items id=\"text\">Simple</items>\n                    <items id=\"description\">@ internal @</items>\n                </term_definitions>\n                <term_definitions code=\"at0004\">\n                    <items id=\"text\">Height/Length</items>\n                    <items id=\"description\">The length of the body from crown of head to sole of foot.</items>\n                </term_definitions>\n                <term_definitions code=\"at0007\">\n                    <items id=\"text\">List</items>\n                    <items id=\"description\">@ internal @</items>\n                </term_definitions>\n                <term_definitions code=\"at0011\">\n                    <items id=\"text\">Device</items>\n                    <items id=\"description\">Description of the device used to measure height or body length.</items>\n                </term_definitions>\n                <term_definitions code=\"at0013\">\n                    <items id=\"text\">Tree</items>\n                    <items id=\"description\">@ internal @</items>\n                </term_definitions>\n                <term_definitions code=\"at0014\">\n                    <items id=\"text\">Position</items>\n                    <items id=\"description\">Position of individual when measured.</items>\n                </term_definitions>\n                <term_definitions code=\"at0016\">\n                    <items id=\"text\">Standing</items>\n                    <items id=\"description\">Height is measured standing on both feet with weight distributed evenly, heels together and both buttocks and heels in contact with a vertical back board.</items>\n                </term_definitions>\n                <term_definitions code=\"at0018\">\n                    <items id=\"text\">Comment</items>\n                    <items id=\"description\">Additional narrative about the measurement, not captured in other fields.</items>\n                </term_definitions>\n                <term_definitions code=\"at0019\">\n                    <items id=\"text\">Confounding factors</items>\n                    <items id=\"description\">Narrative description of any issues or factors that may impact on the measurement.</items>\n                    <items id=\"comment\">For example: noting of amputation.</items>\n                </term_definitions>\n                <term_definitions code=\"at0020\">\n                    <items id=\"text\">Lying</items>\n                    <items id=\"description\">Length is measured in a fully extended, recumbent position with the pelvis flat, legs extended and feet flexed.</items>\n                </term_definitions>\n                <term_definitions code=\"at0021\">\n                    <items id=\"text\">Birth</items>\n                    <items id=\"description\">Usually the first length measurement, recorded soon after birth. This event will only be used once per health record&#13;\n.</items>\n                </term_definitions>\n                <term_definitions code=\"at0022\">\n                    <items id=\"text\">Extension</items>\n                    <items id=\"description\">Additional information required to capture local content or to align with other reference models/formalisms.</items>\n                    <items id=\"comment\">For example: local information requirements or additional metadata to align with FHIR or CIMI equivalents.</items>\n                </term_definitions>\n                <term_definitions code=\"at0000\">\n                    <items id=\"text\">Height/Length</items>\n                    <items id=\"description\">Height, or body length, is measured from crown of head to sole of foot.</items>\n                    <items id=\"comment\">Height is measured with the individual in a standing position and body length in a recumbent position.</items>\n                </term_definitions>\n                <term_definitions code=\"[in_i]\">\n                    <items id=\"text\">in</items>\n                    <items id=\"description\">inch</items>\n                </term_definitions>\n                <term_bindings terminology=\"LOINC\">\n                    <items code=\"at0004\">\n                        <value>\n                            <terminology_id>\n<value>LOINC</value>\n                            </terminology_id>\n                            <code_string>[LOINC::8302-2]</code_string>\n                        </value>\n                    </items>\n                </term_bindings>\n            </children>\n            <children xsi:type=\"C_ARCHETYPE_ROOT\">\n                <rm_type_name>OBSERVATION</rm_type_name>\n                <occurrences>\n                    <lower_included>true</lower_included>\n                    <upper_included>true</upper_included>\n                    <lower_unbounded>false</lower_unbounded>\n                    <upper_unbounded>false</upper_unbounded>\n                    <lower>0</lower>\n                    <upper>1</upper>\n                </occurrences>\n                <node_id>at0000</node_id>\n                <attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n                    <rm_attribute_name>data</rm_attribute_name>\n                    <existence>\n                        <lower_included>true</lower_included>\n                        <upper_included>true</upper_included>\n                        <lower_unbounded>false</lower_unbounded>\n                        <upper_unbounded>false</upper_unbounded>\n                        <lower>1</lower>\n                        <upper>1</upper>\n                    </existence>\n                    <match_negated>false</match_negated>\n                    <children xsi:type=\"C_COMPLEX_OBJECT\">\n                        <rm_type_name>HISTORY</rm_type_name>\n                        <occurrences>\n                            <lower_included>true</lower_included>\n                            <upper_included>true</upper_included>\n                            <lower_unbounded>false</lower_unbounded>\n                            <upper_unbounded>false</upper_unbounded>\n                            <lower>1</lower>\n                            <upper>1</upper>\n                        </occurrences>\n                        <node_id>at0001</node_id>\n                        <attributes xsi:type=\"C_MULTIPLE_ATTRIBUTE\">\n                            <rm_attribute_name>events</rm_attribute_name>\n                            <existence>\n<lower_included>true</lower_included>\n<upper_included>true</upper_included>\n<lower_unbounded>false</lower_unbounded>\n<upper_unbounded>false</upper_unbounded>\n<lower>0</lower>\n<upper>1</upper>\n                            </existence>\n                            <match_negated>false</match_negated>\n                            <children xsi:type=\"C_COMPLEX_OBJECT\">\n<rm_type_name>EVENT</rm_type_name>\n<occurrences>\n    <lower_included>true</lower_included>\n    <upper_included>false</upper_included>\n    <lower_unbounded>false</lower_unbounded>\n    <upper_unbounded>true</upper_unbounded>\n    <lower>0</lower>\n</occurrences>\n<node_id>at0002</node_id>\n<attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n    <rm_attribute_name>data</rm_attribute_name>\n    <existence>\n        <lower_included>true</lower_included>\n        <upper_included>true</upper_included>\n        <lower_unbounded>false</lower_unbounded>\n        <upper_unbounded>false</upper_unbounded>\n        <lower>1</lower>\n        <upper>1</upper>\n    </existence>\n    <match_negated>false</match_negated>\n    <children xsi:type=\"C_COMPLEX_OBJECT\">\n        <rm_type_name>ITEM_TREE</rm_type_name>\n        <occurrences>\n            <lower_included>true</lower_included>\n            <upper_included>true</upper_included>\n            <lower_unbounded>false</lower_unbounded>\n            <upper_unbounded>false</upper_unbounded>\n            <lower>1</lower>\n            <upper>1</upper>\n        </occurrences>\n        <node_id>at0003</node_id>\n        <attributes xsi:type=\"C_MULTIPLE_ATTRIBUTE\">\n            <rm_attribute_name>items</rm_attribute_name>\n            <existence>\n                <lower_included>true</lower_included>\n                <upper_included>true</upper_included>\n                <lower_unbounded>false</lower_unbounded>\n                <upper_unbounded>false</upper_unbounded>\n                <lower>0</lower>\n                <upper>1</upper>\n            </existence>\n            <match_negated>false</match_negated>\n            <children xsi:type=\"C_COMPLEX_OBJECT\">\n                <rm_type_name>ELEMENT</rm_type_name>\n                <occurrences>\n                    <lower_included>true</lower_included>\n                    <upper_included>true</upper_included>\n                    <lower_unbounded>false</lower_unbounded>\n                    <upper_unbounded>false</upper_unbounded>\n                    <lower>1</lower>\n                    <upper>1</upper>\n                </occurrences>\n                <node_id>at0004</node_id>\n                <attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n                    <rm_attribute_name>value</rm_attribute_name>\n                    <existence>\n                        <lower_included>true</lower_included>\n                        <upper_included>true</upper_included>\n                        <lower_unbounded>false</lower_unbounded>\n                        <upper_unbounded>false</upper_unbounded>\n                        <lower>0</lower>\n                        <upper>1</upper>\n                    </existence>\n                    <match_negated>false</match_negated>\n                    <children xsi:type=\"C_DV_QUANTITY\">\n                        <rm_type_name>DV_QUANTITY</rm_type_name>\n                        <occurrences>\n                            <lower_included>true</lower_included>\n                            <upper_included>true</upper_included>\n                            <lower_unbounded>false</lower_unbounded>\n                            <upper_unbounded>false</upper_unbounded>\n                            <lower>1</lower>\n                            <upper>1</upper>\n                        </occurrences>\n                        <node_id></node_id>\n                        <property>\n                            <terminology_id>\n<value>openehr</value>\n                            </terminology_id>\n                            <code_string>349</code_string>\n                        </property>\n                        <list>\n                            <magnitude>\n<lower_included>true</lower_included>\n<upper_included>false</upper_included>\n<lower_unbounded>false</lower_unbounded>\n<upper_unbounded>false</upper_unbounded>\n<lower>0.0</lower>\n<upper>1000.0</upper>\n                            </magnitude>\n                            <precision>\n<lower_included>true</lower_included>\n<upper_included>true</upper_included>\n<lower_unbounded>false</lower_unbounded>\n<upper_unbounded>false</upper_unbounded>\n<lower>1</lower>\n<upper>1</upper>\n                            </precision>\n                            <units>kg/m2</units>\n                        </list>\n                        <list>\n                            <magnitude>\n<lower_included>true</lower_included>\n<upper_included>false</upper_included>\n<lower_unbounded>false</lower_unbounded>\n<upper_unbounded>false</upper_unbounded>\n<lower>0.0</lower>\n<upper>1000.0</upper>\n                            </magnitude>\n                            <precision>\n<lower_included>true</lower_included>\n<upper_included>true</upper_included>\n<lower_unbounded>false</lower_unbounded>\n<upper_unbounded>false</upper_unbounded>\n<lower>1</lower>\n<upper>1</upper>\n                            </precision>\n                            <units>[lb_av]/[in_i]2</units>\n                        </list>\n                    </children>\n                </attributes>\n            </children>\n            <children xsi:type=\"C_COMPLEX_OBJECT\">\n                <rm_type_name>ELEMENT</rm_type_name>\n                <occurrences>\n                    <lower_included>true</lower_included>\n                    <upper_included>true</upper_included>\n                    <lower_unbounded>false</lower_unbounded>\n                    <upper_unbounded>false</upper_unbounded>\n                    <lower>0</lower>\n                    <upper>1</upper>\n                </occurrences>\n                <node_id>at0013</node_id>\n                <attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n                    <rm_attribute_name>value</rm_attribute_name>\n                    <existence>\n                        <lower_included>true</lower_included>\n                        <upper_included>true</upper_included>\n                        <lower_unbounded>false</lower_unbounded>\n                        <upper_unbounded>false</upper_unbounded>\n                        <lower>0</lower>\n                        <upper>1</upper>\n                    </existence>\n                    <match_negated>false</match_negated>\n                    <children xsi:type=\"C_COMPLEX_OBJECT\">\n                        <rm_type_name>DV_TEXT</rm_type_name>\n                        <occurrences>\n                            <lower_included>true</lower_included>\n                            <upper_included>true</upper_included>\n                            <lower_unbounded>false</lower_unbounded>\n                            <upper_unbounded>false</upper_unbounded>\n                            <lower>1</lower>\n                            <upper>1</upper>\n                        </occurrences>\n                        <node_id></node_id>\n                    </children>\n                </attributes>\n            </children>\n            <children xsi:type=\"C_COMPLEX_OBJECT\">\n                <rm_type_name>ELEMENT</rm_type_name>\n                <occurrences>\n                    <lower_included>true</lower_included>\n                    <upper_included>true</upper_included>\n                    <lower_unbounded>false</lower_unbounded>\n                    <upper_unbounded>false</upper_unbounded>\n                    <lower>0</lower>\n                    <upper>1</upper>\n                </occurrences>\n                <node_id>at0012</node_id>\n                <attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n                    <rm_attribute_name>value</rm_attribute_name>\n                    <existence>\n                        <lower_included>true</lower_included>\n                        <upper_included>true</upper_included>\n                        <lower_unbounded>false</lower_unbounded>\n                        <upper_unbounded>false</upper_unbounded>\n                        <lower>0</lower>\n                        <upper>1</upper>\n                    </existence>\n                    <match_negated>false</match_negated>\n                    <children xsi:type=\"C_COMPLEX_OBJECT\">\n                        <rm_type_name>DV_TEXT</rm_type_name>\n                        <occurrences>\n                            <lower_included>true</lower_included>\n                            <upper_included>true</upper_included>\n                            <lower_unbounded>false</lower_unbounded>\n                            <upper_unbounded>false</upper_unbounded>\n                            <lower>1</lower>\n                            <upper>1</upper>\n                        </occurrences>\n                        <node_id></node_id>\n                    </children>\n                </attributes>\n            </children>\n            <cardinality>\n                <is_ordered>false</is_ordered>\n                <is_unique>false</is_unique>\n                <interval>\n                    <lower_included>true</lower_included>\n                    <upper_included>false</upper_included>\n                    <lower_unbounded>false</lower_unbounded>\n                    <upper_unbounded>true</upper_unbounded>\n                    <lower>1</lower>\n                </interval>\n            </cardinality>\n        </attributes>\n    </children>\n</attributes>\n<attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n    <rm_attribute_name>state</rm_attribute_name>\n    <existence>\n        <lower_included>true</lower_included>\n        <upper_included>true</upper_included>\n        <lower_unbounded>false</lower_unbounded>\n        <upper_unbounded>false</upper_unbounded>\n        <lower>0</lower>\n        <upper>1</upper>\n    </existence>\n    <match_negated>false</match_negated>\n    <children xsi:type=\"C_COMPLEX_OBJECT\">\n        <rm_type_name>ITEM_TREE</rm_type_name>\n        <occurrences>\n            <lower_included>true</lower_included>\n            <upper_included>true</upper_included>\n            <lower_unbounded>false</lower_unbounded>\n            <upper_unbounded>false</upper_unbounded>\n            <lower>1</lower>\n            <upper>1</upper>\n        </occurrences>\n        <node_id>at0014</node_id>\n        <attributes xsi:type=\"C_MULTIPLE_ATTRIBUTE\">\n            <rm_attribute_name>items</rm_attribute_name>\n            <existence>\n                <lower_included>true</lower_included>\n                <upper_included>true</upper_included>\n                <lower_unbounded>false</lower_unbounded>\n                <upper_unbounded>false</upper_unbounded>\n                <lower>0</lower>\n                <upper>1</upper>\n            </existence>\n            <match_negated>false</match_negated>\n            <children xsi:type=\"C_COMPLEX_OBJECT\">\n                <rm_type_name>ELEMENT</rm_type_name>\n                <occurrences>\n                    <lower_included>true</lower_included>\n                    <upper_included>true</upper_included>\n                    <lower_unbounded>false</lower_unbounded>\n                    <upper_unbounded>false</upper_unbounded>\n                    <lower>0</lower>\n                    <upper>1</upper>\n                </occurrences>\n                <node_id>at0011</node_id>\n                <attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n                    <rm_attribute_name>value</rm_attribute_name>\n                    <existence>\n                        <lower_included>true</lower_included>\n                        <upper_included>true</upper_included>\n                        <lower_unbounded>false</lower_unbounded>\n                        <upper_unbounded>false</upper_unbounded>\n                        <lower>0</lower>\n                        <upper>1</upper>\n                    </existence>\n                    <match_negated>false</match_negated>\n                    <children xsi:type=\"C_COMPLEX_OBJECT\">\n                        <rm_type_name>DV_TEXT</rm_type_name>\n                        <occurrences>\n                            <lower_included>true</lower_included>\n                            <upper_included>true</upper_included>\n                            <lower_unbounded>false</lower_unbounded>\n                            <upper_unbounded>false</upper_unbounded>\n                            <lower>1</lower>\n                            <upper>1</upper>\n                        </occurrences>\n                        <node_id></node_id>\n                    </children>\n                </attributes>\n            </children>\n            <cardinality>\n                <is_ordered>false</is_ordered>\n                <is_unique>false</is_unique>\n                <interval>\n                    <lower_included>true</lower_included>\n                    <upper_included>false</upper_included>\n                    <lower_unbounded>false</lower_unbounded>\n                    <upper_unbounded>true</upper_unbounded>\n                    <lower>0</lower>\n                </interval>\n            </cardinality>\n        </attributes>\n    </children>\n</attributes>\n                            </children>\n                            <cardinality>\n<is_ordered>false</is_ordered>\n<is_unique>false</is_unique>\n<interval>\n    <lower_included>true</lower_included>\n    <upper_included>false</upper_included>\n    <lower_unbounded>false</lower_unbounded>\n    <upper_unbounded>true</upper_unbounded>\n    <lower>1</lower>\n</interval>\n                            </cardinality>\n                        </attributes>\n                    </children>\n                </attributes>\n                <attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n                    <rm_attribute_name>protocol</rm_attribute_name>\n                    <existence>\n                        <lower_included>true</lower_included>\n                        <upper_included>true</upper_included>\n                        <lower_unbounded>false</lower_unbounded>\n                        <upper_unbounded>false</upper_unbounded>\n                        <lower>0</lower>\n                        <upper>1</upper>\n                    </existence>\n                    <match_negated>false</match_negated>\n                    <children xsi:type=\"C_COMPLEX_OBJECT\">\n                        <rm_type_name>ITEM_TREE</rm_type_name>\n                        <occurrences>\n                            <lower_included>true</lower_included>\n                            <upper_included>true</upper_included>\n                            <lower_unbounded>false</lower_unbounded>\n                            <upper_unbounded>false</upper_unbounded>\n                            <lower>1</lower>\n                            <upper>1</upper>\n                        </occurrences>\n                        <node_id>at0005</node_id>\n                        <attributes xsi:type=\"C_MULTIPLE_ATTRIBUTE\">\n                            <rm_attribute_name>items</rm_attribute_name>\n                            <existence>\n<lower_included>true</lower_included>\n<upper_included>true</upper_included>\n<lower_unbounded>false</lower_unbounded>\n<upper_unbounded>false</upper_unbounded>\n<lower>0</lower>\n<upper>1</upper>\n                            </existence>\n                            <match_negated>false</match_negated>\n                            <children xsi:type=\"C_COMPLEX_OBJECT\">\n<rm_type_name>ELEMENT</rm_type_name>\n<occurrences>\n    <lower_included>true</lower_included>\n    <upper_included>true</upper_included>\n    <lower_unbounded>false</lower_unbounded>\n    <upper_unbounded>false</upper_unbounded>\n    <lower>0</lower>\n    <upper>1</upper>\n</occurrences>\n<node_id>at0006</node_id>\n<attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n    <rm_attribute_name>value</rm_attribute_name>\n    <existence>\n        <lower_included>true</lower_included>\n        <upper_included>true</upper_included>\n        <lower_unbounded>false</lower_unbounded>\n        <upper_unbounded>false</upper_unbounded>\n        <lower>0</lower>\n        <upper>1</upper>\n    </existence>\n    <match_negated>false</match_negated>\n    <children xsi:type=\"C_COMPLEX_OBJECT\">\n        <rm_type_name>DV_CODED_TEXT</rm_type_name>\n        <occurrences>\n            <lower_included>true</lower_included>\n            <upper_included>true</upper_included>\n            <lower_unbounded>false</lower_unbounded>\n            <upper_unbounded>false</upper_unbounded>\n            <lower>1</lower>\n            <upper>1</upper>\n        </occurrences>\n        <node_id></node_id>\n        <attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n            <rm_attribute_name>defining_code</rm_attribute_name>\n            <existence>\n                <lower_included>true</lower_included>\n                <upper_included>true</upper_included>\n                <lower_unbounded>false</lower_unbounded>\n                <upper_unbounded>false</upper_unbounded>\n                <lower>1</lower>\n                <upper>1</upper>\n            </existence>\n            <match_negated>false</match_negated>\n            <children xsi:type=\"C_CODE_PHRASE\">\n                <rm_type_name>CODE_PHRASE</rm_type_name>\n                <occurrences>\n                    <lower_included>true</lower_included>\n                    <upper_included>true</upper_included>\n                    <lower_unbounded>false</lower_unbounded>\n                    <upper_unbounded>false</upper_unbounded>\n                    <lower>1</lower>\n                    <upper>1</upper>\n                </occurrences>\n                <node_id></node_id>\n                <terminology_id>\n                    <value>local</value>\n                </terminology_id>\n                <code_list>at0007</code_list>\n                <code_list>at0008</code_list>\n            </children>\n        </attributes>\n    </children>\n</attributes>\n                            </children>\n                            <children xsi:type=\"C_COMPLEX_OBJECT\">\n<rm_type_name>ELEMENT</rm_type_name>\n<occurrences>\n    <lower_included>true</lower_included>\n    <upper_included>true</upper_included>\n    <lower_unbounded>false</lower_unbounded>\n    <upper_unbounded>false</upper_unbounded>\n    <lower>0</lower>\n    <upper>1</upper>\n</occurrences>\n<node_id>at0010</node_id>\n<attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n    <rm_attribute_name>value</rm_attribute_name>\n    <existence>\n        <lower_included>true</lower_included>\n        <upper_included>true</upper_included>\n        <lower_unbounded>false</lower_unbounded>\n        <upper_unbounded>false</upper_unbounded>\n        <lower>0</lower>\n        <upper>1</upper>\n    </existence>\n    <match_negated>false</match_negated>\n    <children xsi:type=\"C_COMPLEX_OBJECT\">\n        <rm_type_name>DV_TEXT</rm_type_name>\n        <occurrences>\n            <lower_included>true</lower_included>\n            <upper_included>true</upper_included>\n            <lower_unbounded>false</lower_unbounded>\n            <upper_unbounded>false</upper_unbounded>\n            <lower>1</lower>\n            <upper>1</upper>\n        </occurrences>\n        <node_id></node_id>\n    </children>\n</attributes>\n                            </children>\n                            <children xsi:type=\"ARCHETYPE_SLOT\">\n<rm_type_name>CLUSTER</rm_type_name>\n<occurrences>\n    <lower_included>true</lower_included>\n    <upper_included>false</upper_included>\n    <lower_unbounded>false</lower_unbounded>\n    <upper_unbounded>true</upper_unbounded>\n    <lower>0</lower>\n</occurrences>\n<node_id>at0015</node_id>\n<includes>\n    <string_expression>archetype_id/value matches {/.*/}</string_expression>\n    <expression xsi:type=\"EXPR_BINARY_OPERATOR\">\n        <type>Boolean</type>\n        <operator>2007</operator>\n        <precedence_overridden>false</precedence_overridden>\n        <left_operand xsi:type=\"EXPR_LEAF\">\n            <type>String</type>\n            <item xmlns:xs=\"http://www.w3.org/2001/XMLSchema\" xsi:type=\"xs:string\">archetype_id/value</item>\n            <reference_type>attribute</reference_type>\n        </left_operand>\n        <right_operand xsi:type=\"EXPR_LEAF\">\n            <type>String</type>\n            <item xsi:type=\"C_STRING\">\n                <pattern>.*</pattern>\n            </item>\n            <reference_type>constraint</reference_type>\n        </right_operand>\n    </expression>\n</includes>\n                            </children>\n                            <cardinality>\n<is_ordered>false</is_ordered>\n<is_unique>false</is_unique>\n<interval>\n    <lower_included>true</lower_included>\n    <upper_included>false</upper_included>\n    <lower_unbounded>false</lower_unbounded>\n    <upper_unbounded>true</upper_unbounded>\n    <lower>0</lower>\n</interval>\n                            </cardinality>\n                        </attributes>\n                    </children>\n                </attributes>\n                <archetype_id>\n                    <value>openEHR-EHR-OBSERVATION.body_mass_index.v2</value>\n                </archetype_id>\n                <term_definitions code=\"at0001\">\n                    <items id=\"text\">history</items>\n                    <items id=\"description\">@ internal @</items>\n                </term_definitions>\n                <term_definitions code=\"at0002\">\n                    <items id=\"text\">Any event</items>\n                    <items id=\"description\">Default, unspecified point in time or interval event which may be explicitly defined in a template or at run-time.</items>\n                </term_definitions>\n                <term_definitions code=\"at0003\">\n                    <items id=\"text\">Single</items>\n                    <items id=\"description\">@ internal @</items>\n                </term_definitions>\n                <term_definitions code=\"at0004\">\n                    <items id=\"text\">Body mass index</items>\n                    <items id=\"description\">Index describing ratio of weight to height.</items>\n                </term_definitions>\n                <term_definitions code=\"at0005\">\n                    <items id=\"text\">Tree</items>\n                    <items id=\"description\">@ internal @</items>\n                </term_definitions>\n                <term_definitions code=\"at0006\">\n                    <items id=\"text\">Method</items>\n                    <items id=\"description\">The method of entering the body mass index.</items>\n                </term_definitions>\n                <term_definitions code=\"at0007\">\n                    <items id=\"text\">Automatic entry</items>\n                    <items id=\"description\">Body Mass Index calculated and entered automatically without user intervention.</items>\n                </term_definitions>\n                <term_definitions code=\"at0008\">\n                    <items id=\"text\">Direct entry</items>\n                    <items id=\"description\">Body Mass Index calculated and entered directly by user.</items>\n                </term_definitions>\n                <term_definitions code=\"at0010\">\n                    <items id=\"text\">Formula</items>\n                    <items id=\"description\">Formula used to derive the body mass index.</items>\n                </term_definitions>\n                <term_definitions code=\"at0011\">\n                    <items id=\"text\">Confounding factors</items>\n                    <items id=\"description\">Narrative description of any issues or factors that may impact on the calculation.</items>\n                    <items id=\"comment\">For example: the calculation was made using adjusted weight or height.</items>\n                </term_definitions>\n                <term_definitions code=\"at0012\">\n                    <items id=\"text\">Comment</items>\n                    <items id=\"description\">Additional narrative about the calculation, not captured in other fields.</items>\n                </term_definitions>\n                <term_definitions code=\"at0013\">\n                    <items id=\"text\">Clinical interpretation</items>\n                    <items id=\"description\">Single word, phrase or brief description that represents the clinical meaning and significance of the body mass index.</items>\n                    <items id=\"comment\">For example: underweight, normal, overweight or obese.</items>\n                </term_definitions>\n                <term_definitions code=\"at0014\">\n                    <items id=\"text\">Tree</items>\n                    <items id=\"description\">@ internal @</items>\n                </term_definitions>\n                <term_definitions code=\"at0015\">\n                    <items id=\"text\">Extension</items>\n                    <items id=\"description\">Additional information required to capture local context or to align with other reference models/formalisms.</items>\n                    <items id=\"comment\">For example: Local hospital departmental infomation or additional metadata to align with FHIR or CIMI equivalents.</items>\n                </term_definitions>\n                <term_definitions code=\"at0000\">\n                    <items id=\"text\">Body mass index</items>\n                    <items id=\"description\">Calculated measurement which compares a person's weight and height.</items>\n                    <items id=\"comment\">Body Mass Index is a calculated ratio describing how an individual's body weight relates to the weight that is regarded as normal, or desirable, for the individual's height.</items>\n                </term_definitions>\n                <term_definitions code=\"kg/m2\">\n                    <items id=\"text\">kg/m²</items>\n                    <items id=\"description\">kg/m²</items>\n                </term_definitions>\n                <term_bindings terminology=\"SNOMED-CT\">\n                    <items code=\"at0004\">\n                        <value>\n                            <terminology_id>\n<value>SNOMED-CT</value>\n                            </terminology_id>\n                            <code_string>[SNOMED-CT::60621009]</code_string>\n                        </value>\n                    </items>\n                </term_bindings>\n                <term_bindings terminology=\"LOINC\">\n                    <items code=\"at0004\">\n                        <value>\n                            <terminology_id>\n<value>LOINC</value>\n                            </terminology_id>\n                            <code_string>[LOINC::39156-5]</code_string>\n                        </value>\n                    </items>\n                </term_bindings>\n            </children>\n            <children xsi:type=\"C_ARCHETYPE_ROOT\">\n                <rm_type_name>OBSERVATION</rm_type_name>\n                <occurrences>\n                    <lower_included>true</lower_included>\n                    <upper_included>true</upper_included>\n                    <lower_unbounded>false</lower_unbounded>\n                    <upper_unbounded>false</upper_unbounded>\n                    <lower>0</lower>\n                    <upper>1</upper>\n                </occurrences>\n                <node_id>at0000</node_id>\n                <attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n                    <rm_attribute_name>data</rm_attribute_name>\n                    <existence>\n                        <lower_included>true</lower_included>\n                        <upper_included>true</upper_included>\n                        <lower_unbounded>false</lower_unbounded>\n                        <upper_unbounded>false</upper_unbounded>\n                        <lower>1</lower>\n                        <upper>1</upper>\n                    </existence>\n                    <match_negated>false</match_negated>\n                    <children xsi:type=\"C_COMPLEX_OBJECT\">\n                        <rm_type_name>HISTORY</rm_type_name>\n                        <occurrences>\n                            <lower_included>true</lower_included>\n                            <upper_included>true</upper_included>\n                            <lower_unbounded>false</lower_unbounded>\n                            <upper_unbounded>false</upper_unbounded>\n                            <lower>1</lower>\n                            <upper>1</upper>\n                        </occurrences>\n                        <node_id>at0001</node_id>\n                        <attributes xsi:type=\"C_MULTIPLE_ATTRIBUTE\">\n                            <rm_attribute_name>events</rm_attribute_name>\n                            <existence>\n<lower_included>true</lower_included>\n<upper_included>true</upper_included>\n<lower_unbounded>false</lower_unbounded>\n<upper_unbounded>false</upper_unbounded>\n<lower>0</lower>\n<upper>1</upper>\n                            </existence>\n                            <match_negated>false</match_negated>\n                            <children xsi:type=\"C_COMPLEX_OBJECT\">\n<rm_type_name>EVENT</rm_type_name>\n<occurrences>\n    <lower_included>true</lower_included>\n    <upper_included>false</upper_included>\n    <lower_unbounded>false</lower_unbounded>\n    <upper_unbounded>true</upper_unbounded>\n    <lower>0</lower>\n</occurrences>\n<node_id>at0010</node_id>\n<attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n    <rm_attribute_name>data</rm_attribute_name>\n    <existence>\n        <lower_included>true</lower_included>\n        <upper_included>true</upper_included>\n        <lower_unbounded>false</lower_unbounded>\n        <upper_unbounded>false</upper_unbounded>\n        <lower>1</lower>\n        <upper>1</upper>\n    </existence>\n    <match_negated>false</match_negated>\n    <children xsi:type=\"C_COMPLEX_OBJECT\">\n        <rm_type_name>ITEM_TREE</rm_type_name>\n        <occurrences>\n            <lower_included>true</lower_included>\n            <upper_included>true</upper_included>\n            <lower_unbounded>false</lower_unbounded>\n            <upper_unbounded>false</upper_unbounded>\n            <lower>1</lower>\n            <upper>1</upper>\n        </occurrences>\n        <node_id>at0003</node_id>\n        <attributes xsi:type=\"C_MULTIPLE_ATTRIBUTE\">\n            <rm_attribute_name>items</rm_attribute_name>\n            <existence>\n                <lower_included>true</lower_included>\n                <upper_included>true</upper_included>\n                <lower_unbounded>false</lower_unbounded>\n                <upper_unbounded>false</upper_unbounded>\n                <lower>0</lower>\n                <upper>1</upper>\n            </existence>\n            <match_negated>false</match_negated>\n            <children xsi:type=\"C_COMPLEX_OBJECT\">\n                <rm_type_name>ELEMENT</rm_type_name>\n                <occurrences>\n                    <lower_included>true</lower_included>\n                    <upper_included>true</upper_included>\n                    <lower_unbounded>false</lower_unbounded>\n                    <upper_unbounded>false</upper_unbounded>\n                    <lower>0</lower>\n                    <upper>1</upper>\n                </occurrences>\n                <node_id>at0004</node_id>\n                <attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n                    <rm_attribute_name>value</rm_attribute_name>\n                    <existence>\n                        <lower_included>true</lower_included>\n                        <upper_included>true</upper_included>\n                        <lower_unbounded>false</lower_unbounded>\n                        <upper_unbounded>false</upper_unbounded>\n                        <lower>0</lower>\n                        <upper>1</upper>\n                    </existence>\n                    <match_negated>false</match_negated>\n                    <children xsi:type=\"C_DV_QUANTITY\">\n                        <rm_type_name>DV_QUANTITY</rm_type_name>\n                        <occurrences>\n                            <lower_included>true</lower_included>\n                            <upper_included>true</upper_included>\n                            <lower_unbounded>false</lower_unbounded>\n                            <upper_unbounded>false</upper_unbounded>\n                            <lower>1</lower>\n                            <upper>1</upper>\n                        </occurrences>\n                        <node_id></node_id>\n                        <property>\n                            <terminology_id>\n<value>openehr</value>\n                            </terminology_id>\n                            <code_string>122</code_string>\n                        </property>\n                        <list>\n                            <magnitude>\n<lower_included>true</lower_included>\n<upper_included>true</upper_included>\n<lower_unbounded>false</lower_unbounded>\n<upper_unbounded>false</upper_unbounded>\n<lower>0.0</lower>\n<upper>100.0</upper>\n                            </magnitude>\n                            <units>cm</units>\n                        </list>\n                        <list>\n                            <magnitude>\n<lower_included>true</lower_included>\n<upper_included>true</upper_included>\n<lower_unbounded>false</lower_unbounded>\n<upper_unbounded>false</upper_unbounded>\n<lower>0.0</lower>\n<upper>40.0</upper>\n                            </magnitude>\n                            <units>[in_i]</units>\n                        </list>\n                    </children>\n                </attributes>\n            </children>\n            <children xsi:type=\"C_COMPLEX_OBJECT\">\n                <rm_type_name>ELEMENT</rm_type_name>\n                <occurrences>\n                    <lower_included>true</lower_included>\n                    <upper_included>true</upper_included>\n                    <lower_unbounded>false</lower_unbounded>\n                    <upper_unbounded>false</upper_unbounded>\n                    <lower>0</lower>\n                    <upper>1</upper>\n                </occurrences>\n                <node_id>at0007</node_id>\n                <attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n                    <rm_attribute_name>value</rm_attribute_name>\n                    <existence>\n                        <lower_included>true</lower_included>\n                        <upper_included>true</upper_included>\n                        <lower_unbounded>false</lower_unbounded>\n                        <upper_unbounded>false</upper_unbounded>\n                        <lower>0</lower>\n                        <upper>1</upper>\n                    </existence>\n                    <match_negated>false</match_negated>\n                    <children xsi:type=\"C_COMPLEX_OBJECT\">\n                        <rm_type_name>DV_TEXT</rm_type_name>\n                        <occurrences>\n                            <lower_included>true</lower_included>\n                            <upper_included>true</upper_included>\n                            <lower_unbounded>false</lower_unbounded>\n                            <upper_unbounded>false</upper_unbounded>\n                            <lower>1</lower>\n                            <upper>1</upper>\n                        </occurrences>\n                        <node_id></node_id>\n                    </children>\n                </attributes>\n            </children>\n            <cardinality>\n                <is_ordered>false</is_ordered>\n                <is_unique>false</is_unique>\n                <interval>\n                    <lower_included>true</lower_included>\n                    <upper_included>false</upper_included>\n                    <lower_unbounded>false</lower_unbounded>\n                    <upper_unbounded>true</upper_unbounded>\n                    <lower>1</lower>\n                </interval>\n            </cardinality>\n        </attributes>\n    </children>\n</attributes>\n<attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n    <rm_attribute_name>state</rm_attribute_name>\n    <existence>\n        <lower_included>true</lower_included>\n        <upper_included>true</upper_included>\n        <lower_unbounded>false</lower_unbounded>\n        <upper_unbounded>false</upper_unbounded>\n        <lower>0</lower>\n        <upper>1</upper>\n    </existence>\n    <match_negated>false</match_negated>\n    <children xsi:type=\"C_COMPLEX_OBJECT\">\n        <rm_type_name>ITEM_TREE</rm_type_name>\n        <occurrences>\n            <lower_included>true</lower_included>\n            <upper_included>true</upper_included>\n            <lower_unbounded>false</lower_unbounded>\n            <upper_unbounded>false</upper_unbounded>\n            <lower>1</lower>\n            <upper>1</upper>\n        </occurrences>\n        <node_id>at0008</node_id>\n        <attributes xsi:type=\"C_MULTIPLE_ATTRIBUTE\">\n            <rm_attribute_name>items</rm_attribute_name>\n            <existence>\n                <lower_included>true</lower_included>\n                <upper_included>true</upper_included>\n                <lower_unbounded>false</lower_unbounded>\n                <upper_unbounded>false</upper_unbounded>\n                <lower>0</lower>\n                <upper>1</upper>\n            </existence>\n            <match_negated>false</match_negated>\n            <children xsi:type=\"C_COMPLEX_OBJECT\">\n                <rm_type_name>ELEMENT</rm_type_name>\n                <occurrences>\n                    <lower_included>true</lower_included>\n                    <upper_included>false</upper_included>\n                    <lower_unbounded>false</lower_unbounded>\n                    <upper_unbounded>true</upper_unbounded>\n                    <lower>0</lower>\n                </occurrences>\n                <node_id>at0009</node_id>\n                <attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n                    <rm_attribute_name>value</rm_attribute_name>\n                    <existence>\n                        <lower_included>true</lower_included>\n                        <upper_included>true</upper_included>\n                        <lower_unbounded>false</lower_unbounded>\n                        <upper_unbounded>false</upper_unbounded>\n                        <lower>0</lower>\n                        <upper>1</upper>\n                    </existence>\n                    <match_negated>false</match_negated>\n                    <children xsi:type=\"C_COMPLEX_OBJECT\">\n                        <rm_type_name>DV_TEXT</rm_type_name>\n                        <occurrences>\n                            <lower_included>true</lower_included>\n                            <upper_included>true</upper_included>\n                            <lower_unbounded>false</lower_unbounded>\n                            <upper_unbounded>false</upper_unbounded>\n                            <lower>1</lower>\n                            <upper>1</upper>\n                        </occurrences>\n                        <node_id></node_id>\n                    </children>\n                </attributes>\n            </children>\n            <cardinality>\n                <is_ordered>false</is_ordered>\n                <is_unique>false</is_unique>\n                <interval>\n                    <lower_included>true</lower_included>\n                    <upper_included>false</upper_included>\n                    <lower_unbounded>false</lower_unbounded>\n                    <upper_unbounded>true</upper_unbounded>\n                    <lower>0</lower>\n                </interval>\n            </cardinality>\n        </attributes>\n    </children>\n</attributes>\n                            </children>\n                            <children xsi:type=\"C_COMPLEX_OBJECT\">\n<rm_type_name>POINT_EVENT</rm_type_name>\n<occurrences>\n    <lower_included>true</lower_included>\n    <upper_included>true</upper_included>\n    <lower_unbounded>false</lower_unbounded>\n    <upper_unbounded>false</upper_unbounded>\n    <lower>0</lower>\n    <upper>1</upper>\n</occurrences>\n<node_id>at0011</node_id>\n<attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n    <rm_attribute_name>data</rm_attribute_name>\n    <existence>\n        <lower_included>true</lower_included>\n        <upper_included>true</upper_included>\n        <lower_unbounded>false</lower_unbounded>\n        <upper_unbounded>false</upper_unbounded>\n        <lower>1</lower>\n        <upper>1</upper>\n    </existence>\n    <match_negated>false</match_negated>\n    <children xsi:type=\"C_COMPLEX_OBJECT\">\n        <rm_type_name>ITEM_TREE</rm_type_name>\n        <occurrences>\n            <lower_included>true</lower_included>\n            <upper_included>true</upper_included>\n            <lower_unbounded>false</lower_unbounded>\n            <upper_unbounded>false</upper_unbounded>\n            <lower>1</lower>\n            <upper>1</upper>\n        </occurrences>\n        <node_id>at0003</node_id>\n        <attributes xsi:type=\"C_MULTIPLE_ATTRIBUTE\">\n            <rm_attribute_name>items</rm_attribute_name>\n            <existence>\n                <lower_included>true</lower_included>\n                <upper_included>true</upper_included>\n                <lower_unbounded>false</lower_unbounded>\n                <upper_unbounded>false</upper_unbounded>\n                <lower>0</lower>\n                <upper>1</upper>\n            </existence>\n            <match_negated>false</match_negated>\n            <children xsi:type=\"C_COMPLEX_OBJECT\">\n                <rm_type_name>ELEMENT</rm_type_name>\n                <occurrences>\n                    <lower_included>true</lower_included>\n                    <upper_included>true</upper_included>\n                    <lower_unbounded>false</lower_unbounded>\n                    <upper_unbounded>false</upper_unbounded>\n                    <lower>0</lower>\n                    <upper>1</upper>\n                </occurrences>\n                <node_id>at0004</node_id>\n                <attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n                    <rm_attribute_name>value</rm_attribute_name>\n                    <existence>\n                        <lower_included>true</lower_included>\n                        <upper_included>true</upper_included>\n                        <lower_unbounded>false</lower_unbounded>\n                        <upper_unbounded>false</upper_unbounded>\n                        <lower>0</lower>\n                        <upper>1</upper>\n                    </existence>\n                    <match_negated>false</match_negated>\n                    <children xsi:type=\"C_DV_QUANTITY\">\n                        <rm_type_name>DV_QUANTITY</rm_type_name>\n                        <occurrences>\n                            <lower_included>true</lower_included>\n                            <upper_included>true</upper_included>\n                            <lower_unbounded>false</lower_unbounded>\n                            <upper_unbounded>false</upper_unbounded>\n                            <lower>1</lower>\n                            <upper>1</upper>\n                        </occurrences>\n                        <node_id></node_id>\n                        <property>\n                            <terminology_id>\n<value>openehr</value>\n                            </terminology_id>\n                            <code_string>122</code_string>\n                        </property>\n                        <list>\n                            <magnitude>\n<lower_included>true</lower_included>\n<upper_included>true</upper_included>\n<lower_unbounded>false</lower_unbounded>\n<upper_unbounded>false</upper_unbounded>\n<lower>0.0</lower>\n<upper>100.0</upper>\n                            </magnitude>\n                            <units>cm</units>\n                        </list>\n                        <list>\n                            <magnitude>\n<lower_included>true</lower_included>\n<upper_included>true</upper_included>\n<lower_unbounded>false</lower_unbounded>\n<upper_unbounded>false</upper_unbounded>\n<lower>0.0</lower>\n<upper>40.0</upper>\n                            </magnitude>\n                            <units>[in_i]</units>\n                        </list>\n                    </children>\n                </attributes>\n            </children>\n            <children xsi:type=\"C_COMPLEX_OBJECT\">\n                <rm_type_name>ELEMENT</rm_type_name>\n                <occurrences>\n                    <lower_included>true</lower_included>\n                    <upper_included>true</upper_included>\n                    <lower_unbounded>false</lower_unbounded>\n                    <upper_unbounded>false</upper_unbounded>\n                    <lower>0</lower>\n                    <upper>1</upper>\n                </occurrences>\n                <node_id>at0007</node_id>\n                <attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n                    <rm_attribute_name>value</rm_attribute_name>\n                    <existence>\n                        <lower_included>true</lower_included>\n                        <upper_included>true</upper_included>\n                        <lower_unbounded>false</lower_unbounded>\n                        <upper_unbounded>false</upper_unbounded>\n                        <lower>0</lower>\n                        <upper>1</upper>\n                    </existence>\n                    <match_negated>false</match_negated>\n                    <children xsi:type=\"C_COMPLEX_OBJECT\">\n                        <rm_type_name>DV_TEXT</rm_type_name>\n                        <occurrences>\n                            <lower_included>true</lower_included>\n                            <upper_included>true</upper_included>\n                            <lower_unbounded>false</lower_unbounded>\n                            <upper_unbounded>false</upper_unbounded>\n                            <lower>1</lower>\n                            <upper>1</upper>\n                        </occurrences>\n                        <node_id></node_id>\n                    </children>\n                </attributes>\n            </children>\n            <cardinality>\n                <is_ordered>false</is_ordered>\n                <is_unique>false</is_unique>\n                <interval>\n                    <lower_included>true</lower_included>\n                    <upper_included>false</upper_included>\n                    <lower_unbounded>false</lower_unbounded>\n                    <upper_unbounded>true</upper_unbounded>\n                    <lower>1</lower>\n                </interval>\n            </cardinality>\n        </attributes>\n    </children>\n</attributes>\n<attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n    <rm_attribute_name>state</rm_attribute_name>\n    <existence>\n        <lower_included>true</lower_included>\n        <upper_included>true</upper_included>\n        <lower_unbounded>false</lower_unbounded>\n        <upper_unbounded>false</upper_unbounded>\n        <lower>0</lower>\n        <upper>1</upper>\n    </existence>\n    <match_negated>false</match_negated>\n    <children xsi:type=\"C_COMPLEX_OBJECT\">\n        <rm_type_name>ITEM_TREE</rm_type_name>\n        <occurrences>\n            <lower_included>true</lower_included>\n            <upper_included>true</upper_included>\n            <lower_unbounded>false</lower_unbounded>\n            <upper_unbounded>false</upper_unbounded>\n            <lower>1</lower>\n            <upper>1</upper>\n        </occurrences>\n        <node_id>at0008</node_id>\n        <attributes xsi:type=\"C_MULTIPLE_ATTRIBUTE\">\n            <rm_attribute_name>items</rm_attribute_name>\n            <existence>\n                <lower_included>true</lower_included>\n                <upper_included>true</upper_included>\n                <lower_unbounded>false</lower_unbounded>\n                <upper_unbounded>false</upper_unbounded>\n                <lower>0</lower>\n                <upper>1</upper>\n            </existence>\n            <match_negated>false</match_negated>\n            <children xsi:type=\"C_COMPLEX_OBJECT\">\n                <rm_type_name>ELEMENT</rm_type_name>\n                <occurrences>\n                    <lower_included>true</lower_included>\n                    <upper_included>false</upper_included>\n                    <lower_unbounded>false</lower_unbounded>\n                    <upper_unbounded>true</upper_unbounded>\n                    <lower>0</lower>\n                </occurrences>\n                <node_id>at0009</node_id>\n                <attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n                    <rm_attribute_name>value</rm_attribute_name>\n                    <existence>\n                        <lower_included>true</lower_included>\n                        <upper_included>true</upper_included>\n                        <lower_unbounded>false</lower_unbounded>\n                        <upper_unbounded>false</upper_unbounded>\n                        <lower>0</lower>\n                        <upper>1</upper>\n                    </existence>\n                    <match_negated>false</match_negated>\n                    <children xsi:type=\"C_COMPLEX_OBJECT\">\n                        <rm_type_name>DV_TEXT</rm_type_name>\n                        <occurrences>\n                            <lower_included>true</lower_included>\n                            <upper_included>true</upper_included>\n                            <lower_unbounded>false</lower_unbounded>\n                            <upper_unbounded>false</upper_unbounded>\n                            <lower>1</lower>\n                            <upper>1</upper>\n                        </occurrences>\n                        <node_id></node_id>\n                    </children>\n                </attributes>\n            </children>\n            <cardinality>\n                <is_ordered>false</is_ordered>\n                <is_unique>false</is_unique>\n                <interval>\n                    <lower_included>true</lower_included>\n                    <upper_included>false</upper_included>\n                    <lower_unbounded>false</lower_unbounded>\n                    <upper_unbounded>true</upper_unbounded>\n                    <lower>0</lower>\n                </interval>\n            </cardinality>\n        </attributes>\n    </children>\n</attributes>\n                            </children>\n                            <cardinality>\n<is_ordered>false</is_ordered>\n<is_unique>false</is_unique>\n<interval>\n    <lower_included>true</lower_included>\n    <upper_included>false</upper_included>\n    <lower_unbounded>false</lower_unbounded>\n    <upper_unbounded>true</upper_unbounded>\n    <lower>1</lower>\n</interval>\n                            </cardinality>\n                        </attributes>\n                    </children>\n                </attributes>\n                <attributes xsi:type=\"C_SINGLE_ATTRIBUTE\">\n                    <rm_attribute_name>protocol</rm_attribute_name>\n                    <existence>\n                        <lower_included>true</lower_included>\n                        <upper_included>true</upper_included>\n                        <lower_unbounded>false</lower_unbounded>\n                        <upper_unbounded>false</upper_unbounded>\n                        <lower>0</lower>\n                        <upper>1</upper>\n                    </existence>\n                    <match_negated>false</match_negated>\n                    <children xsi:type=\"C_COMPLEX_OBJECT\">\n                        <rm_type_name>ITEM_TREE</rm_type_name>\n                        <occurrences>\n                            <lower_included>true</lower_included>\n                            <upper_included>true</upper_included>\n                            <lower_unbounded>false</lower_unbounded>\n                            <upper_unbounded>false</upper_unbounded>\n                            <lower>1</lower>\n                            <upper>1</upper>\n                        </occurrences>\n                        <node_id>at0005</node_id>\n                        <attributes xsi:type=\"C_MULTIPLE_ATTRIBUTE\">\n                            <rm_attribute_name>items</rm_attribute_name>\n                            <existence>\n<lower_included>true</lower_included>\n<upper_included>true</upper_included>\n<lower_unbounded>false</lower_unbounded>\n<upper_unbounded>false</upper_unbounded>\n<lower>0</lower>\n<upper>1</upper>\n                            </existence>\n                            <match_negated>false</match_negated>\n                            <children xsi:type=\"ARCHETYPE_SLOT\">\n<rm_type_name>CLUSTER</rm_type_name>\n<occurrences>\n    <lower_included>true</lower_included>\n    <upper_included>true</upper_included>\n    <lower_unbounded>false</lower_unbounded>\n    <upper_unbounded>false</upper_unbounded>\n    <lower>0</lower>\n    <upper>1</upper>\n</occurrences>\n<node_id>at0006</node_id>\n<includes>\n    <string_expression>archetype_id/value matches {/openEHR-EHR-CLUSTER\\.device(-[a-zA-Z0-9_]+)*\\.v1/}</string_expression>\n    <expression xsi:type=\"EXPR_BINARY_OPERATOR\">\n        <type>Boolean</type>\n        <operator>2007</operator>\n        <precedence_overridden>false</precedence_overridden>\n        <left_operand xsi:type=\"EXPR_LEAF\">\n            <type>String</type>\n            <item xmlns:xs=\"http://www.w3.org/2001/XMLSchema\" xsi:type=\"xs:string\">archetype_id/value</item>\n            <reference_type>attribute</reference_type>\n        </left_operand>\n        <right_operand xsi:type=\"EXPR_LEAF\">\n            <type>String</type>\n            <item xsi:type=\"C_STRING\">\n                <pattern>openEHR-EHR-CLUSTER\\.device(-[a-zA-Z0-9_]+)*\\.v1</pattern>\n            </item>\n            <reference_type>constraint</reference_type>\n        </right_operand>\n    </expression>\n</includes>\n                            </children>\n                            <children xsi:type=\"ARCHETYPE_SLOT\">\n<rm_type_name>CLUSTER</rm_type_name>\n<occurrences>\n    <lower_included>true</lower_included>\n    <upper_included>false</upper_included>\n    <lower_unbounded>false</lower_unbounded>\n    <upper_unbounded>true</upper_unbounded>\n    <lower>0</lower>\n</occurrences>\n<node_id>at0012</node_id>\n<includes>\n    <string_expression>archetype_id/value matches {/.*/}</string_expression>\n    <expression xsi:type=\"EXPR_BINARY_OPERATOR\">\n        <type>Boolean</type>\n        <operator>2007</operator>\n        <precedence_overridden>false</precedence_overridden>\n        <left_operand xsi:type=\"EXPR_LEAF\">\n            <type>String</type>\n            <item xmlns:xs=\"http://www.w3.org/2001/XMLSchema\" xsi:type=\"xs:string\">archetype_id/value</item>\n            <reference_type>attribute</reference_type>\n        </left_operand>\n        <right_operand xsi:type=\"EXPR_LEAF\">\n            <type>String</type>\n            <item xsi:type=\"C_STRING\">\n                <pattern>.*</pattern>\n            </item>\n            <reference_type>constraint</reference_type>\n        </right_operand>\n    </expression>\n</includes>\n                            </children>\n                            <cardinality>\n<is_ordered>false</is_ordered>\n<is_unique>false</is_unique>\n<interval>\n    <lower_included>true</lower_included>\n    <upper_included>false</upper_included>\n    <lower_unbounded>false</lower_unbounded>\n    <upper_unbounded>true</upper_unbounded>\n    <lower>0</lower>\n</interval>\n                            </cardinality>\n                        </attributes>\n                    </children>\n                </attributes>\n                <archetype_id>\n                    <value>openEHR-EHR-OBSERVATION.head_circumference.v1</value>\n                </archetype_id>\n                <term_definitions code=\"at0001\">\n                    <items id=\"text\">Event Series</items>\n                    <items id=\"description\">@ internal @</items>\n                </term_definitions>\n                <term_definitions code=\"at0003\">\n                    <items id=\"text\">Tree</items>\n                    <items id=\"description\">@ internal @</items>\n                </term_definitions>\n                <term_definitions code=\"at0004\">\n                    <items id=\"text\">Head circumference</items>\n                    <items id=\"description\">The measurement of the longest distance around the head.</items>\n                </term_definitions>\n                <term_definitions code=\"at0005\">\n                    <items id=\"text\">Tree</items>\n                    <items id=\"description\">@ internal @</items>\n                </term_definitions>\n                <term_definitions code=\"at0006\">\n                    <items id=\"text\">Device</items>\n                    <items id=\"description\">Details about the device used for the measurement.</items>\n                </term_definitions>\n                <term_definitions code=\"at0007\">\n                    <items id=\"text\">Comment</items>\n                    <items id=\"description\">Additional narrative about the head circumference not captured in other fields.</items>\n                </term_definitions>\n                <term_definitions code=\"at0008\">\n                    <items id=\"text\">Tree</items>\n                    <items id=\"description\">@ internal @</items>\n                </term_definitions>\n                <term_definitions code=\"at0009\">\n                    <items id=\"text\">Confounding factors</items>\n                    <items id=\"description\">Narrative descripiton of any issues or factors that may impact on the measurement.</items>\n                    <items id=\"comment\">For example: 'uncooperative child','caput &amp; moulding post birth' and 'haematoma'.</items>\n                </term_definitions>\n                <term_definitions code=\"at0010\">\n                    <items id=\"text\">Any event</items>\n                    <items id=\"description\">Default, unspecified point in time or interval event which may be explicitly defined in a template or at run-time.</items>\n                </term_definitions>\n                <term_definitions code=\"at0011\">\n                    <items id=\"text\">Birth</items>\n                    <items id=\"description\">The first measurement of head circumference that is recorded soon after birth. This event should only be used once per record.</items>\n                </term_definitions>\n                <term_definitions code=\"at0012\">\n                    <items id=\"text\">Extension</items>\n                    <items id=\"description\">Additional information required to capture local context or to align with other reference models/formalisms.</items>\n                    <items id=\"comment\">For example: Local hospital departmental infomation or additional metadata to align with FHIR or CIMI equivalents.</items>\n                </term_definitions>\n                <term_definitions code=\"at0000\">\n                    <items id=\"text\">Head circumference</items>\n                    <items id=\"description\">The measurement of the longest distance around the head.</items>\n                </term_definitions>\n                <term_definitions code=\"[in_i]\">\n                    <items id=\"text\">in</items>\n                    <items id=\"description\">inch</items>\n                </term_definitions>\n            </children>\n            <cardinality>\n                <is_ordered>false</is_ordered>\n                <is_unique>false</is_unique>\n                <interval>\n                    <lower_included>true</lower_included>\n                    <upper_included>false</upper_included>\n                    <lower_unbounded>false</lower_unbounded>\n                    <upper_unbounded>true</upper_unbounded>\n                    <lower>1</lower>\n                </interval>\n            </cardinality>\n        </attributes>\n        <archetype_id>\n            <value>openEHR-EHR-COMPOSITION.growth_chart.v0</value>\n        </archetype_id>\n        <template_id>\n            <value>Growth chart</value>\n        </template_id>\n        <term_definitions code=\"at0000\">\n            <items id=\"text\">Growth chart</items>\n            <items id=\"description\">Growth chart</items>\n        </term_definitions>\n    </definition>\n</template>\n","options":{"raw":{"language":"xml"}}},"url":"https://sandbox.open-fhir.com/opt","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{openfhir_user}}"},{"key":"password","value":"{{openfhir_user}}"}]},"isInherited":true,"source":{"_postman_id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","name":"openFHIR Tutorial","type":"collection"}},"urlObject":{"protocol":"https","path":["opt"],"host":["sandbox","open-fhir","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"31905b85-6968-4a60-b440-57ba10c1c330"},{"name":"Persist Context Mapper","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200, context is created\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Check fhirConnectContext context.template.id\", function () {","    pm.response.to.have.jsonBody(\"context.template.id\");","    pm.expect(pm.response.json().context.template.id).to.eql(\"Growth chart\");","});","","pm.test(\"Check fhirConnectContext context.archetypes\", function () {","    pm.response.to.have.jsonBody(\"context.archetypes\");","    let archetypes = pm.response.json().context.archetypes;","    pm.expect(archetypes).to.eql([","        \"OBSERVATION.body_weight.v2\",","        \"OBSERVATION.height.v2\",","        \"OBSERVATION.body_mass_index.v2\",","        \"OBSERVATION.head_circumference.v1\",","        \"openEHR-EHR-COMPOSITION.growth_chart.v0\"","    ]);","});","","pm.test(\"Check fhirConnectContext context.start\", function () {","    pm.response.to.have.jsonBody(\"context.start\");","    pm.expect(pm.response.json().context.start).to.eql(\"openEHR-EHR-COMPOSITION.growth_chart.v0\");","});",""],"type":"text/javascript","packages":{},"requests":{},"id":"245f085a-62fa-486a-b43b-325fcf93ba12"}}],"id":"cb9d94ea-9f66-4055-9fe7-6d510c24ee57","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"grammar: FHIRConnect/v0.0.1\ntype: context\nmetadata:\n  name: \"Growth chart\"\n  version: 1.0.0\nspec:\n  system: FHIR\n  version: R4\ncontext:\n  profile:\n      url: \"\"\n  template:\n      id: \"Growth chart\"\n  archetypes:\n    - \"OBSERVATION.body_weight.v2\"\n    - \"OBSERVATION.height.v2\"\n    - \"OBSERVATION.body_mass_index.v2\"\n    - \"OBSERVATION.head_circumference.v1\"\n    - \"openEHR-EHR-COMPOSITION.growth_chart.v0\"\n  start: \"openEHR-EHR-COMPOSITION.growth_chart.v0\"","options":{"raw":{"language":"text"}}},"url":"https://sandbox.open-fhir.com/fc/context","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{openfhir_user}}"},{"key":"password","value":"{{openfhir_user}}"}]},"isInherited":true,"source":{"_postman_id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","name":"openFHIR Tutorial","type":"collection"}},"urlObject":{"protocol":"https","path":["fc","context"],"host":["sandbox","open-fhir","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"cb9d94ea-9f66-4055-9fe7-6d510c24ee57"},{"name":"Persist Model Mapper Growth Chart","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","packages":{},"requests":{},"id":"8ef51597-3619-4ba8-b7fa-d4caea9a159c"}}],"id":"91cc6187-de2c-4587-845c-76415aca52a6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"grammar: FHIRConnect/v0.0.1\ntype: model\nmetadata:\n  name: \"openEHR-EHR-COMPOSITION.growth_chart.v0\"\n  version: 0.0.1a # version of this particular mapping\nspec: # schema specific to the FHIRConnect v0.0.1 engine\n  system: FHIR\n  version: R4\n  openEhrConfig:\n    archetype: \"openEHR-EHR-COMPOSITION.growth_chart.v0\"\n  fhirConfig:\n    structureDefinition: http://hl7.org/fhir/StructureDefinition/Bundle\n\nmappings:\n\n  - name: \"heightParent\"\n    with:\n      fhir: \"$resource.entry\"\n      openehr: \"$composition/content[openEHR-EHR-OBSERVATION.height.v2]/data[at0002]/events[at0003]\"\n    followedBy:\n      mappings:\n        - name: \"iterateHeight\"\n          with:\n            fhir: \"resource\"\n            openehr: \"$reference\"\n          reference:\n            resourceType: \"Observation\"\n            mappings:\n              - name: \"heightSlot\"\n                with:\n                  fhir: \"$fhirRoot\"\n                  openehr: \"$composition/content[openEHR-EHR-OBSERVATION.height.v2]\"\n                slotArchetype: \"openEHR-EHR-OBSERVATION.height.v2\"\n\n  - name: \"weightParent\"\n    with:\n      fhir: \"$resource.entry\"\n      openehr: \"$composition/content[openEHR-EHR-OBSERVATION.body_weight.v2]/data[at0002]/events[at0003]\"\n    followedBy:\n      mappings:\n        - name: \"iterateWeight\"\n          with:\n            fhir: \"resource\"\n            openehr: \"$reference\"\n          reference:\n            resourceType: \"Observation\"\n            mappings:\n              - name: \"weightSlot\"\n                with:\n                  fhir: \"$fhirRoot\"\n                  openehr: \"$composition/content[openEHR-EHR-OBSERVATION.body_weight.v2]\"\n                slotArchetype: \"openEHR-EHR-OBSERVATION.body_weight.v2\"\n\n  - name: \"bmiParent\"\n    with:\n      fhir: \"$resource.entry\"\n      openehr: \"$composition/content[openEHR-EHR-OBSERVATION.body_mass_index.v2]/data[at0002]/events[at0003]\"\n    followedBy:\n      mappings:\n        - name: \"iterateBmi\"\n          with:\n            fhir: \"resource\"\n            openehr: \"$reference\"\n          reference:\n            resourceType: \"Observation\"\n            mappings:\n              - name: \"bmiSlot\"\n                with:\n                  fhir: \"$fhirRoot\"\n                  openehr: \"$composition/content[openEHR-EHR-OBSERVATION.body_mass_index.v2]\"\n                slotArchetype: \"openEHR-EHR-OBSERVATION.body_mass_index.v2\"\n\n  - name: \"headCircumferenceParent\"\n    with:\n      fhir: \"$resource.entry\"\n      openehr: \"$composition/content[openEHR-EHR-OBSERVATION.head_circumference.v1]/data[at0002]/events[at0003]\"\n    followedBy:\n      mappings:\n        - name: \"iterateHead\"\n          with:\n            fhir: \"resource\"\n            openehr: \"$reference\"\n          reference:\n            resourceType: \"Observation\"\n            mappings:\n              - name: \"headCircumferenceSlot\"\n                with:\n                  fhir: \"$fhirRoot\"\n                  openehr: \"$composition/content[openEHR-EHR-OBSERVATION.head_circumference.v1]\"\n                slotArchetype: \"openEHR-EHR-OBSERVATION.head_circumference.v1\"\n","options":{"raw":{"language":"text"}}},"url":"https://sandbox.open-fhir.com/fc/model","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{openfhir_user}}"},{"key":"password","value":"{{openfhir_user}}"}]},"isInherited":true,"source":{"_postman_id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","name":"openFHIR Tutorial","type":"collection"}},"urlObject":{"protocol":"https","path":["fc","model"],"host":["sandbox","open-fhir","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"91cc6187-de2c-4587-845c-76415aca52a6"},{"name":"Persist Model Mapper Body Weight","event":[{"listen":"test","script":{"id":"95e9f3d3-8fb3-4d66-901b-f7ed4e7a10a9","exec":["pm.test(\"Status code is 200\", function () {","    const response = pm.response.json();","    pm.response.to.have.status(200);","    console.log(response.id);","    pm.globals.set('weight_mapping_id', response.id);","});","","pm.test(\"Response contains exactly four mappings\", function () {","    const mappings = pm.response.json().mappings;","    pm.expect(mappings).to.have.lengthOf(4);","});","","pm.test(\"Third mapping has all required properties\", function () {","    const secondMapping = pm.response.json().mappings[2];","    ","    pm.expect(secondMapping).to.have.property(\"name\").that.equals(\"time\");","    pm.expect(secondMapping).to.have.property(\"with\").that.is.an(\"object\");","    ","    const withProperty = secondMapping.with;","    pm.expect(withProperty).to.have.property(\"fhir\").that.equals(\"$resource.effective\");","    pm.expect(withProperty).to.have.property(\"openehr\").that.equals(\"$archetype/data[at0002]/events[at0003]/time\");","});",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"3483aedb-ca49-4564-bc1e-c11cc579e6fa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"grammar: FHIRConnect/v0.0.1\ntype: model\nmetadata:\n  name: \"OBSERVATION.body_weight.v2\"\n  version: 0.0.1a # version of this particular mapping\nspec: # schema specific to the FHIRConnect v0.0.1 engine\n  system: FHIR\n  version: R4\n  openEhrConfig:\n    archetype: \"openEHR-EHR-OBSERVATION.body_weight.v2\"\n  fhirConfig:\n    structureDefinition: http://hl7.org/fhir/StructureDefinition/Observation\n\npreprocessor:\n  hierarchy:\n    with:\n      fhir: \"$resource\"\n      openehr: \"$archetype/data[at0002]/events[at0003]\"\n    split:\n      fhir:\n        create: \"resource\"\n\n  fhirCondition:\n    targetRoot: \"$resource\"\n    targetAttribute: \"category.coding.code\"\n    operator: \"one of\"\n    criteria: \"weight\"\n\nmappings:\n\n  - name: \"weight\"\n    with:\n      fhir: \"$resource.value\"\n      openehr: \"$archetype/data[at0002]/events[at0003]/data[at0001]/items[at0004]\"\n\n  - name: \"category\"\n    with:\n      fhir: \"$resource.category.coding\"\n      openehr: \"$archetype\"\n    manual:\n      - name: \"weightCategory\"\n        fhir:\n          - path: \"code\"\n            value: \"weight\"\n\n  - name: \"time\"\n    with:\n      fhir: \"$resource.effective\"\n      openehr: \"$archetype/data[at0002]/events[at0003]/time\"\n\n  - name: \"code\"\n    unidirectional: \"openehr->fhir\"\n    with:\n      fhir: \"$resource.code.coding\"\n      openehr: \"$archetype\"\n    manual:\n      - name: \"code\"\n        fhir:\n          - path: \"code\"\n            value: \"29463-7\"","options":{"raw":{"language":"text"}}},"url":"https://sandbox.open-fhir.com/fc/model","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{openfhir_user}}"},{"key":"password","value":"{{openfhir_user}}"}]},"isInherited":true,"source":{"_postman_id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","name":"openFHIR Tutorial","type":"collection"}},"urlObject":{"protocol":"https","path":["fc","model"],"host":["sandbox","open-fhir","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"3483aedb-ca49-4564-bc1e-c11cc579e6fa"},{"name":"Persist Model Mapper Body Height","event":[{"listen":"test","script":{"id":"be07af69-0fe6-4b0c-8471-7b6b347e692f","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"dfddee7b-19ff-4eed-9a45-8092fdab24b6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"grammar: FHIRConnect/v0.0.1\ntype: model\nmetadata:\n  name: \"OBSERVATION.height.v2\"\n  version: 0.0.1a # version of this particular mapping\nspec: # schema specific to the FHIRConnect v0.0.1 engine\n  system: FHIR\n  version: R4\n  openEhrConfig:\n    archetype: \"openEHR-EHR-OBSERVATION.height.v2\"\n  fhirConfig:\n    structureDefinition: http://hl7.org/fhir/StructureDefinition/Observation\n\npreprocessor:\n  hierarchy:\n    with:\n      fhir: \"$resource\"\n      openehr: \"$archetype/data[at0001]/events[at0002]\"\n    split:\n      fhir:\n        create: \"resource\"\n  fhirCondition:\n    targetRoot: \"$resource\"\n    targetAttribute: \"category.coding.code\"\n    operator: \"one of\"\n    criteria: \"height\"\n\nmappings:\n\n  - name: \"height\"\n    with:\n      fhir: \"$resource.value\"\n      openehr: \"$archetype/data[at0001]/events[at0002]/data[at0003]/items[at0004]\"\n\n  - name: \"category\"\n    with:\n      fhir: \"$resource.category.coding\"\n      openehr: \"$archetype\"\n    manual:\n      - name: \"heightCategory\"\n        fhir:\n          - path: \"code\"\n            value: \"height\"\n\n  - name: \"code\"\n    unidirectional: \"openehr->fhir\"\n    with:\n      fhir: \"$resource.code.coding\"\n      openehr: \"$archetype\"\n    manual:\n      - name: \"code\"\n        fhir:\n          - path: \"code\"\n            value: \"8302-2\"\n      ","options":{"raw":{"language":"text"}}},"url":"https://sandbox.open-fhir.com/fc/model","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{openfhir_user}}"},{"key":"password","value":"{{openfhir_user}}"}]},"isInherited":true,"source":{"_postman_id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","name":"openFHIR Tutorial","type":"collection"}},"urlObject":{"protocol":"https","path":["fc","model"],"host":["sandbox","open-fhir","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"dfddee7b-19ff-4eed-9a45-8092fdab24b6"},{"name":"Persist Model Mapper BMI","event":[{"listen":"test","script":{"id":"054a335a-b1e5-4c11-8093-c76657912946","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","packages":{},"requests":{}}},{"listen":"prerequest","script":{"id":"d67cfbe0-4ccc-43ea-b7c4-792f24c8546e","exec":[""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"eef03df8-b18e-4cb4-a997-2ce85406fa28","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"grammar: FHIRConnect/v0.0.1\ntype: model\nmetadata:\n  name: \"OBSERVATION.body_mass_index.v2\"\n  version: 0.0.1a # version of this particular mapping\nspec: # schema specific to the FHIRConnect v0.0.1 engine\n  system: FHIR\n  version: R4\n  openEhrConfig:\n    archetype: \"openEHR-EHR-OBSERVATION.body_mass_index.v2\"\n  fhirConfig:\n    structureDefinition: http://hl7.org/fhir/StructureDefinition/Observation\n\npreprocessor:\n  hierarchy:\n    with:\n      fhir: \"$resource\"\n      openehr: \"$archetype/data[at0001]/events[at0002]\"\n    split:\n      fhir:\n        create: \"resource\"\n  fhirCondition:\n    targetRoot: \"$resource\"\n    targetAttribute: \"category.coding.code\"\n    operator: \"one of\"\n    criteria: \"bmi\"\n\nmappings:\n  - name: \"bmi\"\n    with:\n      fhir: \"$resource.value\"\n      openehr: \"$archetype/data[at0001]/events[at0002]/data[at0003]/items[at0004]\"\n\n  - name: \"category\"\n    with:\n      fhir: \"$resource.category.coding\"\n      openehr: \"$archetype\"\n    manual:\n      - name: \"bmiCategory\"\n        fhir:\n          - path: \"code\"\n            value: \"bmi\"\n\n  - name: \"time\"\n    with:\n      fhir: \"$resource.effective\"\n      openehr: \"$archetype/data[at0001]/events[at0002]/time\"\n\n  - name: \"code\"\n    unidirectional: \"openehr->fhir\"\n    with:\n      fhir: \"$resource.code.coding\"\n      openehr: \"$archetype\"\n    manual:\n      - name: \"code\"\n        fhir:\n          - path: \"code\"\n            value: \"39156-5\"\n","options":{"raw":{"language":"text"}}},"url":"https://sandbox.open-fhir.com/fc/model","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{openfhir_user}}"},{"key":"password","value":"{{openfhir_user}}"}]},"isInherited":true,"source":{"_postman_id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","name":"openFHIR Tutorial","type":"collection"}},"urlObject":{"protocol":"https","path":["fc","model"],"host":["sandbox","open-fhir","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"eef03df8-b18e-4cb4-a997-2ce85406fa28"},{"name":"Persist Model Mapper Head Circumference","event":[{"listen":"test","script":{"id":"5e84ddc8-9664-4a4b-849b-748485b10f03","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","packages":{},"requests":{}}},{"listen":"prerequest","script":{"id":"dce798c2-4fe9-4eda-aa52-2ab783e4ca03","exec":[""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"612d9496-4121-4ae6-a606-a1162419c569","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"grammar: FHIRConnect/v0.0.1\ntype: model\nmetadata:\n  name: \"OBSERVATION.head_circumference.v1\"\n  version: 0.0.1a # version of this particular mapping\nspec: # schema specific to the FHIRConnect v0.0.1 engine\n  system: FHIR\n  version: R4\n  openEhrConfig:\n    archetype: \"openEHR-EHR-OBSERVATION.head_circumference.v1\"\n  fhirConfig:\n    structureDefinition: http://hl7.org/fhir/StructureDefinition/Observation\n\npreprocessor:\n  hierarchy:\n    with:\n      fhir: \"$resource\"\n      openehr: \"$archetype/data[at0001]/events[at0010]\"\n    split:\n      fhir:\n        create: \"resource\"\n\n  fhirConditions:\n    - targetRoot: \"$resource\"\n      targetAttribute: \"category.coding.code\"\n      operator: \"one of\"\n      criteria: \"head_circumference\"\n\n    - targetRoot: \"$resource\"\n      targetAttribute: \"status\"\n      operator: \"one of\"\n      criteria: \"final\"\n\nmappings:\n\n  - name: \"headCircumference\"\n    with:\n      fhir: \"$resource.value\"\n      openehr: \"$archetype/data[at0001]/events[at0010]/data[at0003]/items[at0004]\"\n\n  - name: \"category\"\n    with:\n      fhir: \"$resource.category.coding\"\n      openehr: \"$archetype\"\n    manual:\n      - name: \"hciCategory\"\n        fhir:\n          - path: \"code\"\n            value: \"head_circumference\"\n\n  - name: \"time\"\n    with:\n      fhir: \"$resource.effective\"\n      openehr: \"$archetype/data[at0001]/events[at0010]/time\"\n  - name: \"status\"\n    unidirectional: \"openehr->fhir\"\n    with:\n      fhir: \"$resource\"\n      openehr: \"$archetype\"\n    manual:\n      - name: \"status\"\n        fhir:\n          - path: \"status\"\n            value: \"final\"\n\n  - name: \"code\"\n    unidirectional: \"openehr->fhir\"\n    with:\n      fhir: \"$resource.code.coding\"\n      openehr: \"$archetype\"\n    manual:\n      - name: \"code\"\n        fhir:\n          - path: \"code\"\n            value: \"8287-5\"\n","options":{"raw":{"language":"text"}}},"url":"https://sandbox.open-fhir.com/fc/model","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{openfhir_user}}"},{"key":"password","value":"{{openfhir_user}}"}]},"isInherited":true,"source":{"_postman_id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","name":"openFHIR Tutorial","type":"collection"}},"urlObject":{"protocol":"https","path":["fc","model"],"host":["sandbox","open-fhir","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"612d9496-4121-4ae6-a606-a1162419c569"}],"id":"11c46e37-dac9-45a2-9d28-90a4722380fe","description":"<p>With requests in this folder, you prepare a state of the openFHIR Engine. State required by the engine are mapping files according to FHIR Connect specification and are split to context.yaml files and model.yaml files. Additionally, state required by the engine are also openEHR Operational Templates (.opt), which can either be part of the openFHIR Engine’s state or it can come from an integrated openEHR repository. In this case, we create an .opt as well.</p>\n","_postman_id":"11c46e37-dac9-45a2-9d28-90a4722380fe","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{openfhir_user}}"},{"key":"password","value":"{{openfhir_user}}"}]},"isInherited":true,"source":{"_postman_id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","name":"openFHIR Tutorial","type":"collection"}}},{"name":"(2) Run Mappings","item":[{"name":"openEHR flat to FHIR","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","const response = pm.response.json();","","// Test 1: Assert the number of entries in the Bundle","pm.test(\"Number of Bundle entries\", function () {","    pm.expect(response.entry).to.have.lengthOf(12);  // Adjust if the number of entries changes","});","","// Test 2: Assert the number of entries with category.coding.code = \"weight\"","pm.test(\"Number of entries with category.coding.code = weight\", function () {","    const weightEntries = response.entry.filter(entry => {","        return entry.resource.category && entry.resource.category.some(category => ","            category.coding && category.coding.some(coding => coding.code === \"weight\")","        );","    });","    pm.expect(weightEntries).to.have.lengthOf(3);  ","});","","pm.test(\"Number of entries with category.coding.code = height\", function () {","    const weightEntries = response.entry.filter(entry => {","        return entry.resource.category && entry.resource.category.some(category => ","            category.coding && category.coding.some(coding => coding.code === \"height\")","        );","    });","    pm.expect(weightEntries).to.have.lengthOf(3); ","});","","pm.test(\"Number of entries with category.coding.code = bmi\", function () {","    const weightEntries = response.entry.filter(entry => {","        return entry.resource.category && entry.resource.category.some(category => ","            category.coding && category.coding.some(coding => coding.code === \"bmi\")","        );","    });","    pm.expect(weightEntries).to.have.lengthOf(3); ","});","","pm.test(\"Number of entries with category.coding.code = head_circumference\", function () {","    const weightEntries = response.entry.filter(entry => {","        return entry.resource.category && entry.resource.category.some(category => ","            category.coding && category.coding.some(coding => coding.code === \"head_circumference\")","        );","    });","    pm.expect(weightEntries).to.have.lengthOf(3); ","});","","// Test 6: Assert actual valueQuantity and code.coding.code for \"weight\" entries","pm.test(\"Assert valueQuantity and code.coding.code for weight entries\", function () {","    const weightEntries = response.entry.filter(entry => {","        return entry.resource.category && entry.resource.category.some(category => ","            category.coding && category.coding.some(coding => coding.code === \"weight\")","        );","    });","    weightEntries.forEach(function (entry) {","        const code = entry.resource.code.coding[0].code;","        pm.expect(code).to.equal(\"29463-7\");  // Expect code to be 29463-7 for weight","    });","});","","// Test 7: Assert actual valueQuantity and code.coding.code for \"height\" entries","pm.test(\"Assert valueQuantity and code.coding.code for height entries\", function () {","    const heightEntries = response.entry.filter(entry => {","        return entry.resource.category && entry.resource.category.some(category => ","            category.coding && category.coding.some(coding => coding.code === \"height\")","        );","    });","    heightEntries.forEach(function (entry) {","        const valueQuantity = entry.resource.valueQuantity;","        const code = entry.resource.code.coding[0].code;","        pm.expect(code).to.equal(\"8302-2\");  // Expect code to be 8302-2 for height","        pm.expect(valueQuantity.value).to.be.a('number');  // Ensure value is a number","        pm.expect(valueQuantity.unit).to.be.a('string');  // Ensure unit is a string","    });","","    pm.expect(heightEntries[0].resource.valueQuantity.value).to.equal(500.0);","    pm.expect(heightEntries[0].resource.valueQuantity.unit).to.equal('cm');","","    pm.expect(heightEntries[1].resource.valueQuantity.value).to.equal(600.0);","    pm.expect(heightEntries[1].resource.valueQuantity.unit).to.equal('cm');","","    pm.expect(heightEntries[2].resource.valueQuantity.value).to.equal(700.0);","    pm.expect(heightEntries[2].resource.valueQuantity.unit).to.equal('cm');","});","","// Test 8: Assert actual valueQuantity and code.coding.code for \"bmi\" entries","pm.test(\"Assert valueQuantity and code.coding.code for bmi entries\", function () {","    const bmiEntries = response.entry.filter(entry => {","        return entry.resource.category && entry.resource.category.some(category => ","            category.coding && category.coding.some(coding => coding.code === \"bmi\")","        );","    });","    bmiEntries.forEach(function (entry) {","        const valueQuantity = entry.resource.valueQuantity;","        const code = entry.resource.code.coding[0].code;","        pm.expect(code).to.equal(\"39156-5\");  // Expect code to be 39156-5 for bmi","        pm.expect(valueQuantity.value).to.be.a('number');  // Ensure value is a number","        pm.expect(valueQuantity.unit).to.be.a('string');  // Ensure unit is a string","    });","});","","// Test 9: Assert actual valueQuantity and code.coding.code for \"head_circumference\" entries","pm.test(\"Assert valueQuantity and code.coding.code for head_circumference entries\", function () {","    const headCircumferenceEntries = response.entry.filter(entry => {","        return entry.resource.category && entry.resource.category.some(category => ","            category.coding && category.coding.some(coding => coding.code === \"head_circumference\")","        );","    });","    headCircumferenceEntries.forEach(function (entry) {","        const valueQuantity = entry.resource.valueQuantity;","        const code = entry.resource.code.coding[0].code;","        pm.expect(code).to.equal(\"8287-5\");  // Expect code to be 8287-5 for head circumference","        pm.expect(valueQuantity.value).to.be.a('number');  // Ensure value is a number","        pm.expect(valueQuantity.unit).to.be.a('string');  // Ensure unit is a string","    });","});","","",""],"type":"text/javascript","packages":{},"requests":{},"id":"b2ed0f59-f58a-4ba6-a2ac-136118fdded7"}}],"id":"1f5f3b08-7432-4289-b4eb-300d4f2d370e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"growth_chart/category|code\": \"433\",\n  \"growth_chart/category|value\": \"event\",\n  \"growth_chart/category|terminology\": \"openehr\",\n  \"growth_chart/context/start_time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/context/setting|terminology\": \"openehr\",\n  \"growth_chart/context/setting|code\": \"225\",\n  \"growth_chart/context/setting|value\": \"home\",\n  \"growth_chart/context/_end_time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/context/_health_care_facility|name\": \"DOE, John\",\n  \"growth_chart/body_weight/birth/weight|unit\": \"kg\",\n  \"growth_chart/body_weight/birth/weight|magnitude\": 500.0,\n  \"growth_chart/body_weight/birth/comment\": \"Lorem ipsum\",\n  \"growth_chart/body_weight/birth/state_of_dress|code\": \"at0013\",\n  \"growth_chart/body_weight/birth/state_of_dress|value\": \"Naked\",\n  \"growth_chart/body_weight/birth/state_of_dress|terminology\": \"local\",\n  \"growth_chart/body_weight/birth/confounding_factors:0\": \"Lorem ipsum\",\n  \"growth_chart/body_weight/birth/time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/body_weight/any_event:0/weight|magnitude\": 501.0,\n  \"growth_chart/body_weight/any_event:0/weight|unit\": \"kg\",\n  \"growth_chart/body_weight/any_event:0/comment\": \"body_weightLorem ipsum0\",\n  \"growth_chart/body_weight/any_event:0/state_of_dress|terminology\": \"local\",\n  \"growth_chart/body_weight/any_event:0/state_of_dress|value\": \"Naked\",\n  \"growth_chart/body_weight/any_event:0/state_of_dress|code\": \"at0013\",\n  \"growth_chart/body_weight/any_event:0/confounding_factors:0\": \"Lorem ipsum\",\n  \"growth_chart/body_weight/any_event:0/time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/body_weight/any_event:0/width\": \"PT42H\",\n  \"growth_chart/body_weight/any_event:0/math_function|terminology\": \"openehr\",\n  \"growth_chart/body_weight/any_event:0/math_function|code\": \"145\",\n  \"growth_chart/body_weight/any_event:0/math_function|value\": \"minimum\",\n  \"growth_chart/body_weight/any_event:1/weight|magnitude\": 502.0,\n  \"growth_chart/body_weight/any_event:1/weight|unit\": \"t\",\n  \"growth_chart/body_weight/any_event:1/comment\": \"body_weightLorem ipsum1\",\n  \"growth_chart/body_weight/any_event:1/state_of_dress|code\": \"at0013\",\n  \"growth_chart/body_weight/any_event:1/state_of_dress|terminology\": \"local\",\n  \"growth_chart/body_weight/any_event:1/state_of_dress|value\": \"Naked\",\n  \"growth_chart/body_weight/any_event:1/confounding_factors:0\": \"Lorem ipsum\",\n  \"growth_chart/body_weight/any_event:1/time\": \"2022-02-04T04:05:06\",\n  \"growth_chart/body_weight/any_event:2/weight|unit\": \"mm\",\n  \"growth_chart/body_weight/any_event:2/weight|magnitude\": 503.0,\n  \"growth_chart/body_weight/any_event:2/comment\": \"body_weightLorem ipsum2\",\n  \"growth_chart/body_weight/any_event:2/state_of_dress|code\": \"at0013\",\n  \"growth_chart/body_weight/any_event:2/state_of_dress|value\": \"Naked\",\n  \"growth_chart/body_weight/any_event:2/state_of_dress|terminology\": \"local\",\n  \"growth_chart/body_weight/any_event:2/confounding_factors:0\": \"Lorem ipsum\",\n  \"growth_chart/body_weight/any_event:2/time\": \"2022-02-05T04:05:06\",\n  \"growth_chart/body_weight/any_event:2/width\": \"PT42H\",\n  \"growth_chart/body_weight/any_event:2/math_function|terminology\": \"openehr\",\n  \"growth_chart/body_weight/any_event:2/math_function|code\": \"145\",\n  \"growth_chart/body_weight/any_event:2/math_function|value\": \"minimum\",\n  \"growth_chart/body_weight/language|code\": \"en\",\n  \"growth_chart/body_weight/language|terminology\": \"ISO_639-1\",\n  \"growth_chart/body_weight/encoding|code\": \"UTF-8\",\n  \"growth_chart/body_weight/encoding|terminology\": \"IANA_character-sets\",\n  \"growth_chart/body_weight/_work_flow_id|id\": \"121d020d-0639-3fc3-a3ed-21f2d72eee1f\",\n  \"growth_chart/body_weight/_work_flow_id|id_scheme\": \"scheme\",\n  \"growth_chart/body_weight/_work_flow_id|namespace\": \"unknown\",\n  \"growth_chart/body_weight/_work_flow_id|type\": \"ANY\",\n  \"growth_chart/body_weight/_guideline_id|id\": \"97063a6d-140c-3bbf-a25b-35ee3c0adeda\",\n  \"growth_chart/body_weight/_guideline_id|id_scheme\": \"scheme\",\n  \"growth_chart/body_weight/_guideline_id|namespace\": \"unknown\",\n  \"growth_chart/body_weight/_guideline_id|type\": \"ANY\",\n  \"growth_chart/height_length/birth/height_length|magnitude\": 500.0,\n  \"growth_chart/height_length/birth/height_length|unit\": \"cm\",\n  \"growth_chart/height_length/birth/comment\": \"Lorem ipsum\",\n  \"growth_chart/height_length/birth/position|code\": \"at0016\",\n  \"growth_chart/height_length/birth/position|value\": \"Standing\",\n  \"growth_chart/height_length/birth/position|terminology\": \"local\",\n  \"growth_chart/height_length/birth/confounding_factors\": \"Lorem ipsum\",\n  \"growth_chart/height_length/birth/time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/height_length/any_event:0/height_length|unit\": \"cm\",\n  \"growth_chart/height_length/any_event:0/height_length|magnitude\": 500.0,\n  \"growth_chart/height_length/any_event:0/comment\": \"height_lengthLorem ipsum0\",\n  \"growth_chart/height_length/any_event:0/position|terminology\": \"local\",\n  \"growth_chart/height_length/any_event:0/position|code\": \"at0016\",\n  \"growth_chart/height_length/any_event:0/position|value\": \"Standing\",\n  \"growth_chart/height_length/any_event:0/confounding_factors\": \"Lorem ipsum\",\n  \"growth_chart/height_length/any_event:0/time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/height_length/any_event:0/width\": \"PT42H\",\n  \"growth_chart/height_length/any_event:0/math_function|value\": \"minimum\",\n  \"growth_chart/height_length/any_event:0/math_function|code\": \"145\",\n  \"growth_chart/height_length/any_event:0/math_function|terminology\": \"openehr\",\n  \"growth_chart/height_length/any_event:1/height_length|unit\": \"cm\",\n  \"growth_chart/height_length/any_event:1/height_length|magnitude\": 600.0,\n  \"growth_chart/height_length/any_event:1/comment\": \"height_lengthLorem ipsum1\",\n  \"growth_chart/height_length/any_event:1/position|terminology\": \"local\",\n  \"growth_chart/height_length/any_event:1/position|value\": \"Standing\",\n  \"growth_chart/height_length/any_event:1/position|code\": \"at0016\",\n  \"growth_chart/height_length/any_event:1/confounding_factors\": \"Lorem ipsum\",\n  \"growth_chart/height_length/any_event:1/time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/height_length/any_event:2/height_length|magnitude\": 700.0,\n  \"growth_chart/height_length/any_event:2/height_length|unit\": \"cm\",\n  \"growth_chart/height_length/any_event:2/comment\": \"height_lengthLorem ipsum2\",\n  \"growth_chart/height_length/any_event:2/position|code\": \"at0016\",\n  \"growth_chart/height_length/any_event:2/position|value\": \"Standing\",\n  \"growth_chart/height_length/any_event:2/position|terminology\": \"local\",\n  \"growth_chart/height_length/any_event:2/confounding_factors\": \"Lorem ipsum\",\n  \"growth_chart/height_length/any_event:2/time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/height_length/any_event:2/width\": \"PT42H\",\n  \"growth_chart/height_length/any_event:2/math_function|terminology\": \"openehr\",\n  \"growth_chart/height_length/any_event:2/math_function|code\": \"145\",\n  \"growth_chart/height_length/any_event:2/math_function|value\": \"minimum\",\n  \"growth_chart/height_length/language|code\": \"en\",\n  \"growth_chart/height_length/language|terminology\": \"ISO_639-1\",\n  \"growth_chart/height_length/encoding|code\": \"UTF-8\",\n  \"growth_chart/height_length/encoding|terminology\": \"IANA_character-sets\",\n  \"growth_chart/height_length/_work_flow_id|id\": \"36c6d06e-cc47-306c-a5c4-66833ced9c2e\",\n  \"growth_chart/height_length/_work_flow_id|id_scheme\": \"scheme\",\n  \"growth_chart/height_length/_work_flow_id|namespace\": \"unknown\",\n  \"growth_chart/height_length/_work_flow_id|type\": \"ANY\",\n  \"growth_chart/height_length/_guideline_id|id\": \"48b61e73-9545-358b-b442-34db4c2ed3b9\",\n  \"growth_chart/height_length/_guideline_id|id_scheme\": \"scheme\",\n  \"growth_chart/height_length/_guideline_id|namespace\": \"unknown\",\n  \"growth_chart/height_length/_guideline_id|type\": \"ANY\",\n  \"growth_chart/body_mass_index/any_event:0/body_mass_index|magnitude\": 500.0,\n  \"growth_chart/body_mass_index/any_event:0/body_mass_index|unit\": \"kg/m2\",\n  \"growth_chart/body_mass_index/any_event:0/clinical_interpretation\": \"Lorem ipsum\",\n  \"growth_chart/body_mass_index/any_event:0/comment\": \"Lorem ipsum\",\n  \"growth_chart/body_mass_index/any_event:0/confounding_factors\": \"Lorem ipsum\",\n  \"growth_chart/body_mass_index/any_event:0/time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/body_mass_index/any_event:0/width\": \"PT42H\",\n  \"growth_chart/body_mass_index/any_event:0/math_function|terminology\": \"openehr\",\n  \"growth_chart/body_mass_index/any_event:0/math_function|value\": \"minimum\",\n  \"growth_chart/body_mass_index/any_event:0/math_function|code\": \"145\",\n  \"growth_chart/body_mass_index/any_event:1/body_mass_index|magnitude\": 500.0,\n  \"growth_chart/body_mass_index/any_event:1/body_mass_index|unit\": \"kg/m2\",\n  \"growth_chart/body_mass_index/any_event:1/clinical_interpretation\": \"Lorem ipsum\",\n  \"growth_chart/body_mass_index/any_event:1/comment\": \"Lorem ipsum\",\n  \"growth_chart/body_mass_index/any_event:1/confounding_factors\": \"Lorem ipsum\",\n  \"growth_chart/body_mass_index/any_event:1/time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/body_mass_index/any_event:2/body_mass_index|magnitude\": 500.0,\n  \"growth_chart/body_mass_index/any_event:2/body_mass_index|unit\": \"kg/m2\",\n  \"growth_chart/body_mass_index/any_event:2/clinical_interpretation\": \"Lorem ipsum\",\n  \"growth_chart/body_mass_index/any_event:2/comment\": \"Lorem ipsum\",\n  \"growth_chart/body_mass_index/any_event:2/confounding_factors\": \"Lorem ipsum\",\n  \"growth_chart/body_mass_index/any_event:2/time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/body_mass_index/any_event:2/width\": \"PT42H\",\n  \"growth_chart/body_mass_index/any_event:2/math_function|value\": \"minimum\",\n  \"growth_chart/body_mass_index/any_event:2/math_function|terminology\": \"openehr\",\n  \"growth_chart/body_mass_index/any_event:2/math_function|code\": \"145\",\n  \"growth_chart/body_mass_index/method|code\": \"at0007\",\n  \"growth_chart/body_mass_index/method|terminology\": \"local\",\n  \"growth_chart/body_mass_index/method|value\": \"Automatic entry\",\n  \"growth_chart/body_mass_index/formula\": \"Lorem ipsum\",\n  \"growth_chart/body_mass_index/language|code\": \"en\",\n  \"growth_chart/body_mass_index/language|terminology\": \"ISO_639-1\",\n  \"growth_chart/body_mass_index/encoding|terminology\": \"IANA_character-sets\",\n  \"growth_chart/body_mass_index/encoding|code\": \"UTF-8\",\n  \"growth_chart/body_mass_index/_work_flow_id|id\": \"ebd4c5ab-9ecb-3497-9452-7a30c56c1b81\",\n  \"growth_chart/body_mass_index/_work_flow_id|id_scheme\": \"scheme\",\n  \"growth_chart/body_mass_index/_work_flow_id|namespace\": \"unknown\",\n  \"growth_chart/body_mass_index/_work_flow_id|type\": \"ANY\",\n  \"growth_chart/body_mass_index/_guideline_id|id\": \"e007b8d5-6023-3236-a261-2d2aa42d6848\",\n  \"growth_chart/body_mass_index/_guideline_id|id_scheme\": \"scheme\",\n  \"growth_chart/body_mass_index/_guideline_id|namespace\": \"unknown\",\n  \"growth_chart/body_mass_index/_guideline_id|type\": \"ANY\",\n  \"growth_chart/head_circumference/birth/head_circumference|magnitude\": 50.0,\n  \"growth_chart/head_circumference/birth/head_circumference|unit\": \"cm\",\n  \"growth_chart/head_circumference/birth/comment\": \"Lorem ipsum\",\n  \"growth_chart/head_circumference/birth/confounding_factors:0\": \"Lorem ipsum\",\n  \"growth_chart/head_circumference/birth/time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/head_circumference/any_event:0/head_circumference|unit\": \"cm\",\n  \"growth_chart/head_circumference/any_event:0/head_circumference|magnitude\": 50.0,\n  \"growth_chart/head_circumference/any_event:0/comment\": \"Lorem ipsum\",\n  \"growth_chart/head_circumference/any_event:0/confounding_factors:0\": \"Lorem ipsum\",\n  \"growth_chart/head_circumference/any_event:0/time\": \"2023-02-03T04:05:06\",\n  \"growth_chart/head_circumference/any_event:0/width\": \"PT42H\",\n  \"growth_chart/head_circumference/any_event:0/math_function|terminology\": \"openehr\",\n  \"growth_chart/head_circumference/any_event:0/math_function|code\": \"145\",\n  \"growth_chart/head_circumference/any_event:0/math_function|value\": \"minimum\",\n  \"growth_chart/head_circumference/any_event:1/head_circumference|magnitude\": 51.0,\n  \"growth_chart/head_circumference/any_event:1/head_circumference|unit\": \"mm\",\n  \"growth_chart/head_circumference/any_event:1/comment\": \"Lorem ipsum\",\n  \"growth_chart/head_circumference/any_event:1/confounding_factors:0\": \"Lorem ipsum\",\n  \"growth_chart/head_circumference/any_event:1/time\": \"2023-02-04T04:05:06\",\n  \"growth_chart/head_circumference/any_event:2/head_circumference|magnitude\": 52.0,\n  \"growth_chart/head_circumference/any_event:2/head_circumference|unit\": \"m\",\n  \"growth_chart/head_circumference/any_event:2/comment\": \"Lorem ipsum\",\n  \"growth_chart/head_circumference/any_event:2/confounding_factors:0\": \"Lorem ipsum\",\n  \"growth_chart/head_circumference/any_event:2/time\": \"2023-02-05T04:05:06\",\n  \"growth_chart/head_circumference/any_event:2/width\": \"PT42H\",\n  \"growth_chart/head_circumference/any_event:2/math_function|value\": \"minimum\",\n  \"growth_chart/head_circumference/any_event:2/math_function|terminology\": \"openehr\",\n  \"growth_chart/head_circumference/any_event:2/math_function|code\": \"145\",\n  \"growth_chart/head_circumference/language|terminology\": \"ISO_639-1\",\n  \"growth_chart/head_circumference/language|code\": \"en\",\n  \"growth_chart/head_circumference/encoding|terminology\": \"IANA_character-sets\",\n  \"growth_chart/head_circumference/encoding|code\": \"UTF-8\",\n  \"growth_chart/head_circumference/_work_flow_id|id\": \"98dbdd7c-4454-3f75-b32a-7a6620c3de03\",\n  \"growth_chart/head_circumference/_work_flow_id|id_scheme\": \"scheme\",\n  \"growth_chart/head_circumference/_work_flow_id|namespace\": \"unknown\",\n  \"growth_chart/head_circumference/_work_flow_id|type\": \"ANY\",\n  \"growth_chart/head_circumference/_guideline_id|id\": \"d5ba712f-8f05-334e-a8cb-05f8f5807bf7\",\n  \"growth_chart/head_circumference/_guideline_id|id_scheme\": \"scheme\",\n  \"growth_chart/head_circumference/_guideline_id|namespace\": \"unknown\",\n  \"growth_chart/head_circumference/_guideline_id|type\": \"ANY\",\n  \"growth_chart/language|terminology\": \"ISO_639-1\",\n  \"growth_chart/language|code\": \"en\",\n  \"growth_chart/territory|terminology\": \"ISO_3166-1\",\n  \"growth_chart/territory|code\": \"DE\",\n  \"growth_chart/composer|name\": \"Max Mustermann\",\n  \"growth_chart/_uid\": \"b5e932dc-55cc-49d5-94de-c2420a3ec6ec::local.ehrbase.org::1\"\n}","options":{"raw":{"language":"json"}}},"url":"https://sandbox.open-fhir.com/openfhir/tofhir?templateId=Growth chart","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{openfhir_user}}"},{"key":"password","value":"{{openfhir_user}}"}]},"isInherited":true,"source":{"_postman_id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","name":"openFHIR Tutorial","type":"collection"}},"urlObject":{"protocol":"https","path":["openfhir","tofhir"],"host":["sandbox","open-fhir","com"],"query":[{"key":"templateId","value":"Growth chart"}],"variable":[]}},"response":[],"_postman_id":"1f5f3b08-7432-4289-b4eb-300d4f2d370e"},{"name":"openEHR canonical to FHIR","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","const response = pm.response.json();","","// Test 1: Assert the number of entries in the Bundle","pm.test(\"Number of Bundle entries\", function () {","    pm.expect(response.entry).to.have.lengthOf(12);  // Adjust if the number of entries changes","});","","// Test 2: Assert the number of entries with category.coding.code = \"weight\"","pm.test(\"Number of entries with category.coding.code = weight\", function () {","    const weightEntries = response.entry.filter(entry => {","        return entry.resource.category && entry.resource.category.some(category => ","            category.coding && category.coding.some(coding => coding.code === \"weight\")","        );","    });","    pm.expect(weightEntries).to.have.lengthOf(3);  ","});","","pm.test(\"Number of entries with category.coding.code = height\", function () {","    const weightEntries = response.entry.filter(entry => {","        return entry.resource.category && entry.resource.category.some(category => ","            category.coding && category.coding.some(coding => coding.code === \"height\")","        );","    });","    pm.expect(weightEntries).to.have.lengthOf(3); ","});","","pm.test(\"Number of entries with category.coding.code = bmi\", function () {","    const weightEntries = response.entry.filter(entry => {","        return entry.resource.category && entry.resource.category.some(category => ","            category.coding && category.coding.some(coding => coding.code === \"bmi\")","        );","    });","    pm.expect(weightEntries).to.have.lengthOf(3); ","});","","pm.test(\"Number of entries with category.coding.code = head_circumference\", function () {","    const weightEntries = response.entry.filter(entry => {","        return entry.resource.category && entry.resource.category.some(category => ","            category.coding && category.coding.some(coding => coding.code === \"head_circumference\")","        );","    });","    pm.expect(weightEntries).to.have.lengthOf(3); ","});","","// Test 6: Assert actual valueQuantity and code.coding.code for \"weight\" entries","pm.test(\"Assert valueQuantity and code.coding.code for weight entries\", function () {","    const weightEntries = response.entry.filter(entry => {","        return entry.resource.category && entry.resource.category.some(category => ","            category.coding && category.coding.some(coding => coding.code === \"weight\")","        );","    });","    weightEntries.forEach(function (entry) {","        const code = entry.resource.code.coding[0].code;","        pm.expect(code).to.equal(\"29463-7\");  // Expect code to be 29463-7 for weight","    });","});","","// Test 7: Assert actual valueQuantity and code.coding.code for \"height\" entries","pm.test(\"Assert valueQuantity and code.coding.code for height entries\", function () {","    const heightEntries = response.entry.filter(entry => {","        return entry.resource.category && entry.resource.category.some(category => ","            category.coding && category.coding.some(coding => coding.code === \"height\")","        );","    });","    heightEntries.forEach(function (entry) {","        const valueQuantity = entry.resource.valueQuantity;","        const code = entry.resource.code.coding[0].code;","        pm.expect(code).to.equal(\"8302-2\");  // Expect code to be 8302-2 for height","        pm.expect(valueQuantity.value).to.be.a('number');  // Ensure value is a number","        pm.expect(valueQuantity.unit).to.be.a('string');  // Ensure unit is a string","    });","","    pm.expect(heightEntries[0].resource.valueQuantity.value).to.equal(500.0);","    pm.expect(heightEntries[0].resource.valueQuantity.unit).to.equal('cm');","","    pm.expect(heightEntries[1].resource.valueQuantity.value).to.equal(500.0);","    pm.expect(heightEntries[1].resource.valueQuantity.unit).to.equal('cm');","","    pm.expect(heightEntries[2].resource.valueQuantity.value).to.equal(500.0);","    pm.expect(heightEntries[2].resource.valueQuantity.unit).to.equal('cm');","});","","// Test 8: Assert actual valueQuantity and code.coding.code for \"bmi\" entries","pm.test(\"Assert valueQuantity and code.coding.code for bmi entries\", function () {","    const bmiEntries = response.entry.filter(entry => {","        return entry.resource.category && entry.resource.category.some(category => ","            category.coding && category.coding.some(coding => coding.code === \"bmi\")","        );","    });","    bmiEntries.forEach(function (entry) {","        const valueQuantity = entry.resource.valueQuantity;","        const code = entry.resource.code.coding[0].code;","        pm.expect(code).to.equal(\"39156-5\");  // Expect code to be 39156-5 for bmi","        pm.expect(valueQuantity.value).to.be.a('number');  // Ensure value is a number","        pm.expect(valueQuantity.unit).to.be.a('string');  // Ensure unit is a string","    });","});","","// Test 9: Assert actual valueQuantity and code.coding.code for \"head_circumference\" entries","pm.test(\"Assert valueQuantity and code.coding.code for head_circumference entries\", function () {","    const headCircumferenceEntries = response.entry.filter(entry => {","        return entry.resource.category && entry.resource.category.some(category => ","            category.coding && category.coding.some(coding => coding.code === \"head_circumference\")","        );","    });","    headCircumferenceEntries.forEach(function (entry) {","        const valueQuantity = entry.resource.valueQuantity;","        const code = entry.resource.code.coding[0].code;","        pm.expect(code).to.equal(\"8287-5\");  // Expect code to be 8287-5 for head circumference","        pm.expect(valueQuantity.value).to.be.a('number');  // Ensure value is a number","        pm.expect(valueQuantity.unit).to.be.a('string');  // Ensure unit is a string","    });","});","","",""],"type":"text/javascript","packages":{},"requests":{},"id":"a917338b-f087-48d1-9eb7-50979a6e120e"}}],"id":"cddc9358-befa-47c4-9781-33916647d5bc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"_type\": \"COMPOSITION\",\n  \"name\": {\n    \"_type\": \"DV_TEXT\",\n    \"value\": \"Growth chart\"\n  },\n  \"archetype_details\": {\n    \"archetype_id\": {\n      \"value\": \"openEHR-EHR-COMPOSITION.growth_chart.v0\"\n    },\n    \"template_id\": {\n      \"value\": \"Growth chart\"\n    },\n    \"rm_version\": \"1.0.4\"\n  },\n  \"language\": {\n    \"_type\": \"CODE_PHRASE\",\n    \"terminology_id\": {\n      \"_type\": \"TERMINOLOGY_ID\",\n      \"value\": \"ISO_639-1\"\n    },\n    \"code_string\": \"en\"\n  },\n  \"territory\": {\n    \"_type\": \"CODE_PHRASE\",\n    \"terminology_id\": {\n      \"_type\": \"TERMINOLOGY_ID\",\n      \"value\": \"ISO_3166-1\"\n    },\n    \"code_string\": \"DE\"\n  },\n  \"category\": {\n    \"_type\": \"DV_CODED_TEXT\",\n    \"value\": \"event\",\n    \"defining_code\": {\n      \"_type\": \"CODE_PHRASE\",\n      \"terminology_id\": {\n        \"_type\": \"TERMINOLOGY_ID\",\n        \"value\": \"openehr\"\n      },\n      \"code_string\": \"433\"\n    }\n  },\n  \"composer\": {\n    \"_type\": \"PARTY_IDENTIFIED\",\n    \"name\": \"Max Mustermann\"\n  },\n  \"context\": {\n    \"_type\": \"EVENT_CONTEXT\",\n    \"start_time\": {\n      \"_type\": \"DV_DATE_TIME\",\n      \"value\": \"2022-02-03T04:05:06\"\n    },\n    \"end_time\": {\n      \"_type\": \"DV_DATE_TIME\",\n      \"value\": \"2022-02-03T04:05:06\"\n    },\n    \"setting\": {\n      \"_type\": \"DV_CODED_TEXT\",\n      \"value\": \"home\",\n      \"defining_code\": {\n        \"_type\": \"CODE_PHRASE\",\n        \"terminology_id\": {\n          \"_type\": \"TERMINOLOGY_ID\",\n          \"value\": \"openehr\"\n        },\n        \"code_string\": \"225\"\n      }\n    },\n    \"health_care_facility\": {\n      \"_type\": \"PARTY_IDENTIFIED\",\n      \"name\": \"DOE, John\"\n    }\n  },\n  \"content\": [\n    {\n      \"_type\": \"OBSERVATION\",\n      \"name\": {\n        \"_type\": \"DV_TEXT\",\n        \"value\": \"Body weight\"\n      },\n      \"archetype_details\": {\n        \"archetype_id\": {\n          \"value\": \"openEHR-EHR-OBSERVATION.body_weight.v2\"\n        },\n        \"rm_version\": \"1.0.4\"\n      },\n      \"language\": {\n        \"_type\": \"CODE_PHRASE\",\n        \"terminology_id\": {\n          \"_type\": \"TERMINOLOGY_ID\",\n          \"value\": \"ISO_639-1\"\n        },\n        \"code_string\": \"en\"\n      },\n      \"encoding\": {\n        \"_type\": \"CODE_PHRASE\",\n        \"terminology_id\": {\n          \"_type\": \"TERMINOLOGY_ID\",\n          \"value\": \"IANA_character-sets\"\n        },\n        \"code_string\": \"ISO-10646-UTF-1\"\n      },\n      \"workflow_id\": {\n        \"_type\": \"OBJECT_REF\",\n        \"namespace\": \"unknown\",\n        \"type\": \"ANY\",\n        \"id\": {\n          \"_type\": \"GENERIC_ID\",\n          \"value\": \"121d020d-0639-3fc3-a3ed-21f2d72eee1f\",\n          \"scheme\": \"scheme\"\n        }\n      },\n      \"subject\": {\n        \"_type\": \"PARTY_SELF\"\n      },\n      \"provider\": {\n        \"_type\": \"PARTY_SELF\"\n      },\n      \"guideline_id\": {\n        \"_type\": \"OBJECT_REF\",\n        \"namespace\": \"unknown\",\n        \"type\": \"ANY\",\n        \"id\": {\n          \"_type\": \"GENERIC_ID\",\n          \"value\": \"97063a6d-140c-3bbf-a25b-35ee3c0adeda\",\n          \"scheme\": \"scheme\"\n        }\n      },\n      \"data\": {\n        \"name\": {\n          \"_type\": \"DV_TEXT\",\n          \"value\": \"history\"\n        },\n        \"origin\": {\n          \"_type\": \"DV_DATE_TIME\",\n          \"value\": \"2022-02-03T04:05:06\"\n        },\n        \"period\": {\n          \"_type\": \"DV_DURATION\",\n          \"value\": \"PT0S\"\n        },\n        \"duration\": {\n          \"_type\": \"DV_DURATION\",\n          \"value\": \"PT0S\"\n        },\n        \"events\": [\n          {\n            \"_type\": \"POINT_EVENT\",\n            \"name\": {\n              \"_type\": \"DV_TEXT\",\n              \"value\": \"Birth\"\n            },\n            \"time\": {\n              \"_type\": \"DV_DATE_TIME\",\n              \"value\": \"2022-02-03T04:05:06\"\n            },\n            \"state\": {\n              \"_type\": \"ITEM_TREE\",\n              \"name\": {\n                \"_type\": \"DV_TEXT\",\n                \"value\": \"state structure\"\n              },\n              \"items\": [\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"State of dress\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_CODED_TEXT\",\n                    \"value\": \"Naked\",\n                    \"defining_code\": {\n                      \"_type\": \"CODE_PHRASE\",\n                      \"terminology_id\": {\n                        \"_type\": \"TERMINOLOGY_ID\",\n                        \"value\": \"local\"\n                      },\n                      \"code_string\": \"at0013\"\n                    }\n                  },\n                  \"archetype_node_id\": \"at0009\"\n                },\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Confounding factors\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Lorem ipsum\"\n                  },\n                  \"archetype_node_id\": \"at0025\"\n                }\n              ],\n              \"archetype_node_id\": \"at0008\"\n            },\n            \"data\": {\n              \"_type\": \"ITEM_TREE\",\n              \"name\": {\n                \"_type\": \"DV_TEXT\",\n                \"value\": \"Simple\"\n              },\n              \"items\": [\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Weight\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_QUANTITY\",\n                    \"units\": \"kg\",\n                    \"magnitude\": 501.0\n                  },\n                  \"archetype_node_id\": \"at0004\"\n                },\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Comment\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Lorem ipsum\"\n                  },\n                  \"archetype_node_id\": \"at0024\"\n                }\n              ],\n              \"archetype_node_id\": \"at0001\"\n            },\n            \"archetype_node_id\": \"at0026\"\n          },\n          {\n            \"_type\": \"INTERVAL_EVENT\",\n            \"name\": {\n              \"_type\": \"DV_TEXT\",\n              \"value\": \"Any event\"\n            },\n            \"time\": {\n              \"_type\": \"DV_DATE_TIME\",\n              \"value\": \"2022-02-03T04:05:06\"\n            },\n            \"state\": {\n              \"_type\": \"ITEM_TREE\",\n              \"name\": {\n                \"_type\": \"DV_TEXT\",\n                \"value\": \"state structure\"\n              },\n              \"items\": [\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"State of dress\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_CODED_TEXT\",\n                    \"value\": \"Naked\",\n                    \"defining_code\": {\n                      \"_type\": \"CODE_PHRASE\",\n                      \"terminology_id\": {\n                        \"_type\": \"TERMINOLOGY_ID\",\n                        \"value\": \"local\"\n                      },\n                      \"code_string\": \"at0013\"\n                    }\n                  },\n                  \"archetype_node_id\": \"at0009\"\n                },\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Confounding factors\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Lorem ipsum\"\n                  },\n                  \"archetype_node_id\": \"at0025\"\n                }\n              ],\n              \"archetype_node_id\": \"at0008\"\n            },\n            \"data\": {\n              \"_type\": \"ITEM_TREE\",\n              \"name\": {\n                \"_type\": \"DV_TEXT\",\n                \"value\": \"Simple\"\n              },\n              \"items\": [\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Weight\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_QUANTITY\",\n                    \"units\": \"kg\",\n                    \"magnitude\": 502.0\n                  },\n                  \"archetype_node_id\": \"at0004\"\n                },\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Comment\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Lorem ipsum\"\n                  },\n                  \"archetype_node_id\": \"at0024\"\n                }\n              ],\n              \"archetype_node_id\": \"at0001\"\n            },\n            \"width\": {\n              \"_type\": \"DV_DURATION\",\n              \"value\": \"PT42H\"\n            },\n            \"math_function\": {\n              \"_type\": \"DV_CODED_TEXT\",\n              \"value\": \"minimum\",\n              \"defining_code\": {\n                \"_type\": \"CODE_PHRASE\",\n                \"terminology_id\": {\n                  \"_type\": \"TERMINOLOGY_ID\",\n                  \"value\": \"openehr\"\n                },\n                \"code_string\": \"145\"\n              }\n            },\n            \"archetype_node_id\": \"at0003\"\n          },\n          {\n            \"_type\": \"POINT_EVENT\",\n            \"name\": {\n              \"_type\": \"DV_TEXT\",\n              \"value\": \"Any event\"\n            },\n            \"time\": {\n              \"_type\": \"DV_DATE_TIME\",\n              \"value\": \"2022-02-03T04:05:06\"\n            },\n            \"state\": {\n              \"_type\": \"ITEM_TREE\",\n              \"name\": {\n                \"_type\": \"DV_TEXT\",\n                \"value\": \"state structure\"\n              },\n              \"items\": [\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"State of dress\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_CODED_TEXT\",\n                    \"value\": \"Naked\",\n                    \"defining_code\": {\n                      \"_type\": \"CODE_PHRASE\",\n                      \"terminology_id\": {\n                        \"_type\": \"TERMINOLOGY_ID\",\n                        \"value\": \"local\"\n                      },\n                      \"code_string\": \"at0013\"\n                    }\n                  },\n                  \"archetype_node_id\": \"at0009\"\n                },\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Confounding factors\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Lorem ipsum\"\n                  },\n                  \"archetype_node_id\": \"at0025\"\n                }\n              ],\n              \"archetype_node_id\": \"at0008\"\n            },\n            \"data\": {\n              \"_type\": \"ITEM_TREE\",\n              \"name\": {\n                \"_type\": \"DV_TEXT\",\n                \"value\": \"Simple\"\n              },\n              \"items\": [\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Weight\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_QUANTITY\",\n                    \"units\": \"kg\",\n                    \"magnitude\": 503.0\n                  },\n                  \"archetype_node_id\": \"at0004\"\n                },\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Comment\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Lorem ipsum\"\n                  },\n                  \"archetype_node_id\": \"at0024\"\n                }\n              ],\n              \"archetype_node_id\": \"at0001\"\n            },\n            \"archetype_node_id\": \"at0003\"\n          },\n          {\n            \"_type\": \"INTERVAL_EVENT\",\n            \"name\": {\n              \"_type\": \"DV_TEXT\",\n              \"value\": \"Any event\"\n            },\n            \"time\": {\n              \"_type\": \"DV_DATE_TIME\",\n              \"value\": \"2022-02-03T04:05:06\"\n            },\n            \"state\": {\n              \"_type\": \"ITEM_TREE\",\n              \"name\": {\n                \"_type\": \"DV_TEXT\",\n                \"value\": \"state structure\"\n              },\n              \"items\": [\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"State of dress\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_CODED_TEXT\",\n                    \"value\": \"Naked\",\n                    \"defining_code\": {\n                      \"_type\": \"CODE_PHRASE\",\n                      \"terminology_id\": {\n                        \"_type\": \"TERMINOLOGY_ID\",\n                        \"value\": \"local\"\n                      },\n                      \"code_string\": \"at0013\"\n                    }\n                  },\n                  \"archetype_node_id\": \"at0009\"\n                },\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Confounding factors\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Lorem ipsum\"\n                  },\n                  \"archetype_node_id\": \"at0025\"\n                }\n              ],\n              \"archetype_node_id\": \"at0008\"\n            },\n            \"data\": {\n              \"_type\": \"ITEM_TREE\",\n              \"name\": {\n                \"_type\": \"DV_TEXT\",\n                \"value\": \"Simple\"\n              },\n              \"items\": [\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Weight\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_QUANTITY\",\n                    \"units\": \"kg\",\n                    \"magnitude\": 500.0\n                  },\n                  \"archetype_node_id\": \"at0004\"\n                },\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Comment\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Lorem ipsum\"\n                  },\n                  \"archetype_node_id\": \"at0024\"\n                }\n              ],\n              \"archetype_node_id\": \"at0001\"\n            },\n            \"width\": {\n              \"_type\": \"DV_DURATION\",\n              \"value\": \"PT42H\"\n            },\n            \"math_function\": {\n              \"_type\": \"DV_CODED_TEXT\",\n              \"value\": \"minimum\",\n              \"defining_code\": {\n                \"_type\": \"CODE_PHRASE\",\n                \"terminology_id\": {\n                  \"_type\": \"TERMINOLOGY_ID\",\n                  \"value\": \"openehr\"\n                },\n                \"code_string\": \"145\"\n              }\n            },\n            \"archetype_node_id\": \"at0003\"\n          }\n        ],\n        \"archetype_node_id\": \"at0002\"\n      },\n      \"archetype_node_id\": \"openEHR-EHR-OBSERVATION.body_weight.v2\"\n    },\n    {\n      \"_type\": \"OBSERVATION\",\n      \"name\": {\n        \"_type\": \"DV_TEXT\",\n        \"value\": \"Height/Length\"\n      },\n      \"archetype_details\": {\n        \"archetype_id\": {\n          \"value\": \"openEHR-EHR-OBSERVATION.height.v2\"\n        },\n        \"rm_version\": \"1.0.4\"\n      },\n      \"language\": {\n        \"_type\": \"CODE_PHRASE\",\n        \"terminology_id\": {\n          \"_type\": \"TERMINOLOGY_ID\",\n          \"value\": \"ISO_639-1\"\n        },\n        \"code_string\": \"en\"\n      },\n      \"encoding\": {\n        \"_type\": \"CODE_PHRASE\",\n        \"terminology_id\": {\n          \"_type\": \"TERMINOLOGY_ID\",\n          \"value\": \"IANA_character-sets\"\n        },\n        \"code_string\": \"ISO-10646-UTF-1\"\n      },\n      \"workflow_id\": {\n        \"_type\": \"OBJECT_REF\",\n        \"namespace\": \"unknown\",\n        \"type\": \"ANY\",\n        \"id\": {\n          \"_type\": \"GENERIC_ID\",\n          \"value\": \"36c6d06e-cc47-306c-a5c4-66833ced9c2e\",\n          \"scheme\": \"scheme\"\n        }\n      },\n      \"subject\": {\n        \"_type\": \"PARTY_SELF\"\n      },\n      \"provider\": {\n        \"_type\": \"PARTY_SELF\"\n      },\n      \"guideline_id\": {\n        \"_type\": \"OBJECT_REF\",\n        \"namespace\": \"unknown\",\n        \"type\": \"ANY\",\n        \"id\": {\n          \"_type\": \"GENERIC_ID\",\n          \"value\": \"48b61e73-9545-358b-b442-34db4c2ed3b9\",\n          \"scheme\": \"scheme\"\n        }\n      },\n      \"data\": {\n        \"name\": {\n          \"_type\": \"DV_TEXT\",\n          \"value\": \"history\"\n        },\n        \"origin\": {\n          \"_type\": \"DV_DATE_TIME\",\n          \"value\": \"2022-02-03T04:05:06\"\n        },\n        \"period\": {\n          \"_type\": \"DV_DURATION\",\n          \"value\": \"PT0S\"\n        },\n        \"duration\": {\n          \"_type\": \"DV_DURATION\",\n          \"value\": \"PT0S\"\n        },\n        \"events\": [\n          {\n            \"_type\": \"POINT_EVENT\",\n            \"name\": {\n              \"_type\": \"DV_TEXT\",\n              \"value\": \"Birth\"\n            },\n            \"time\": {\n              \"_type\": \"DV_DATE_TIME\",\n              \"value\": \"2022-02-03T04:05:06\"\n            },\n            \"state\": {\n              \"_type\": \"ITEM_TREE\",\n              \"name\": {\n                \"_type\": \"DV_TEXT\",\n                \"value\": \"Tree\"\n              },\n              \"items\": [\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Position\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_CODED_TEXT\",\n                    \"value\": \"Standing\",\n                    \"defining_code\": {\n                      \"_type\": \"CODE_PHRASE\",\n                      \"terminology_id\": {\n                        \"_type\": \"TERMINOLOGY_ID\",\n                        \"value\": \"local\"\n                      },\n                      \"code_string\": \"at0016\"\n                    }\n                  },\n                  \"archetype_node_id\": \"at0014\"\n                },\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Confounding factors\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Lorem ipsum\"\n                  },\n                  \"archetype_node_id\": \"at0019\"\n                }\n              ],\n              \"archetype_node_id\": \"at0013\"\n            },\n            \"data\": {\n              \"_type\": \"ITEM_TREE\",\n              \"name\": {\n                \"_type\": \"DV_TEXT\",\n                \"value\": \"Simple\"\n              },\n              \"items\": [\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Height/Length\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_QUANTITY\",\n                    \"units\": \"cm\",\n                    \"magnitude\": 500.0\n                  },\n                  \"archetype_node_id\": \"at0004\"\n                },\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Comment\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Lorem ipsum\"\n                  },\n                  \"archetype_node_id\": \"at0018\"\n                }\n              ],\n              \"archetype_node_id\": \"at0003\"\n            },\n            \"archetype_node_id\": \"at0021\"\n          },\n          {\n            \"_type\": \"INTERVAL_EVENT\",\n            \"name\": {\n              \"_type\": \"DV_TEXT\",\n              \"value\": \"Any event\"\n            },\n            \"time\": {\n              \"_type\": \"DV_DATE_TIME\",\n              \"value\": \"2022-02-03T04:05:06\"\n            },\n            \"state\": {\n              \"_type\": \"ITEM_TREE\",\n              \"name\": {\n                \"_type\": \"DV_TEXT\",\n                \"value\": \"Tree\"\n              },\n              \"items\": [\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Position\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_CODED_TEXT\",\n                    \"value\": \"Standing\",\n                    \"defining_code\": {\n                      \"_type\": \"CODE_PHRASE\",\n                      \"terminology_id\": {\n                        \"_type\": \"TERMINOLOGY_ID\",\n                        \"value\": \"local\"\n                      },\n                      \"code_string\": \"at0016\"\n                    }\n                  },\n                  \"archetype_node_id\": \"at0014\"\n                },\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Confounding factors\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Lorem ipsum\"\n                  },\n                  \"archetype_node_id\": \"at0019\"\n                }\n              ],\n              \"archetype_node_id\": \"at0013\"\n            },\n            \"data\": {\n              \"_type\": \"ITEM_TREE\",\n              \"name\": {\n                \"_type\": \"DV_TEXT\",\n                \"value\": \"Simple\"\n              },\n              \"items\": [\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Height/Length\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_QUANTITY\",\n                    \"units\": \"cm\",\n                    \"magnitude\": 500.0\n                  },\n                  \"archetype_node_id\": \"at0004\"\n                },\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Comment\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Lorem ipsum\"\n                  },\n                  \"archetype_node_id\": \"at0018\"\n                }\n              ],\n              \"archetype_node_id\": \"at0003\"\n            },\n            \"width\": {\n              \"_type\": \"DV_DURATION\",\n              \"value\": \"PT42H\"\n            },\n            \"math_function\": {\n              \"_type\": \"DV_CODED_TEXT\",\n              \"value\": \"minimum\",\n              \"defining_code\": {\n                \"_type\": \"CODE_PHRASE\",\n                \"terminology_id\": {\n                  \"_type\": \"TERMINOLOGY_ID\",\n                  \"value\": \"openehr\"\n                },\n                \"code_string\": \"145\"\n              }\n            },\n            \"archetype_node_id\": \"at0002\"\n          },\n          {\n            \"_type\": \"POINT_EVENT\",\n            \"name\": {\n              \"_type\": \"DV_TEXT\",\n              \"value\": \"Any event\"\n            },\n            \"time\": {\n              \"_type\": \"DV_DATE_TIME\",\n              \"value\": \"2022-02-03T04:05:06\"\n            },\n            \"state\": {\n              \"_type\": \"ITEM_TREE\",\n              \"name\": {\n                \"_type\": \"DV_TEXT\",\n                \"value\": \"Tree\"\n              },\n              \"items\": [\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Position\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_CODED_TEXT\",\n                    \"value\": \"Standing\",\n                    \"defining_code\": {\n                      \"_type\": \"CODE_PHRASE\",\n                      \"terminology_id\": {\n                        \"_type\": \"TERMINOLOGY_ID\",\n                        \"value\": \"local\"\n                      },\n                      \"code_string\": \"at0016\"\n                    }\n                  },\n                  \"archetype_node_id\": \"at0014\"\n                },\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Confounding factors\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Lorem ipsum\"\n                  },\n                  \"archetype_node_id\": \"at0019\"\n                }\n              ],\n              \"archetype_node_id\": \"at0013\"\n            },\n            \"data\": {\n              \"_type\": \"ITEM_TREE\",\n              \"name\": {\n                \"_type\": \"DV_TEXT\",\n                \"value\": \"Simple\"\n              },\n              \"items\": [\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Height/Length\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_QUANTITY\",\n                    \"units\": \"cm\",\n                    \"magnitude\": 500.0\n                  },\n                  \"archetype_node_id\": \"at0004\"\n                },\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Comment\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Lorem ipsum\"\n                  },\n                  \"archetype_node_id\": \"at0018\"\n                }\n              ],\n              \"archetype_node_id\": \"at0003\"\n            },\n            \"archetype_node_id\": \"at0002\"\n          },\n          {\n            \"_type\": \"INTERVAL_EVENT\",\n            \"name\": {\n              \"_type\": \"DV_TEXT\",\n              \"value\": \"Any event\"\n            },\n            \"time\": {\n              \"_type\": \"DV_DATE_TIME\",\n              \"value\": \"2022-02-03T04:05:06\"\n            },\n            \"state\": {\n              \"_type\": \"ITEM_TREE\",\n              \"name\": {\n                \"_type\": \"DV_TEXT\",\n                \"value\": \"Tree\"\n              },\n              \"items\": [\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Position\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_CODED_TEXT\",\n                    \"value\": \"Standing\",\n                    \"defining_code\": {\n                      \"_type\": \"CODE_PHRASE\",\n                      \"terminology_id\": {\n                        \"_type\": \"TERMINOLOGY_ID\",\n                        \"value\": \"local\"\n                      },\n                      \"code_string\": \"at0016\"\n                    }\n                  },\n                  \"archetype_node_id\": \"at0014\"\n                },\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Confounding factors\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Lorem ipsum\"\n                  },\n                  \"archetype_node_id\": \"at0019\"\n                }\n              ],\n              \"archetype_node_id\": \"at0013\"\n            },\n            \"data\": {\n              \"_type\": \"ITEM_TREE\",\n              \"name\": {\n                \"_type\": \"DV_TEXT\",\n                \"value\": \"Simple\"\n              },\n              \"items\": [\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Height/Length\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_QUANTITY\",\n                    \"units\": \"cm\",\n                    \"magnitude\": 500.0\n                  },\n                  \"archetype_node_id\": \"at0004\"\n                },\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Comment\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Lorem ipsum\"\n                  },\n                  \"archetype_node_id\": \"at0018\"\n                }\n              ],\n              \"archetype_node_id\": \"at0003\"\n            },\n            \"width\": {\n              \"_type\": \"DV_DURATION\",\n              \"value\": \"PT42H\"\n            },\n            \"math_function\": {\n              \"_type\": \"DV_CODED_TEXT\",\n              \"value\": \"minimum\",\n              \"defining_code\": {\n                \"_type\": \"CODE_PHRASE\",\n                \"terminology_id\": {\n                  \"_type\": \"TERMINOLOGY_ID\",\n                  \"value\": \"openehr\"\n                },\n                \"code_string\": \"145\"\n              }\n            },\n            \"archetype_node_id\": \"at0002\"\n          }\n        ],\n        \"archetype_node_id\": \"at0001\"\n      },\n      \"archetype_node_id\": \"openEHR-EHR-OBSERVATION.height.v2\"\n    },\n    {\n      \"_type\": \"OBSERVATION\",\n      \"name\": {\n        \"_type\": \"DV_TEXT\",\n        \"value\": \"Body mass index\"\n      },\n      \"archetype_details\": {\n        \"archetype_id\": {\n          \"value\": \"openEHR-EHR-OBSERVATION.body_mass_index.v2\"\n        },\n        \"rm_version\": \"1.0.4\"\n      },\n      \"language\": {\n        \"_type\": \"CODE_PHRASE\",\n        \"terminology_id\": {\n          \"_type\": \"TERMINOLOGY_ID\",\n          \"value\": \"ISO_639-1\"\n        },\n        \"code_string\": \"en\"\n      },\n      \"encoding\": {\n        \"_type\": \"CODE_PHRASE\",\n        \"terminology_id\": {\n          \"_type\": \"TERMINOLOGY_ID\",\n          \"value\": \"IANA_character-sets\"\n        },\n        \"code_string\": \"ISO-10646-UTF-1\"\n      },\n      \"workflow_id\": {\n        \"_type\": \"OBJECT_REF\",\n        \"namespace\": \"unknown\",\n        \"type\": \"ANY\",\n        \"id\": {\n          \"_type\": \"GENERIC_ID\",\n          \"value\": \"ebd4c5ab-9ecb-3497-9452-7a30c56c1b81\",\n          \"scheme\": \"scheme\"\n        }\n      },\n      \"subject\": {\n        \"_type\": \"PARTY_SELF\"\n      },\n      \"provider\": {\n        \"_type\": \"PARTY_SELF\"\n      },\n      \"protocol\": {\n        \"_type\": \"ITEM_TREE\",\n        \"name\": {\n          \"_type\": \"DV_TEXT\",\n          \"value\": \"Tree\"\n        },\n        \"items\": [\n          {\n            \"_type\": \"ELEMENT\",\n            \"name\": {\n              \"_type\": \"DV_TEXT\",\n              \"value\": \"Method\"\n            },\n            \"value\": {\n              \"_type\": \"DV_CODED_TEXT\",\n              \"value\": \"Automatic entry\",\n              \"defining_code\": {\n                \"_type\": \"CODE_PHRASE\",\n                \"terminology_id\": {\n                  \"_type\": \"TERMINOLOGY_ID\",\n                  \"value\": \"local\"\n                },\n                \"code_string\": \"at0007\"\n              }\n            },\n            \"archetype_node_id\": \"at0006\"\n          },\n          {\n            \"_type\": \"ELEMENT\",\n            \"name\": {\n              \"_type\": \"DV_TEXT\",\n              \"value\": \"Formula\"\n            },\n            \"value\": {\n              \"_type\": \"DV_TEXT\",\n              \"value\": \"Lorem ipsum\"\n            },\n            \"archetype_node_id\": \"at0010\"\n          }\n        ],\n        \"archetype_node_id\": \"at0005\"\n      },\n      \"guideline_id\": {\n        \"_type\": \"OBJECT_REF\",\n        \"namespace\": \"unknown\",\n        \"type\": \"ANY\",\n        \"id\": {\n          \"_type\": \"GENERIC_ID\",\n          \"value\": \"e007b8d5-6023-3236-a261-2d2aa42d6848\",\n          \"scheme\": \"scheme\"\n        }\n      },\n      \"data\": {\n        \"name\": {\n          \"_type\": \"DV_TEXT\",\n          \"value\": \"history\"\n        },\n        \"origin\": {\n          \"_type\": \"DV_DATE_TIME\",\n          \"value\": \"2022-02-03T04:05:06\"\n        },\n        \"period\": {\n          \"_type\": \"DV_DURATION\",\n          \"value\": \"PT0S\"\n        },\n        \"duration\": {\n          \"_type\": \"DV_DURATION\",\n          \"value\": \"PT0S\"\n        },\n        \"events\": [\n          {\n            \"_type\": \"INTERVAL_EVENT\",\n            \"name\": {\n              \"_type\": \"DV_TEXT\",\n              \"value\": \"Any event\"\n            },\n            \"time\": {\n              \"_type\": \"DV_DATE_TIME\",\n              \"value\": \"2022-02-03T04:05:06\"\n            },\n            \"state\": {\n              \"_type\": \"ITEM_TREE\",\n              \"name\": {\n                \"_type\": \"DV_TEXT\",\n                \"value\": \"Tree\"\n              },\n              \"items\": [\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Confounding factors\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Lorem ipsum\"\n                  },\n                  \"archetype_node_id\": \"at0011\"\n                }\n              ],\n              \"archetype_node_id\": \"at0014\"\n            },\n            \"data\": {\n              \"_type\": \"ITEM_TREE\",\n              \"name\": {\n                \"_type\": \"DV_TEXT\",\n                \"value\": \"Single\"\n              },\n              \"items\": [\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Body mass index\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_QUANTITY\",\n                    \"units\": \"kg/m2\",\n                    \"magnitude\": 500.0\n                  },\n                  \"archetype_node_id\": \"at0004\"\n                },\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Clinical interpretation\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Lorem ipsum\"\n                  },\n                  \"archetype_node_id\": \"at0013\"\n                },\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Comment\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Lorem ipsum\"\n                  },\n                  \"archetype_node_id\": \"at0012\"\n                }\n              ],\n              \"archetype_node_id\": \"at0003\"\n            },\n            \"width\": {\n              \"_type\": \"DV_DURATION\",\n              \"value\": \"PT42H\"\n            },\n            \"math_function\": {\n              \"_type\": \"DV_CODED_TEXT\",\n              \"value\": \"minimum\",\n              \"defining_code\": {\n                \"_type\": \"CODE_PHRASE\",\n                \"terminology_id\": {\n                  \"_type\": \"TERMINOLOGY_ID\",\n                  \"value\": \"openehr\"\n                },\n                \"code_string\": \"145\"\n              }\n            },\n            \"archetype_node_id\": \"at0002\"\n          },\n          {\n            \"_type\": \"POINT_EVENT\",\n            \"name\": {\n              \"_type\": \"DV_TEXT\",\n              \"value\": \"Any event\"\n            },\n            \"time\": {\n              \"_type\": \"DV_DATE_TIME\",\n              \"value\": \"2022-02-03T04:05:06\"\n            },\n            \"state\": {\n              \"_type\": \"ITEM_TREE\",\n              \"name\": {\n                \"_type\": \"DV_TEXT\",\n                \"value\": \"Tree\"\n              },\n              \"items\": [\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Confounding factors\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Lorem ipsum\"\n                  },\n                  \"archetype_node_id\": \"at0011\"\n                }\n              ],\n              \"archetype_node_id\": \"at0014\"\n            },\n            \"data\": {\n              \"_type\": \"ITEM_TREE\",\n              \"name\": {\n                \"_type\": \"DV_TEXT\",\n                \"value\": \"Single\"\n              },\n              \"items\": [\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Body mass index\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_QUANTITY\",\n                    \"units\": \"kg/m2\",\n                    \"magnitude\": 500.0\n                  },\n                  \"archetype_node_id\": \"at0004\"\n                },\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Clinical interpretation\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Lorem ipsum\"\n                  },\n                  \"archetype_node_id\": \"at0013\"\n                },\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Comment\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Lorem ipsum\"\n                  },\n                  \"archetype_node_id\": \"at0012\"\n                }\n              ],\n              \"archetype_node_id\": \"at0003\"\n            },\n            \"archetype_node_id\": \"at0002\"\n          },\n          {\n            \"_type\": \"INTERVAL_EVENT\",\n            \"name\": {\n              \"_type\": \"DV_TEXT\",\n              \"value\": \"Any event\"\n            },\n            \"time\": {\n              \"_type\": \"DV_DATE_TIME\",\n              \"value\": \"2022-02-03T04:05:06\"\n            },\n            \"state\": {\n              \"_type\": \"ITEM_TREE\",\n              \"name\": {\n                \"_type\": \"DV_TEXT\",\n                \"value\": \"Tree\"\n              },\n              \"items\": [\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Confounding factors\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Lorem ipsum\"\n                  },\n                  \"archetype_node_id\": \"at0011\"\n                }\n              ],\n              \"archetype_node_id\": \"at0014\"\n            },\n            \"data\": {\n              \"_type\": \"ITEM_TREE\",\n              \"name\": {\n                \"_type\": \"DV_TEXT\",\n                \"value\": \"Single\"\n              },\n              \"items\": [\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Body mass index\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_QUANTITY\",\n                    \"units\": \"kg/m2\",\n                    \"magnitude\": 500.0\n                  },\n                  \"archetype_node_id\": \"at0004\"\n                },\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Clinical interpretation\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Lorem ipsum\"\n                  },\n                  \"archetype_node_id\": \"at0013\"\n                },\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Comment\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Lorem ipsum\"\n                  },\n                  \"archetype_node_id\": \"at0012\"\n                }\n              ],\n              \"archetype_node_id\": \"at0003\"\n            },\n            \"width\": {\n              \"_type\": \"DV_DURATION\",\n              \"value\": \"PT42H\"\n            },\n            \"math_function\": {\n              \"_type\": \"DV_CODED_TEXT\",\n              \"value\": \"minimum\",\n              \"defining_code\": {\n                \"_type\": \"CODE_PHRASE\",\n                \"terminology_id\": {\n                  \"_type\": \"TERMINOLOGY_ID\",\n                  \"value\": \"openehr\"\n                },\n                \"code_string\": \"145\"\n              }\n            },\n            \"archetype_node_id\": \"at0002\"\n          }\n        ],\n        \"archetype_node_id\": \"at0001\"\n      },\n      \"archetype_node_id\": \"openEHR-EHR-OBSERVATION.body_mass_index.v2\"\n    },\n    {\n      \"_type\": \"OBSERVATION\",\n      \"name\": {\n        \"_type\": \"DV_TEXT\",\n        \"value\": \"Head circumference\"\n      },\n      \"archetype_details\": {\n        \"archetype_id\": {\n          \"value\": \"openEHR-EHR-OBSERVATION.head_circumference.v1\"\n        },\n        \"rm_version\": \"1.0.4\"\n      },\n      \"language\": {\n        \"_type\": \"CODE_PHRASE\",\n        \"terminology_id\": {\n          \"_type\": \"TERMINOLOGY_ID\",\n          \"value\": \"ISO_639-1\"\n        },\n        \"code_string\": \"en\"\n      },\n      \"encoding\": {\n        \"_type\": \"CODE_PHRASE\",\n        \"terminology_id\": {\n          \"_type\": \"TERMINOLOGY_ID\",\n          \"value\": \"IANA_character-sets\"\n        },\n        \"code_string\": \"ISO-10646-UTF-1\"\n      },\n      \"workflow_id\": {\n        \"_type\": \"OBJECT_REF\",\n        \"namespace\": \"unknown\",\n        \"type\": \"ANY\",\n        \"id\": {\n          \"_type\": \"GENERIC_ID\",\n          \"value\": \"98dbdd7c-4454-3f75-b32a-7a6620c3de03\",\n          \"scheme\": \"scheme\"\n        }\n      },\n      \"subject\": {\n        \"_type\": \"PARTY_SELF\"\n      },\n      \"provider\": {\n        \"_type\": \"PARTY_SELF\"\n      },\n      \"guideline_id\": {\n        \"_type\": \"OBJECT_REF\",\n        \"namespace\": \"unknown\",\n        \"type\": \"ANY\",\n        \"id\": {\n          \"_type\": \"GENERIC_ID\",\n          \"value\": \"d5ba712f-8f05-334e-a8cb-05f8f5807bf7\",\n          \"scheme\": \"scheme\"\n        }\n      },\n      \"data\": {\n        \"name\": {\n          \"_type\": \"DV_TEXT\",\n          \"value\": \"Event Series\"\n        },\n        \"origin\": {\n          \"_type\": \"DV_DATE_TIME\",\n          \"value\": \"2022-02-03T04:05:06\"\n        },\n        \"period\": {\n          \"_type\": \"DV_DURATION\",\n          \"value\": \"PT0S\"\n        },\n        \"duration\": {\n          \"_type\": \"DV_DURATION\",\n          \"value\": \"PT0S\"\n        },\n        \"events\": [\n          {\n            \"_type\": \"POINT_EVENT\",\n            \"name\": {\n              \"_type\": \"DV_TEXT\",\n              \"value\": \"Birth\"\n            },\n            \"time\": {\n              \"_type\": \"DV_DATE_TIME\",\n              \"value\": \"2022-02-03T04:05:06\"\n            },\n            \"state\": {\n              \"_type\": \"ITEM_TREE\",\n              \"name\": {\n                \"_type\": \"DV_TEXT\",\n                \"value\": \"Tree\"\n              },\n              \"items\": [\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Confounding factors\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Lorem ipsum\"\n                  },\n                  \"archetype_node_id\": \"at0009\"\n                }\n              ],\n              \"archetype_node_id\": \"at0008\"\n            },\n            \"data\": {\n              \"_type\": \"ITEM_TREE\",\n              \"name\": {\n                \"_type\": \"DV_TEXT\",\n                \"value\": \"Tree\"\n              },\n              \"items\": [\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Head circumference\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_QUANTITY\",\n                    \"units\": \"cm\",\n                    \"magnitude\": 50.0\n                  },\n                  \"archetype_node_id\": \"at0004\"\n                },\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Comment\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Lorem ipsum\"\n                  },\n                  \"archetype_node_id\": \"at0007\"\n                }\n              ],\n              \"archetype_node_id\": \"at0003\"\n            },\n            \"archetype_node_id\": \"at0011\"\n          },\n          {\n            \"_type\": \"INTERVAL_EVENT\",\n            \"name\": {\n              \"_type\": \"DV_TEXT\",\n              \"value\": \"Any event\"\n            },\n            \"time\": {\n              \"_type\": \"DV_DATE_TIME\",\n              \"value\": \"2022-02-03T04:05:06\"\n            },\n            \"state\": {\n              \"_type\": \"ITEM_TREE\",\n              \"name\": {\n                \"_type\": \"DV_TEXT\",\n                \"value\": \"Tree\"\n              },\n              \"items\": [\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Confounding factors\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Lorem ipsum\"\n                  },\n                  \"archetype_node_id\": \"at0009\"\n                }\n              ],\n              \"archetype_node_id\": \"at0008\"\n            },\n            \"data\": {\n              \"_type\": \"ITEM_TREE\",\n              \"name\": {\n                \"_type\": \"DV_TEXT\",\n                \"value\": \"Tree\"\n              },\n              \"items\": [\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Head circumference\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_QUANTITY\",\n                    \"units\": \"cm\",\n                    \"magnitude\": 50.0\n                  },\n                  \"archetype_node_id\": \"at0004\"\n                },\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Comment\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Lorem ipsum\"\n                  },\n                  \"archetype_node_id\": \"at0007\"\n                }\n              ],\n              \"archetype_node_id\": \"at0003\"\n            },\n            \"width\": {\n              \"_type\": \"DV_DURATION\",\n              \"value\": \"PT42H\"\n            },\n            \"math_function\": {\n              \"_type\": \"DV_CODED_TEXT\",\n              \"value\": \"minimum\",\n              \"defining_code\": {\n                \"_type\": \"CODE_PHRASE\",\n                \"terminology_id\": {\n                  \"_type\": \"TERMINOLOGY_ID\",\n                  \"value\": \"openehr\"\n                },\n                \"code_string\": \"145\"\n              }\n            },\n            \"archetype_node_id\": \"at0010\"\n          },\n          {\n            \"_type\": \"POINT_EVENT\",\n            \"name\": {\n              \"_type\": \"DV_TEXT\",\n              \"value\": \"Any event\"\n            },\n            \"time\": {\n              \"_type\": \"DV_DATE_TIME\",\n              \"value\": \"2022-02-03T04:05:06\"\n            },\n            \"state\": {\n              \"_type\": \"ITEM_TREE\",\n              \"name\": {\n                \"_type\": \"DV_TEXT\",\n                \"value\": \"Tree\"\n              },\n              \"items\": [\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Confounding factors\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Lorem ipsum\"\n                  },\n                  \"archetype_node_id\": \"at0009\"\n                }\n              ],\n              \"archetype_node_id\": \"at0008\"\n            },\n            \"data\": {\n              \"_type\": \"ITEM_TREE\",\n              \"name\": {\n                \"_type\": \"DV_TEXT\",\n                \"value\": \"Tree\"\n              },\n              \"items\": [\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Head circumference\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_QUANTITY\",\n                    \"units\": \"cm\",\n                    \"magnitude\": 50.0\n                  },\n                  \"archetype_node_id\": \"at0004\"\n                },\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Comment\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Lorem ipsum\"\n                  },\n                  \"archetype_node_id\": \"at0007\"\n                }\n              ],\n              \"archetype_node_id\": \"at0003\"\n            },\n            \"archetype_node_id\": \"at0010\"\n          },\n          {\n            \"_type\": \"INTERVAL_EVENT\",\n            \"name\": {\n              \"_type\": \"DV_TEXT\",\n              \"value\": \"Any event\"\n            },\n            \"time\": {\n              \"_type\": \"DV_DATE_TIME\",\n              \"value\": \"2022-02-03T04:05:06\"\n            },\n            \"state\": {\n              \"_type\": \"ITEM_TREE\",\n              \"name\": {\n                \"_type\": \"DV_TEXT\",\n                \"value\": \"Tree\"\n              },\n              \"items\": [\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Confounding factors\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Lorem ipsum\"\n                  },\n                  \"archetype_node_id\": \"at0009\"\n                }\n              ],\n              \"archetype_node_id\": \"at0008\"\n            },\n            \"data\": {\n              \"_type\": \"ITEM_TREE\",\n              \"name\": {\n                \"_type\": \"DV_TEXT\",\n                \"value\": \"Tree\"\n              },\n              \"items\": [\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Head circumference\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_QUANTITY\",\n                    \"units\": \"cm\",\n                    \"magnitude\": 50.0\n                  },\n                  \"archetype_node_id\": \"at0004\"\n                },\n                {\n                  \"_type\": \"ELEMENT\",\n                  \"name\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Comment\"\n                  },\n                  \"value\": {\n                    \"_type\": \"DV_TEXT\",\n                    \"value\": \"Lorem ipsum\"\n                  },\n                  \"archetype_node_id\": \"at0007\"\n                }\n              ],\n              \"archetype_node_id\": \"at0003\"\n            },\n            \"width\": {\n              \"_type\": \"DV_DURATION\",\n              \"value\": \"PT42H\"\n            },\n            \"math_function\": {\n              \"_type\": \"DV_CODED_TEXT\",\n              \"value\": \"minimum\",\n              \"defining_code\": {\n                \"_type\": \"CODE_PHRASE\",\n                \"terminology_id\": {\n                  \"_type\": \"TERMINOLOGY_ID\",\n                  \"value\": \"openehr\"\n                },\n                \"code_string\": \"145\"\n              }\n            },\n            \"archetype_node_id\": \"at0010\"\n          }\n        ],\n        \"archetype_node_id\": \"at0001\"\n      },\n      \"archetype_node_id\": \"openEHR-EHR-OBSERVATION.head_circumference.v1\"\n    }\n  ],\n  \"archetype_node_id\": \"openEHR-EHR-COMPOSITION.growth_chart.v0\"\n}","options":{"raw":{"language":"json"}}},"url":"https://sandbox.open-fhir.com/openfhir/tofhir","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{openfhir_user}}"},{"key":"password","value":"{{openfhir_user}}"}]},"isInherited":true,"source":{"_postman_id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","name":"openFHIR Tutorial","type":"collection"}},"urlObject":{"protocol":"https","path":["openfhir","tofhir"],"host":["sandbox","open-fhir","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"cddc9358-befa-47c4-9781-33916647d5bc"},{"name":"FHIR to openEHR","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","",""],"type":"text/javascript","packages":{},"requests":{},"id":"4d910142-ec1f-4bf2-8d35-7333a3688c95"}}],"id":"a1559148-27f8-4326-a986-c60de9183a3e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"resourceType\": \"Bundle\",\n    \"entry\": [\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"weight\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"29463-7\"\n                        }\n                    ]\n                },\n                \"effectiveDateTime\": \"2022-02-04T04:05:06+00:00\",\n                \"valueQuantity\": {\n                    \"value\": 502.0,\n                    \"unit\": \"t\"\n                },\n                \"note\": [\n                    {\n                        \"text\": \"body_weightLorem ipsum1\"\n                    }\n                ]\n            }\n        },\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"weight\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"29463-7\"\n                        }\n                    ]\n                },\n                \"effectiveDateTime\": \"2022-02-05T04:05:06+00:00\",\n                \"valueQuantity\": {\n                    \"value\": 503.0,\n                    \"unit\": \"mm\"\n                },\n                \"note\": [\n                    {\n                        \"text\": \"body_weightLorem ipsum2\"\n                    }\n                ]\n            }\n        },\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"weight\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"29463-7\"\n                        }\n                    ]\n                },\n                \"effectiveDateTime\": \"2022-02-03T04:05:06+00:00\",\n                \"valueQuantity\": {\n                    \"value\": 501.0,\n                    \"unit\": \"kg\"\n                },\n                \"note\": [\n                    {\n                        \"text\": \"body_weightLorem ipsum0\"\n                    }\n                ]\n            }\n        },\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"height\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"8302-2\"\n                        }\n                    ]\n                },\n                \"valueQuantity\": {\n                    \"value\": 500.0,\n                    \"unit\": \"cm\"\n                }\n            }\n        },\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"height\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"8302-2\"\n                        }\n                    ]\n                },\n                \"valueQuantity\": {\n                    \"value\": 500.0,\n                    \"unit\": \"cm\"\n                }\n            }\n        },\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"height\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"8302-2\"\n                        }\n                    ]\n                },\n                \"valueQuantity\": {\n                    \"value\": 500.0,\n                    \"unit\": \"cm\"\n                }\n            }\n        },\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"bmi\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"39156-5\"\n                        }\n                    ]\n                },\n                \"effectiveDateTime\": \"2022-02-03T04:05:06+00:00\",\n                \"valueQuantity\": {\n                    \"value\": 500.0,\n                    \"unit\": \"kg/m2\"\n                }\n            }\n        },\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"bmi\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"39156-5\"\n                        }\n                    ]\n                },\n                \"effectiveDateTime\": \"2022-02-03T04:05:06+00:00\",\n                \"valueQuantity\": {\n                    \"value\": 500.0,\n                    \"unit\": \"kg/m2\"\n                }\n            }\n        },\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"bmi\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"39156-5\"\n                        }\n                    ]\n                },\n                \"effectiveDateTime\": \"2022-02-03T04:05:06+00:00\",\n                \"valueQuantity\": {\n                    \"value\": 500.0,\n                    \"unit\": \"kg/m2\"\n                }\n            }\n        },\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"status\": \"final\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"head_circumference\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"8287-5\"\n                        }\n                    ]\n                },\n                \"effectiveDateTime\": \"2023-02-05T04:05:06+00:00\",\n                \"valueQuantity\": {\n                    \"value\": 52.0,\n                    \"unit\": \"m\"\n                }\n            }\n        },\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"status\": \"final\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"head_circumference\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"8287-5\"\n                        }\n                    ]\n                },\n                \"effectiveDateTime\": \"2023-02-04T04:05:06+00:00\",\n                \"valueQuantity\": {\n                    \"value\": 51.0,\n                    \"unit\": \"mm\"\n                }\n            }\n        },\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"status\": \"final\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"head_circumference\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"8287-5\"\n                        }\n                    ]\n                },\n                \"effectiveDateTime\": \"2023-02-03T04:05:06+00:00\",\n                \"valueQuantity\": {\n                    \"value\": 50.0,\n                    \"unit\": \"cm\"\n                }\n            }\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://sandbox.open-fhir.com/openfhir/toopenehr","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{openfhir_user}}"},{"key":"password","value":"{{openfhir_user}}"}]},"isInherited":true,"source":{"_postman_id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","name":"openFHIR Tutorial","type":"collection"}},"urlObject":{"protocol":"https","path":["openfhir","toopenehr"],"host":["sandbox","open-fhir","com"],"query":[{"disabled":true,"key":"flat","value":"true"}],"variable":[]}},"response":[],"_postman_id":"a1559148-27f8-4326-a986-c60de9183a3e"}],"id":"a0bff29a-9832-4d49-9b3d-4a5450bd1e72","description":"<p>Once a state has been prepared, you are able to run the bidirectional mappings.</p>\n","_postman_id":"a0bff29a-9832-4d49-9b3d-4a5450bd1e72","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{openfhir_user}}"},{"key":"password","value":"{{openfhir_user}}"}]},"isInherited":true,"source":{"_postman_id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","name":"openFHIR Tutorial","type":"collection"}}},{"name":"(3) Edit A Mapping","item":[{"name":"List all mappings (no action required)","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","const response = pm.response.json();","","// Test 1: Assert the number of entries in the array","pm.test(\"Number of entries in the array\", function () {","    pm.expect(response).to.have.lengthOf(5);  // Adjust this number if the number of entries changes","});","","// Test 2: Assert the correct fhirConnectModel.metadata.name for each entry","pm.test(\"Assert fhirConnectModel.metadata.name for each entry\", function () {","    const expectedNames = [","        \"OBSERVATION.body_weight.v2\",","        \"OBSERVATION.height.v2\",","        \"OBSERVATION.body_mass_index.v2\",","        \"OBSERVATION.head_circumference.v1\",","        \"openEHR-EHR-COMPOSITION.growth_chart.v0\"","    ];","","    response.forEach(function (entry) {","        const metadataName = entry.metadata.name;","        pm.expect(expectedNames).to.include(metadataName, `Expected name to be one of ${expectedNames.join(', ')}, but got ${metadataName}`);","    });","});",""],"type":"text/javascript","packages":{},"requests":{},"id":"76028770-8618-4222-88ef-ce5cb7647458"}}],"id":"07d202f9-0e3c-46e6-8981-c69a94f63d14","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://sandbox.open-fhir.com/fc/model","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{openfhir_user}}"},{"key":"password","value":"{{openfhir_user}}"}]},"isInherited":true,"source":{"_postman_id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","name":"openFHIR Tutorial","type":"collection"}},"urlObject":{"protocol":"https","path":["fc","model"],"host":["sandbox","open-fhir","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"07d202f9-0e3c-46e6-8981-c69a94f63d14"},{"name":"Add note.text Mapping of Body Weight","event":[{"listen":"test","script":{"id":"961618b1-f551-445f-b309-92ce488ca14b","exec":["const response = pm.response.json();","","// Test 1: Assert the response status code is 200","pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Test 2: Assert the mappings array contains exactly 3 mappings","pm.test(\"Mappings array contains exactly 5 entries\", function () {","    pm.expect(response.mappings).to.have.lengthOf(5);","});","","// Test 3: Assert the last mapping is named 'comment'","pm.test(\"Last mapping is named 'comment'\", function () {","    const mappings = response.mappings;","    const lastMapping = mappings[mappings.length - 1];","    pm.expect(lastMapping.name).to.equal(\"comment\");","});",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"5f571ad9-c091-4302-bdd5-f4cc7b5ead20","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"grammar: FHIRConnect/v0.0.1\ntype: model\nmetadata:\n  name: \"OBSERVATION.body_weight.v2\"\n  version: 0.0.1a # version of this particular mapping\nspec: # schema specific to the FHIRConnect v0.0.1 engine\n  system: FHIR\n  version: R4\n  openEhrConfig:\n    archetype: \"openEHR-EHR-OBSERVATION.body_weight.v2\"\n  fhirConfig:\n    structureDefinition: http://hl7.org/fhir/StructureDefinition/Observation\n\npreprocessor:\n  hierarchy:\n    with:\n      fhir: \"$resource\"\n      openehr: \"$archetype/data[at0002]/events[at0003]\"\n    split:\n      fhir:\n        create: \"resource\"\n\n  fhirCondition:\n    targetRoot: \"$resource\"\n    targetAttribute: \"category.coding.code\"\n    operator: \"one of\"\n    criteria: \"weight\"\n\nmappings:\n\n  - name: \"weight\"\n    with:\n      fhir: \"$resource.value\"\n      openehr: \"$archetype/data[at0002]/events[at0003]/data[at0001]/items[at0004]\"\n\n  - name: \"category\"\n    with:\n      fhir: \"$resource.category.coding\"\n      openehr: \"$archetype\"\n    manual:\n      - name: \"weightCategory\"\n        fhir:\n          - path: \"code\"\n            value: \"weight\"\n\n  - name: \"time\"\n    with:\n      fhir: \"$resource.effective\"\n      openehr: \"$archetype/data[at0002]/events[at0003]/time\"\n\n  - name: \"code\"\n    unidirectional: \"openehr->fhir\"\n    with:\n      fhir: \"$resource.code.coding\"\n      openehr: \"$archetype\"\n    manual:\n      - name: \"code\"\n        fhir:\n          - path: \"code\"\n            value: \"29463-7\"\n\n  - name: \"comment\"\n    with:\n      fhir: \"$resource.note.text\"\n      openehr: \"$archetype/data[at0002]/events[at0003]/data[at0001]/items[at0024]\"","options":{"raw":{"language":"text"}}},"url":"https://sandbox.open-fhir.com/fc/model/{{weight_mapping_id}}","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{openfhir_user}}"},{"key":"password","value":"{{openfhir_user}}"}]},"isInherited":true,"source":{"_postman_id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","name":"openFHIR Tutorial","type":"collection"}},"urlObject":{"protocol":"https","path":["fc","model","{{weight_mapping_id}}"],"host":["sandbox","open-fhir","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"5f571ad9-c091-4302-bdd5-f4cc7b5ead20"},{"name":"openEHR flat to FHIR with note","event":[{"listen":"test","script":{"exec":["const response = pm.response.json();","","// Test 1: Assert the response status code is 200","pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Test 1: Ensure only \"weight\" category resources have a 'note' field with the correct 'text' value","pm.test(\"Only 'weight' resources have a 'note' field with the correct 'text' value\", function () {","    // Iterate through each resource entry in the bundle","    response.entry.forEach((entry) => {","        const resource = entry.resource;","        const categoryCode = resource.category[0].coding[0].code;","","        // Check if the category is \"weight\"","        if (categoryCode === \"weight\") {","            // Assert the 'note' field exists in \"weight\" resources","            pm.expect(resource).to.have.property(\"note\");","            ","            // Check that the 'note' field is an array and contains at least one element","            pm.expect(resource.note).to.be.an(\"array\").that.is.not.empty;","            ","            // Assert that the 'note' field has a 'text' value","            const noteText = resource.note[0].text;","            pm.expect(noteText).to.be.a(\"string\").that.is.not.empty;","            ","            // Validate the text content for \"weight\" resources (can be customized as needed)","            pm.expect(noteText).to.match(/^body_weightLorem ipsum\\d$/); // Validate text pattern for weight","        } else {","            // Assert that non-\"weight\" resources do NOT have a 'note' field","            pm.expect(resource).to.not.have.property(\"note\");","        }","    });","});","",""],"type":"text/javascript","packages":{},"requests":{},"id":"7a8fd391-cea1-4f1a-ba44-c1d1b744ec55"}}],"id":"d4dcfee3-dd5c-4575-b83a-4daf813b8c93","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"growth_chart/category|code\": \"433\",\n  \"growth_chart/category|value\": \"event\",\n  \"growth_chart/category|terminology\": \"openehr\",\n  \"growth_chart/context/start_time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/context/setting|terminology\": \"openehr\",\n  \"growth_chart/context/setting|code\": \"225\",\n  \"growth_chart/context/setting|value\": \"home\",\n  \"growth_chart/context/_end_time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/context/_health_care_facility|name\": \"DOE, John\",\n  \"growth_chart/body_weight/birth/weight|unit\": \"kg\",\n  \"growth_chart/body_weight/birth/weight|magnitude\": 500.0,\n  \"growth_chart/body_weight/birth/comment\": \"Lorem ipsum\",\n  \"growth_chart/body_weight/birth/state_of_dress|code\": \"at0013\",\n  \"growth_chart/body_weight/birth/state_of_dress|value\": \"Naked\",\n  \"growth_chart/body_weight/birth/state_of_dress|terminology\": \"local\",\n  \"growth_chart/body_weight/birth/confounding_factors:0\": \"Lorem ipsum\",\n  \"growth_chart/body_weight/birth/time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/body_weight/any_event:0/weight|magnitude\": 501.0,\n  \"growth_chart/body_weight/any_event:0/weight|unit\": \"kg\",\n  \"growth_chart/body_weight/any_event:0/comment\": \"body_weightLorem ipsum0\",\n  \"growth_chart/body_weight/any_event:0/state_of_dress|terminology\": \"local\",\n  \"growth_chart/body_weight/any_event:0/state_of_dress|value\": \"Naked\",\n  \"growth_chart/body_weight/any_event:0/state_of_dress|code\": \"at0013\",\n  \"growth_chart/body_weight/any_event:0/confounding_factors:0\": \"Lorem ipsum\",\n  \"growth_chart/body_weight/any_event:0/time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/body_weight/any_event:0/width\": \"PT42H\",\n  \"growth_chart/body_weight/any_event:0/math_function|terminology\": \"openehr\",\n  \"growth_chart/body_weight/any_event:0/math_function|code\": \"145\",\n  \"growth_chart/body_weight/any_event:0/math_function|value\": \"minimum\",\n  \"growth_chart/body_weight/any_event:1/weight|magnitude\": 502.0,\n  \"growth_chart/body_weight/any_event:1/weight|unit\": \"t\",\n  \"growth_chart/body_weight/any_event:1/comment\": \"body_weightLorem ipsum1\",\n  \"growth_chart/body_weight/any_event:1/state_of_dress|code\": \"at0013\",\n  \"growth_chart/body_weight/any_event:1/state_of_dress|terminology\": \"local\",\n  \"growth_chart/body_weight/any_event:1/state_of_dress|value\": \"Naked\",\n  \"growth_chart/body_weight/any_event:1/confounding_factors:0\": \"Lorem ipsum\",\n  \"growth_chart/body_weight/any_event:1/time\": \"2022-02-04T04:05:06\",\n  \"growth_chart/body_weight/any_event:2/weight|unit\": \"mm\",\n  \"growth_chart/body_weight/any_event:2/weight|magnitude\": 503.0,\n  \"growth_chart/body_weight/any_event:2/comment\": \"body_weightLorem ipsum2\",\n  \"growth_chart/body_weight/any_event:2/state_of_dress|code\": \"at0013\",\n  \"growth_chart/body_weight/any_event:2/state_of_dress|value\": \"Naked\",\n  \"growth_chart/body_weight/any_event:2/state_of_dress|terminology\": \"local\",\n  \"growth_chart/body_weight/any_event:2/confounding_factors:0\": \"Lorem ipsum\",\n  \"growth_chart/body_weight/any_event:2/time\": \"2022-02-05T04:05:06\",\n  \"growth_chart/body_weight/any_event:2/width\": \"PT42H\",\n  \"growth_chart/body_weight/any_event:2/math_function|terminology\": \"openehr\",\n  \"growth_chart/body_weight/any_event:2/math_function|code\": \"145\",\n  \"growth_chart/body_weight/any_event:2/math_function|value\": \"minimum\",\n  \"growth_chart/body_weight/language|code\": \"en\",\n  \"growth_chart/body_weight/language|terminology\": \"ISO_639-1\",\n  \"growth_chart/body_weight/encoding|code\": \"UTF-8\",\n  \"growth_chart/body_weight/encoding|terminology\": \"IANA_character-sets\",\n  \"growth_chart/body_weight/_work_flow_id|id\": \"121d020d-0639-3fc3-a3ed-21f2d72eee1f\",\n  \"growth_chart/body_weight/_work_flow_id|id_scheme\": \"scheme\",\n  \"growth_chart/body_weight/_work_flow_id|namespace\": \"unknown\",\n  \"growth_chart/body_weight/_work_flow_id|type\": \"ANY\",\n  \"growth_chart/body_weight/_guideline_id|id\": \"97063a6d-140c-3bbf-a25b-35ee3c0adeda\",\n  \"growth_chart/body_weight/_guideline_id|id_scheme\": \"scheme\",\n  \"growth_chart/body_weight/_guideline_id|namespace\": \"unknown\",\n  \"growth_chart/body_weight/_guideline_id|type\": \"ANY\",\n  \"growth_chart/height_length/birth/height_length|magnitude\": 500.0,\n  \"growth_chart/height_length/birth/height_length|unit\": \"cm\",\n  \"growth_chart/height_length/birth/comment\": \"Lorem ipsum\",\n  \"growth_chart/height_length/birth/position|code\": \"at0016\",\n  \"growth_chart/height_length/birth/position|value\": \"Standing\",\n  \"growth_chart/height_length/birth/position|terminology\": \"local\",\n  \"growth_chart/height_length/birth/confounding_factors\": \"Lorem ipsum\",\n  \"growth_chart/height_length/birth/time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/height_length/any_event:0/height_length|unit\": \"cm\",\n  \"growth_chart/height_length/any_event:0/height_length|magnitude\": 500.0,\n  \"growth_chart/height_length/any_event:0/comment\": \"height_lengthLorem ipsum0\",\n  \"growth_chart/height_length/any_event:0/position|terminology\": \"local\",\n  \"growth_chart/height_length/any_event:0/position|code\": \"at0016\",\n  \"growth_chart/height_length/any_event:0/position|value\": \"Standing\",\n  \"growth_chart/height_length/any_event:0/confounding_factors\": \"Lorem ipsum\",\n  \"growth_chart/height_length/any_event:0/time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/height_length/any_event:0/width\": \"PT42H\",\n  \"growth_chart/height_length/any_event:0/math_function|value\": \"minimum\",\n  \"growth_chart/height_length/any_event:0/math_function|code\": \"145\",\n  \"growth_chart/height_length/any_event:0/math_function|terminology\": \"openehr\",\n  \"growth_chart/height_length/any_event:1/height_length|unit\": \"cm\",\n  \"growth_chart/height_length/any_event:1/height_length|magnitude\": 500.0,\n  \"growth_chart/height_length/any_event:1/comment\": \"height_lengthLorem ipsum1\",\n  \"growth_chart/height_length/any_event:1/position|terminology\": \"local\",\n  \"growth_chart/height_length/any_event:1/position|value\": \"Standing\",\n  \"growth_chart/height_length/any_event:1/position|code\": \"at0016\",\n  \"growth_chart/height_length/any_event:1/confounding_factors\": \"Lorem ipsum\",\n  \"growth_chart/height_length/any_event:1/time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/height_length/any_event:2/height_length|magnitude\": 500.0,\n  \"growth_chart/height_length/any_event:2/height_length|unit\": \"cm\",\n  \"growth_chart/height_length/any_event:2/comment\": \"height_lengthLorem ipsum2\",\n  \"growth_chart/height_length/any_event:2/position|code\": \"at0016\",\n  \"growth_chart/height_length/any_event:2/position|value\": \"Standing\",\n  \"growth_chart/height_length/any_event:2/position|terminology\": \"local\",\n  \"growth_chart/height_length/any_event:2/confounding_factors\": \"Lorem ipsum\",\n  \"growth_chart/height_length/any_event:2/time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/height_length/any_event:2/width\": \"PT42H\",\n  \"growth_chart/height_length/any_event:2/math_function|terminology\": \"openehr\",\n  \"growth_chart/height_length/any_event:2/math_function|code\": \"145\",\n  \"growth_chart/height_length/any_event:2/math_function|value\": \"minimum\",\n  \"growth_chart/height_length/language|code\": \"en\",\n  \"growth_chart/height_length/language|terminology\": \"ISO_639-1\",\n  \"growth_chart/height_length/encoding|code\": \"UTF-8\",\n  \"growth_chart/height_length/encoding|terminology\": \"IANA_character-sets\",\n  \"growth_chart/height_length/_work_flow_id|id\": \"36c6d06e-cc47-306c-a5c4-66833ced9c2e\",\n  \"growth_chart/height_length/_work_flow_id|id_scheme\": \"scheme\",\n  \"growth_chart/height_length/_work_flow_id|namespace\": \"unknown\",\n  \"growth_chart/height_length/_work_flow_id|type\": \"ANY\",\n  \"growth_chart/height_length/_guideline_id|id\": \"48b61e73-9545-358b-b442-34db4c2ed3b9\",\n  \"growth_chart/height_length/_guideline_id|id_scheme\": \"scheme\",\n  \"growth_chart/height_length/_guideline_id|namespace\": \"unknown\",\n  \"growth_chart/height_length/_guideline_id|type\": \"ANY\",\n  \"growth_chart/body_mass_index/any_event:0/body_mass_index|magnitude\": 500.0,\n  \"growth_chart/body_mass_index/any_event:0/body_mass_index|unit\": \"kg/m2\",\n  \"growth_chart/body_mass_index/any_event:0/clinical_interpretation\": \"Lorem ipsum\",\n  \"growth_chart/body_mass_index/any_event:0/comment\": \"Lorem ipsum\",\n  \"growth_chart/body_mass_index/any_event:0/confounding_factors\": \"Lorem ipsum\",\n  \"growth_chart/body_mass_index/any_event:0/time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/body_mass_index/any_event:0/width\": \"PT42H\",\n  \"growth_chart/body_mass_index/any_event:0/math_function|terminology\": \"openehr\",\n  \"growth_chart/body_mass_index/any_event:0/math_function|value\": \"minimum\",\n  \"growth_chart/body_mass_index/any_event:0/math_function|code\": \"145\",\n  \"growth_chart/body_mass_index/any_event:1/body_mass_index|magnitude\": 500.0,\n  \"growth_chart/body_mass_index/any_event:1/body_mass_index|unit\": \"kg/m2\",\n  \"growth_chart/body_mass_index/any_event:1/clinical_interpretation\": \"Lorem ipsum\",\n  \"growth_chart/body_mass_index/any_event:1/comment\": \"Lorem ipsum\",\n  \"growth_chart/body_mass_index/any_event:1/confounding_factors\": \"Lorem ipsum\",\n  \"growth_chart/body_mass_index/any_event:1/time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/body_mass_index/any_event:2/body_mass_index|magnitude\": 500.0,\n  \"growth_chart/body_mass_index/any_event:2/body_mass_index|unit\": \"kg/m2\",\n  \"growth_chart/body_mass_index/any_event:2/clinical_interpretation\": \"Lorem ipsum\",\n  \"growth_chart/body_mass_index/any_event:2/comment\": \"Lorem ipsum\",\n  \"growth_chart/body_mass_index/any_event:2/confounding_factors\": \"Lorem ipsum\",\n  \"growth_chart/body_mass_index/any_event:2/time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/body_mass_index/any_event:2/width\": \"PT42H\",\n  \"growth_chart/body_mass_index/any_event:2/math_function|value\": \"minimum\",\n  \"growth_chart/body_mass_index/any_event:2/math_function|terminology\": \"openehr\",\n  \"growth_chart/body_mass_index/any_event:2/math_function|code\": \"145\",\n  \"growth_chart/body_mass_index/method|code\": \"at0007\",\n  \"growth_chart/body_mass_index/method|terminology\": \"local\",\n  \"growth_chart/body_mass_index/method|value\": \"Automatic entry\",\n  \"growth_chart/body_mass_index/formula\": \"Lorem ipsum\",\n  \"growth_chart/body_mass_index/language|code\": \"en\",\n  \"growth_chart/body_mass_index/language|terminology\": \"ISO_639-1\",\n  \"growth_chart/body_mass_index/encoding|terminology\": \"IANA_character-sets\",\n  \"growth_chart/body_mass_index/encoding|code\": \"UTF-8\",\n  \"growth_chart/body_mass_index/_work_flow_id|id\": \"ebd4c5ab-9ecb-3497-9452-7a30c56c1b81\",\n  \"growth_chart/body_mass_index/_work_flow_id|id_scheme\": \"scheme\",\n  \"growth_chart/body_mass_index/_work_flow_id|namespace\": \"unknown\",\n  \"growth_chart/body_mass_index/_work_flow_id|type\": \"ANY\",\n  \"growth_chart/body_mass_index/_guideline_id|id\": \"e007b8d5-6023-3236-a261-2d2aa42d6848\",\n  \"growth_chart/body_mass_index/_guideline_id|id_scheme\": \"scheme\",\n  \"growth_chart/body_mass_index/_guideline_id|namespace\": \"unknown\",\n  \"growth_chart/body_mass_index/_guideline_id|type\": \"ANY\",\n  \"growth_chart/head_circumference/birth/head_circumference|magnitude\": 50.0,\n  \"growth_chart/head_circumference/birth/head_circumference|unit\": \"cm\",\n  \"growth_chart/head_circumference/birth/comment\": \"Lorem ipsum\",\n  \"growth_chart/head_circumference/birth/confounding_factors:0\": \"Lorem ipsum\",\n  \"growth_chart/head_circumference/birth/time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/head_circumference/any_event:0/head_circumference|unit\": \"cm\",\n  \"growth_chart/head_circumference/any_event:0/head_circumference|magnitude\": 50.0,\n  \"growth_chart/head_circumference/any_event:0/comment\": \"Lorem ipsum\",\n  \"growth_chart/head_circumference/any_event:0/confounding_factors:0\": \"Lorem ipsum\",\n  \"growth_chart/head_circumference/any_event:0/time\": \"2023-02-03T04:05:06\",\n  \"growth_chart/head_circumference/any_event:0/width\": \"PT42H\",\n  \"growth_chart/head_circumference/any_event:0/math_function|terminology\": \"openehr\",\n  \"growth_chart/head_circumference/any_event:0/math_function|code\": \"145\",\n  \"growth_chart/head_circumference/any_event:0/math_function|value\": \"minimum\",\n  \"growth_chart/head_circumference/any_event:1/head_circumference|magnitude\": 51.0,\n  \"growth_chart/head_circumference/any_event:1/head_circumference|unit\": \"mm\",\n  \"growth_chart/head_circumference/any_event:1/comment\": \"Lorem ipsum\",\n  \"growth_chart/head_circumference/any_event:1/confounding_factors:0\": \"Lorem ipsum\",\n  \"growth_chart/head_circumference/any_event:1/time\": \"2023-02-04T04:05:06\",\n  \"growth_chart/head_circumference/any_event:2/head_circumference|magnitude\": 52.0,\n  \"growth_chart/head_circumference/any_event:2/head_circumference|unit\": \"m\",\n  \"growth_chart/head_circumference/any_event:2/comment\": \"Lorem ipsum\",\n  \"growth_chart/head_circumference/any_event:2/confounding_factors:0\": \"Lorem ipsum\",\n  \"growth_chart/head_circumference/any_event:2/time\": \"2023-02-05T04:05:06\",\n  \"growth_chart/head_circumference/any_event:2/width\": \"PT42H\",\n  \"growth_chart/head_circumference/any_event:2/math_function|value\": \"minimum\",\n  \"growth_chart/head_circumference/any_event:2/math_function|terminology\": \"openehr\",\n  \"growth_chart/head_circumference/any_event:2/math_function|code\": \"145\",\n  \"growth_chart/head_circumference/language|terminology\": \"ISO_639-1\",\n  \"growth_chart/head_circumference/language|code\": \"en\",\n  \"growth_chart/head_circumference/encoding|terminology\": \"IANA_character-sets\",\n  \"growth_chart/head_circumference/encoding|code\": \"UTF-8\",\n  \"growth_chart/head_circumference/_work_flow_id|id\": \"98dbdd7c-4454-3f75-b32a-7a6620c3de03\",\n  \"growth_chart/head_circumference/_work_flow_id|id_scheme\": \"scheme\",\n  \"growth_chart/head_circumference/_work_flow_id|namespace\": \"unknown\",\n  \"growth_chart/head_circumference/_work_flow_id|type\": \"ANY\",\n  \"growth_chart/head_circumference/_guideline_id|id\": \"d5ba712f-8f05-334e-a8cb-05f8f5807bf7\",\n  \"growth_chart/head_circumference/_guideline_id|id_scheme\": \"scheme\",\n  \"growth_chart/head_circumference/_guideline_id|namespace\": \"unknown\",\n  \"growth_chart/head_circumference/_guideline_id|type\": \"ANY\",\n  \"growth_chart/language|terminology\": \"ISO_639-1\",\n  \"growth_chart/language|code\": \"en\",\n  \"growth_chart/territory|terminology\": \"ISO_3166-1\",\n  \"growth_chart/territory|code\": \"DE\",\n  \"growth_chart/composer|name\": \"Max Mustermann\",\n  \"growth_chart/_uid\": \"b5e932dc-55cc-49d5-94de-c2420a3ec6ec::local.ehrbase.org::1\"\n}","options":{"raw":{"language":"json"}}},"url":"https://sandbox.open-fhir.com/openfhir/tofhir?templateId=Growth chart","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{openfhir_user}}"},{"key":"password","value":"{{openfhir_user}}"}]},"isInherited":true,"source":{"_postman_id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","name":"openFHIR Tutorial","type":"collection"}},"urlObject":{"protocol":"https","path":["openfhir","tofhir"],"host":["sandbox","open-fhir","com"],"query":[{"key":"templateId","value":"Growth chart"}],"variable":[]}},"response":[],"_postman_id":"d4dcfee3-dd5c-4575-b83a-4daf813b8c93"},{"name":"FHIR to openEHR with note","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","    const response = pm.response.json();","","pm.expect(response[\"growth_chart/body_weight/any_event:0/weight|magnitude\"]).to.eq(502.0);","pm.expect(response[\"growth_chart/body_weight/any_event:0/weight|unit\"]).to.eq(\"t\");","pm.expect(response[\"growth_chart/body_weight/any_event:0/comment\"]).to.eq(\"body_weightLorem ipsum1\");","","pm.expect(response[\"growth_chart/body_weight/any_event:1/weight|magnitude\"]).to.eq(503.0);","pm.expect(response[\"growth_chart/body_weight/any_event:1/weight|unit\"]).to.eq(\"mm\");","pm.expect(response[\"growth_chart/body_weight/any_event:1/comment\"]).to.eq(\"body_weightLorem ipsum2\");","","pm.expect(response[\"growth_chart/body_weight/any_event:2/weight|magnitude\"]).to.eq(501.0);","pm.expect(response[\"growth_chart/body_weight/any_event:2/weight|unit\"]).to.eq(\"kg\");","pm.expect(response[\"growth_chart/body_weight/any_event:2/comment\"]).to.eq(\"body_weightLorem ipsum0\");","});"],"type":"text/javascript","packages":{},"requests":{},"id":"799eb99d-f014-4f3d-a599-f2146c221185"}}],"id":"d21466d3-1c8a-4ff8-9808-2c8a4b71910e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"resourceType\": \"Bundle\",\n    \"entry\": [\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"weight\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"29463-7\"\n                        }\n                    ]\n                },\n                \"effectiveDateTime\": \"2022-02-04T04:05:06+00:00\",\n                \"valueQuantity\": {\n                    \"value\": 502.0,\n                    \"unit\": \"t\"\n                },\n                \"note\": [\n                    {\n                        \"text\": \"body_weightLorem ipsum1\"\n                    }\n                ]\n            }\n        },\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"weight\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"29463-7\"\n                        }\n                    ]\n                },\n                \"effectiveDateTime\": \"2022-02-05T04:05:06+00:00\",\n                \"valueQuantity\": {\n                    \"value\": 503.0,\n                    \"unit\": \"mm\"\n                },\n                \"note\": [\n                    {\n                        \"text\": \"body_weightLorem ipsum2\"\n                    }\n                ]\n            }\n        },\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"weight\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"29463-7\"\n                        }\n                    ]\n                },\n                \"effectiveDateTime\": \"2022-02-03T04:05:06+00:00\",\n                \"valueQuantity\": {\n                    \"value\": 501.0,\n                    \"unit\": \"kg\"\n                },\n                \"note\": [\n                    {\n                        \"text\": \"body_weightLorem ipsum0\"\n                    }\n                ]\n            }\n        },\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"height\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"8302-2\"\n                        }\n                    ]\n                },\n                \"valueQuantity\": {\n                    \"value\": 500.0,\n                    \"unit\": \"cm\"\n                }\n            }\n        },\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"height\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"8302-2\"\n                        }\n                    ]\n                },\n                \"valueQuantity\": {\n                    \"value\": 500.0,\n                    \"unit\": \"cm\"\n                }\n            }\n        },\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"height\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"8302-2\"\n                        }\n                    ]\n                },\n                \"valueQuantity\": {\n                    \"value\": 500.0,\n                    \"unit\": \"cm\"\n                }\n            }\n        },\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"bmi\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"39156-5\"\n                        }\n                    ]\n                },\n                \"effectiveDateTime\": \"2022-02-03T04:05:06+00:00\",\n                \"valueQuantity\": {\n                    \"value\": 500.0,\n                    \"unit\": \"kg/m2\"\n                }\n            }\n        },\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"bmi\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"39156-5\"\n                        }\n                    ]\n                },\n                \"effectiveDateTime\": \"2022-02-03T04:05:06+00:00\",\n                \"valueQuantity\": {\n                    \"value\": 500.0,\n                    \"unit\": \"kg/m2\"\n                }\n            }\n        },\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"bmi\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"39156-5\"\n                        }\n                    ]\n                },\n                \"effectiveDateTime\": \"2022-02-03T04:05:06+00:00\",\n                \"valueQuantity\": {\n                    \"value\": 500.0,\n                    \"unit\": \"kg/m2\"\n                }\n            }\n        },\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"status\": \"final\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"head_circumference\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"8287-5\"\n                        }\n                    ]\n                },\n                \"effectiveDateTime\": \"2023-02-05T04:05:06+00:00\",\n                \"valueQuantity\": {\n                    \"value\": 52.0,\n                    \"unit\": \"m\"\n                }\n            }\n        },\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"status\": \"final\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"head_circumference\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"8287-5\"\n                        }\n                    ]\n                },\n                \"effectiveDateTime\": \"2023-02-04T04:05:06+00:00\",\n                \"valueQuantity\": {\n                    \"value\": 51.0,\n                    \"unit\": \"mm\"\n                }\n            }\n        },\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"status\": \"final\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"head_circumference\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"8287-5\"\n                        }\n                    ]\n                },\n                \"effectiveDateTime\": \"2023-02-03T04:05:06+00:00\",\n                \"valueQuantity\": {\n                    \"value\": 50.0,\n                    \"unit\": \"cm\"\n                }\n            }\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://sandbox.open-fhir.com/openfhir/toopenehr?flat=true","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{openfhir_user}}"},{"key":"password","value":"{{openfhir_user}}"}]},"isInherited":true,"source":{"_postman_id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","name":"openFHIR Tutorial","type":"collection"}},"urlObject":{"protocol":"https","path":["openfhir","toopenehr"],"host":["sandbox","open-fhir","com"],"query":[{"key":"flat","value":"true"}],"variable":[]}},"response":[],"_postman_id":"d21466d3-1c8a-4ff8-9808-2c8a4b71910e"}],"id":"97ebb673-2810-4c45-a992-42196acb76a6","description":"<p>Adding mapping of a new data point</p>\n","_postman_id":"97ebb673-2810-4c45-a992-42196acb76a6","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{openfhir_user}}"},{"key":"password","value":"{{openfhir_user}}"}]},"isInherited":true,"source":{"_postman_id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","name":"openFHIR Tutorial","type":"collection"}}},{"name":"(4) Terminology inline","item":[{"name":"Add state of dress mappiing (no terminology yet)","event":[{"listen":"test","script":{"id":"feec115a-bea3-4628-b844-ab187cb1358a","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","const response = pm.response.json();","","// Test 1: Ensure there is a \"state of dress\" mapping","pm.test(\"There is a 'state of dress' mapping\", function () {","    const mappings = response.mappings;","","    // Check if the mapping with the name 'state of dress' exists","    const stateOfDressMapping = mappings.find(mapping => mapping.name === \"state of dress\");","","    // Assert that the 'state of dress' mapping is found","    pm.expect(stateOfDressMapping).to.not.be.undefined;","","    // Check if the \"with\" property is correctly configured for 'state of dress'","    pm.expect(stateOfDressMapping.with).to.have.property(\"fhir\");","    pm.expect(stateOfDressMapping.with).to.have.property(\"openehr\");","","    // Ensure the 'fhirCondition' is correctly configured for 'state of dress'","    pm.expect(stateOfDressMapping).to.have.property(\"fhirCondition\");","    pm.expect(stateOfDressMapping.fhirCondition).to.have.property(\"targetRoot\").that.equals(\"$resource.component\");","    pm.expect(stateOfDressMapping.fhirCondition).to.have.property(\"targetAttribute\").that.equals(\"code.coding.code\");","    pm.expect(stateOfDressMapping.fhirCondition).to.have.property(\"criteria\").that.equals(\"9999-9\");","});",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"5bc98482-a047-46d6-97c3-951a278a8bd9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"grammar: FHIRConnect/v0.0.1\ntype: model\nmetadata:\n  name: \"OBSERVATION.body_weight.v2\"\n  version: 0.0.1a # version of this particular mapping\nspec: # schema specific to the FHIRConnect v0.0.1 engine\n  system: FHIR\n  version: R4\n  openEhrConfig:\n    archetype: \"openEHR-EHR-OBSERVATION.body_weight.v2\"\n  fhirConfig:\n    structureDefinition: http://hl7.org/fhir/StructureDefinition/Observation\n\npreprocessor:\n  hierarchy:\n    with:\n      fhir: \"$resource\"\n      openehr: \"$archetype/data[at0002]/events[at0003]\"\n    split:\n      fhir:\n        create: \"resource\"\n\n  fhirCondition:\n    targetRoot: \"$resource\"\n    targetAttribute: \"category.coding.code\"\n    operator: \"one of\"\n    criteria: \"weight\"\n\nmappings:\n\n  - name: \"weight\"\n    with:\n      fhir: \"$resource.value\"\n      openehr: \"$archetype/data[at0002]/events[at0003]/data[at0001]/items[at0004]\"\n\n  - name: \"category\"\n    with:\n      fhir: \"$resource.category.coding\"\n      openehr: \"$archetype\"\n    manual:\n      - name: \"weightCategory\"\n        fhir:\n          - path: \"code\"\n            value: \"weight\"\n\n  - name: \"time\"\n    with:\n      fhir: \"$resource.effective\"\n      openehr: \"$archetype/data[at0002]/events[at0003]/time\"\n\n  - name: \"code\"\n    unidirectional: \"openehr->fhir\"\n    with:\n      fhir: \"$resource.code.coding\"\n      openehr: \"$archetype\"\n    manual:\n      - name: \"code\"\n        fhir:\n          - path: \"code\"\n            value: \"29463-7\"\n\n  - name: \"comment\"\n    with:\n      fhir: \"$resource.note.text\"\n      openehr: \"$archetype/data[at0002]/events[at0003]/data[at0001]/items[at0024]\"\n      \n  - name: \"state of dress\"\n    with:\n      fhir: \"$resource.component\"\n      openehr: \"$archetype/data[at0002]/events[at0003]/state[at0008]\"\n    fhirCondition:\n      targetRoot: \"$resource.component\"\n      targetAttribute: \"code.coding.code\"\n      operator: \"one of\"\n      criteria: \"9999-9\"\n    followedBy:\n      mappings:\n        - name: \"value\"\n          with:\n            fhir: \"value\"\n            openehr: \"items[at0009]\"\n        - name: \"code\"\n          with:\n            fhir: \"$fhirRoot\"\n            openehr: \"$archetype\"\n          manual:\n            - name: \"code\"\n              fhir:\n                - path: \"code.coding.code\"\n                  value: \"9999-9\"","options":{"raw":{"language":"text"}}},"url":"https://sandbox.open-fhir.com/fc/model/{{weight_mapping_id}}","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{openfhir_user}}"},{"key":"password","value":"{{openfhir_user}}"}]},"isInherited":true,"source":{"_postman_id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","name":"openFHIR Tutorial","type":"collection"}},"urlObject":{"protocol":"https","path":["fc","model","{{weight_mapping_id}}"],"host":["sandbox","open-fhir","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"5bc98482-a047-46d6-97c3-951a278a8bd9"},{"name":"openEHR flat to FHIR state of dress","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","const response = pm.response.json();","","// Test 1: Check if 'component' exists in the 'weight' entries","pm.test(\"Components with 'state of dress' are present in 'weight' entries\", function () {","    const entries = response.entry;","","    // Loop through each entry in the response","    entries.forEach(entry => {","        const resource = entry.resource;","","        // Check if the entry is labeled with 'weight'","        if (resource.category && resource.category.some(cat => cat.coding.some(c => c.code === \"weight\"))) {","            ","            // Assert that 'component' exists in this entry","            pm.expect(resource).to.have.property(\"component\");","","            // Check that the component contains the correct \"code\" for \"state of dress\"","            const component = resource.component.find(c => c.code.coding.some(cd => cd.code === \"9999-9\"));","            pm.expect(component).to.not.be.undefined;","            ","            // Check that the component has a 'valueCodeableConcept' with valid values","            pm.expect(component).to.have.property(\"valueCodeableConcept\");","","            const valueCodeableConcept = component.valueCodeableConcept;","            pm.expect(valueCodeableConcept).to.have.property(\"coding\");","            pm.expect(valueCodeableConcept.coding).to.be.an(\"array\").that.is.not.empty;","","            const coding = valueCodeableConcept.coding[0];","            pm.expect(coding).to.have.property(\"system\").that.equals(\"local\");","            pm.expect(coding).to.have.property(\"code\").that.equals(\"at0013\");","            pm.expect(coding).to.have.property(\"display\").that.equals(\"Naked\");","","            // Ensure 'text' property matches the display value","            pm.expect(valueCodeableConcept).to.have.property(\"text\").that.equals(\"Naked\");","        }","    });","});",""],"type":"text/javascript","packages":{},"requests":{},"id":"0a3606d0-5f0c-4cdf-b837-602cba7a28f4"}}],"id":"a6d234c6-33e9-43c6-b861-96a73185b5ae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"growth_chart/category|code\": \"433\",\n  \"growth_chart/category|value\": \"event\",\n  \"growth_chart/category|terminology\": \"openehr\",\n  \"growth_chart/context/start_time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/context/setting|terminology\": \"openehr\",\n  \"growth_chart/context/setting|code\": \"225\",\n  \"growth_chart/context/setting|value\": \"home\",\n  \"growth_chart/context/_end_time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/context/_health_care_facility|name\": \"DOE, John\",\n  \"growth_chart/body_weight/birth/weight|unit\": \"kg\",\n  \"growth_chart/body_weight/birth/weight|magnitude\": 500.0,\n  \"growth_chart/body_weight/birth/comment\": \"Lorem ipsum\",\n  \"growth_chart/body_weight/birth/state_of_dress|code\": \"at0013\",\n  \"growth_chart/body_weight/birth/state_of_dress|value\": \"Naked\",\n  \"growth_chart/body_weight/birth/state_of_dress|terminology\": \"local\",\n  \"growth_chart/body_weight/birth/confounding_factors:0\": \"Lorem ipsum\",\n  \"growth_chart/body_weight/birth/time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/body_weight/any_event:0/weight|magnitude\": 501.0,\n  \"growth_chart/body_weight/any_event:0/weight|unit\": \"kg\",\n  \"growth_chart/body_weight/any_event:0/comment\": \"body_weightLorem ipsum0\",\n  \"growth_chart/body_weight/any_event:0/state_of_dress|terminology\": \"local\",\n  \"growth_chart/body_weight/any_event:0/state_of_dress|value\": \"Naked\",\n  \"growth_chart/body_weight/any_event:0/state_of_dress|code\": \"at0013\",\n  \"growth_chart/body_weight/any_event:0/confounding_factors:0\": \"Lorem ipsum\",\n  \"growth_chart/body_weight/any_event:0/time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/body_weight/any_event:0/width\": \"PT42H\",\n  \"growth_chart/body_weight/any_event:0/math_function|terminology\": \"openehr\",\n  \"growth_chart/body_weight/any_event:0/math_function|code\": \"145\",\n  \"growth_chart/body_weight/any_event:0/math_function|value\": \"minimum\",\n  \"growth_chart/body_weight/any_event:1/weight|magnitude\": 502.0,\n  \"growth_chart/body_weight/any_event:1/weight|unit\": \"t\",\n  \"growth_chart/body_weight/any_event:1/comment\": \"body_weightLorem ipsum1\",\n  \"growth_chart/body_weight/any_event:1/state_of_dress|code\": \"at0013\",\n  \"growth_chart/body_weight/any_event:1/state_of_dress|terminology\": \"local\",\n  \"growth_chart/body_weight/any_event:1/state_of_dress|value\": \"Naked\",\n  \"growth_chart/body_weight/any_event:1/confounding_factors:0\": \"Lorem ipsum\",\n  \"growth_chart/body_weight/any_event:1/time\": \"2022-02-04T04:05:06\",\n  \"growth_chart/body_weight/any_event:2/weight|unit\": \"mm\",\n  \"growth_chart/body_weight/any_event:2/weight|magnitude\": 503.0,\n  \"growth_chart/body_weight/any_event:2/comment\": \"body_weightLorem ipsum2\",\n  \"growth_chart/body_weight/any_event:2/state_of_dress|code\": \"at0013\",\n  \"growth_chart/body_weight/any_event:2/state_of_dress|value\": \"Naked\",\n  \"growth_chart/body_weight/any_event:2/state_of_dress|terminology\": \"local\",\n  \"growth_chart/body_weight/any_event:2/confounding_factors:0\": \"Lorem ipsum\",\n  \"growth_chart/body_weight/any_event:2/time\": \"2022-02-05T04:05:06\",\n  \"growth_chart/body_weight/any_event:2/width\": \"PT42H\",\n  \"growth_chart/body_weight/any_event:2/math_function|terminology\": \"openehr\",\n  \"growth_chart/body_weight/any_event:2/math_function|code\": \"145\",\n  \"growth_chart/body_weight/any_event:2/math_function|value\": \"minimum\",\n  \"growth_chart/body_weight/language|code\": \"en\",\n  \"growth_chart/body_weight/language|terminology\": \"ISO_639-1\",\n  \"growth_chart/body_weight/encoding|code\": \"UTF-8\",\n  \"growth_chart/body_weight/encoding|terminology\": \"IANA_character-sets\",\n  \"growth_chart/body_weight/_work_flow_id|id\": \"121d020d-0639-3fc3-a3ed-21f2d72eee1f\",\n  \"growth_chart/body_weight/_work_flow_id|id_scheme\": \"scheme\",\n  \"growth_chart/body_weight/_work_flow_id|namespace\": \"unknown\",\n  \"growth_chart/body_weight/_work_flow_id|type\": \"ANY\",\n  \"growth_chart/body_weight/_guideline_id|id\": \"97063a6d-140c-3bbf-a25b-35ee3c0adeda\",\n  \"growth_chart/body_weight/_guideline_id|id_scheme\": \"scheme\",\n  \"growth_chart/body_weight/_guideline_id|namespace\": \"unknown\",\n  \"growth_chart/body_weight/_guideline_id|type\": \"ANY\",\n  \"growth_chart/height_length/birth/height_length|magnitude\": 500.0,\n  \"growth_chart/height_length/birth/height_length|unit\": \"cm\",\n  \"growth_chart/height_length/birth/comment\": \"Lorem ipsum\",\n  \"growth_chart/height_length/birth/position|code\": \"at0016\",\n  \"growth_chart/height_length/birth/position|value\": \"Standing\",\n  \"growth_chart/height_length/birth/position|terminology\": \"local\",\n  \"growth_chart/height_length/birth/confounding_factors\": \"Lorem ipsum\",\n  \"growth_chart/height_length/birth/time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/height_length/any_event:0/height_length|unit\": \"cm\",\n  \"growth_chart/height_length/any_event:0/height_length|magnitude\": 500.0,\n  \"growth_chart/height_length/any_event:0/comment\": \"height_lengthLorem ipsum0\",\n  \"growth_chart/height_length/any_event:0/position|terminology\": \"local\",\n  \"growth_chart/height_length/any_event:0/position|code\": \"at0016\",\n  \"growth_chart/height_length/any_event:0/position|value\": \"Standing\",\n  \"growth_chart/height_length/any_event:0/confounding_factors\": \"Lorem ipsum\",\n  \"growth_chart/height_length/any_event:0/time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/height_length/any_event:0/width\": \"PT42H\",\n  \"growth_chart/height_length/any_event:0/math_function|value\": \"minimum\",\n  \"growth_chart/height_length/any_event:0/math_function|code\": \"145\",\n  \"growth_chart/height_length/any_event:0/math_function|terminology\": \"openehr\",\n  \"growth_chart/height_length/any_event:1/height_length|unit\": \"cm\",\n  \"growth_chart/height_length/any_event:1/height_length|magnitude\": 500.0,\n  \"growth_chart/height_length/any_event:1/comment\": \"height_lengthLorem ipsum1\",\n  \"growth_chart/height_length/any_event:1/position|terminology\": \"local\",\n  \"growth_chart/height_length/any_event:1/position|value\": \"Standing\",\n  \"growth_chart/height_length/any_event:1/position|code\": \"at0016\",\n  \"growth_chart/height_length/any_event:1/confounding_factors\": \"Lorem ipsum\",\n  \"growth_chart/height_length/any_event:1/time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/height_length/any_event:2/height_length|magnitude\": 500.0,\n  \"growth_chart/height_length/any_event:2/height_length|unit\": \"cm\",\n  \"growth_chart/height_length/any_event:2/comment\": \"height_lengthLorem ipsum2\",\n  \"growth_chart/height_length/any_event:2/position|code\": \"at0016\",\n  \"growth_chart/height_length/any_event:2/position|value\": \"Standing\",\n  \"growth_chart/height_length/any_event:2/position|terminology\": \"local\",\n  \"growth_chart/height_length/any_event:2/confounding_factors\": \"Lorem ipsum\",\n  \"growth_chart/height_length/any_event:2/time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/height_length/any_event:2/width\": \"PT42H\",\n  \"growth_chart/height_length/any_event:2/math_function|terminology\": \"openehr\",\n  \"growth_chart/height_length/any_event:2/math_function|code\": \"145\",\n  \"growth_chart/height_length/any_event:2/math_function|value\": \"minimum\",\n  \"growth_chart/height_length/language|code\": \"en\",\n  \"growth_chart/height_length/language|terminology\": \"ISO_639-1\",\n  \"growth_chart/height_length/encoding|code\": \"UTF-8\",\n  \"growth_chart/height_length/encoding|terminology\": \"IANA_character-sets\",\n  \"growth_chart/height_length/_work_flow_id|id\": \"36c6d06e-cc47-306c-a5c4-66833ced9c2e\",\n  \"growth_chart/height_length/_work_flow_id|id_scheme\": \"scheme\",\n  \"growth_chart/height_length/_work_flow_id|namespace\": \"unknown\",\n  \"growth_chart/height_length/_work_flow_id|type\": \"ANY\",\n  \"growth_chart/height_length/_guideline_id|id\": \"48b61e73-9545-358b-b442-34db4c2ed3b9\",\n  \"growth_chart/height_length/_guideline_id|id_scheme\": \"scheme\",\n  \"growth_chart/height_length/_guideline_id|namespace\": \"unknown\",\n  \"growth_chart/height_length/_guideline_id|type\": \"ANY\",\n  \"growth_chart/body_mass_index/any_event:0/body_mass_index|magnitude\": 500.0,\n  \"growth_chart/body_mass_index/any_event:0/body_mass_index|unit\": \"kg/m2\",\n  \"growth_chart/body_mass_index/any_event:0/clinical_interpretation\": \"Lorem ipsum\",\n  \"growth_chart/body_mass_index/any_event:0/comment\": \"Lorem ipsum\",\n  \"growth_chart/body_mass_index/any_event:0/confounding_factors\": \"Lorem ipsum\",\n  \"growth_chart/body_mass_index/any_event:0/time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/body_mass_index/any_event:0/width\": \"PT42H\",\n  \"growth_chart/body_mass_index/any_event:0/math_function|terminology\": \"openehr\",\n  \"growth_chart/body_mass_index/any_event:0/math_function|value\": \"minimum\",\n  \"growth_chart/body_mass_index/any_event:0/math_function|code\": \"145\",\n  \"growth_chart/body_mass_index/any_event:1/body_mass_index|magnitude\": 500.0,\n  \"growth_chart/body_mass_index/any_event:1/body_mass_index|unit\": \"kg/m2\",\n  \"growth_chart/body_mass_index/any_event:1/clinical_interpretation\": \"Lorem ipsum\",\n  \"growth_chart/body_mass_index/any_event:1/comment\": \"Lorem ipsum\",\n  \"growth_chart/body_mass_index/any_event:1/confounding_factors\": \"Lorem ipsum\",\n  \"growth_chart/body_mass_index/any_event:1/time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/body_mass_index/any_event:2/body_mass_index|magnitude\": 500.0,\n  \"growth_chart/body_mass_index/any_event:2/body_mass_index|unit\": \"kg/m2\",\n  \"growth_chart/body_mass_index/any_event:2/clinical_interpretation\": \"Lorem ipsum\",\n  \"growth_chart/body_mass_index/any_event:2/comment\": \"Lorem ipsum\",\n  \"growth_chart/body_mass_index/any_event:2/confounding_factors\": \"Lorem ipsum\",\n  \"growth_chart/body_mass_index/any_event:2/time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/body_mass_index/any_event:2/width\": \"PT42H\",\n  \"growth_chart/body_mass_index/any_event:2/math_function|value\": \"minimum\",\n  \"growth_chart/body_mass_index/any_event:2/math_function|terminology\": \"openehr\",\n  \"growth_chart/body_mass_index/any_event:2/math_function|code\": \"145\",\n  \"growth_chart/body_mass_index/method|code\": \"at0007\",\n  \"growth_chart/body_mass_index/method|terminology\": \"local\",\n  \"growth_chart/body_mass_index/method|value\": \"Automatic entry\",\n  \"growth_chart/body_mass_index/formula\": \"Lorem ipsum\",\n  \"growth_chart/body_mass_index/language|code\": \"en\",\n  \"growth_chart/body_mass_index/language|terminology\": \"ISO_639-1\",\n  \"growth_chart/body_mass_index/encoding|terminology\": \"IANA_character-sets\",\n  \"growth_chart/body_mass_index/encoding|code\": \"UTF-8\",\n  \"growth_chart/body_mass_index/_work_flow_id|id\": \"ebd4c5ab-9ecb-3497-9452-7a30c56c1b81\",\n  \"growth_chart/body_mass_index/_work_flow_id|id_scheme\": \"scheme\",\n  \"growth_chart/body_mass_index/_work_flow_id|namespace\": \"unknown\",\n  \"growth_chart/body_mass_index/_work_flow_id|type\": \"ANY\",\n  \"growth_chart/body_mass_index/_guideline_id|id\": \"e007b8d5-6023-3236-a261-2d2aa42d6848\",\n  \"growth_chart/body_mass_index/_guideline_id|id_scheme\": \"scheme\",\n  \"growth_chart/body_mass_index/_guideline_id|namespace\": \"unknown\",\n  \"growth_chart/body_mass_index/_guideline_id|type\": \"ANY\",\n  \"growth_chart/head_circumference/birth/head_circumference|magnitude\": 50.0,\n  \"growth_chart/head_circumference/birth/head_circumference|unit\": \"cm\",\n  \"growth_chart/head_circumference/birth/comment\": \"Lorem ipsum\",\n  \"growth_chart/head_circumference/birth/confounding_factors:0\": \"Lorem ipsum\",\n  \"growth_chart/head_circumference/birth/time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/head_circumference/any_event:0/head_circumference|unit\": \"cm\",\n  \"growth_chart/head_circumference/any_event:0/head_circumference|magnitude\": 50.0,\n  \"growth_chart/head_circumference/any_event:0/comment\": \"Lorem ipsum\",\n  \"growth_chart/head_circumference/any_event:0/confounding_factors:0\": \"Lorem ipsum\",\n  \"growth_chart/head_circumference/any_event:0/time\": \"2023-02-03T04:05:06\",\n  \"growth_chart/head_circumference/any_event:0/width\": \"PT42H\",\n  \"growth_chart/head_circumference/any_event:0/math_function|terminology\": \"openehr\",\n  \"growth_chart/head_circumference/any_event:0/math_function|code\": \"145\",\n  \"growth_chart/head_circumference/any_event:0/math_function|value\": \"minimum\",\n  \"growth_chart/head_circumference/any_event:1/head_circumference|magnitude\": 51.0,\n  \"growth_chart/head_circumference/any_event:1/head_circumference|unit\": \"mm\",\n  \"growth_chart/head_circumference/any_event:1/comment\": \"Lorem ipsum\",\n  \"growth_chart/head_circumference/any_event:1/confounding_factors:0\": \"Lorem ipsum\",\n  \"growth_chart/head_circumference/any_event:1/time\": \"2023-02-04T04:05:06\",\n  \"growth_chart/head_circumference/any_event:2/head_circumference|magnitude\": 52.0,\n  \"growth_chart/head_circumference/any_event:2/head_circumference|unit\": \"m\",\n  \"growth_chart/head_circumference/any_event:2/comment\": \"Lorem ipsum\",\n  \"growth_chart/head_circumference/any_event:2/confounding_factors:0\": \"Lorem ipsum\",\n  \"growth_chart/head_circumference/any_event:2/time\": \"2023-02-05T04:05:06\",\n  \"growth_chart/head_circumference/any_event:2/width\": \"PT42H\",\n  \"growth_chart/head_circumference/any_event:2/math_function|value\": \"minimum\",\n  \"growth_chart/head_circumference/any_event:2/math_function|terminology\": \"openehr\",\n  \"growth_chart/head_circumference/any_event:2/math_function|code\": \"145\",\n  \"growth_chart/head_circumference/language|terminology\": \"ISO_639-1\",\n  \"growth_chart/head_circumference/language|code\": \"en\",\n  \"growth_chart/head_circumference/encoding|terminology\": \"IANA_character-sets\",\n  \"growth_chart/head_circumference/encoding|code\": \"UTF-8\",\n  \"growth_chart/head_circumference/_work_flow_id|id\": \"98dbdd7c-4454-3f75-b32a-7a6620c3de03\",\n  \"growth_chart/head_circumference/_work_flow_id|id_scheme\": \"scheme\",\n  \"growth_chart/head_circumference/_work_flow_id|namespace\": \"unknown\",\n  \"growth_chart/head_circumference/_work_flow_id|type\": \"ANY\",\n  \"growth_chart/head_circumference/_guideline_id|id\": \"d5ba712f-8f05-334e-a8cb-05f8f5807bf7\",\n  \"growth_chart/head_circumference/_guideline_id|id_scheme\": \"scheme\",\n  \"growth_chart/head_circumference/_guideline_id|namespace\": \"unknown\",\n  \"growth_chart/head_circumference/_guideline_id|type\": \"ANY\",\n  \"growth_chart/language|terminology\": \"ISO_639-1\",\n  \"growth_chart/language|code\": \"en\",\n  \"growth_chart/territory|terminology\": \"ISO_3166-1\",\n  \"growth_chart/territory|code\": \"DE\",\n  \"growth_chart/composer|name\": \"Max Mustermann\",\n  \"growth_chart/_uid\": \"b5e932dc-55cc-49d5-94de-c2420a3ec6ec::local.ehrbase.org::1\"\n}","options":{"raw":{"language":"json"}}},"url":"https://sandbox.open-fhir.com/openfhir/tofhir?templateId=Growth chart","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{openfhir_user}}"},{"key":"password","value":"{{openfhir_user}}"}]},"isInherited":true,"source":{"_postman_id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","name":"openFHIR Tutorial","type":"collection"}},"urlObject":{"protocol":"https","path":["openfhir","tofhir"],"host":["sandbox","open-fhir","com"],"query":[{"key":"templateId","value":"Growth chart"}],"variable":[]}},"response":[],"_postman_id":"a6d234c6-33e9-43c6-b861-96a73185b5ae"},{"name":"FHIR to openEHR state of dress","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","    const response = pm.response.json();","","pm.expect(response[\"growth_chart/body_weight/any_event:0/state_of_dress|code\"]).to.eq('at0013');","});"],"type":"text/javascript","packages":{},"requests":{},"id":"623f0c91-2e0a-43ee-ab21-a923f079069b"}}],"id":"52d7373d-13f9-4325-a0e0-bb865f7bf4d4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"resourceType\": \"Bundle\",\n    \"entry\": [\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"weight\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"29463-7\"\n                        }\n                    ]\n                },\n                \"effectiveDateTime\": \"2022-02-04T04:05:06+00:00\",\n                \"valueQuantity\": {\n                    \"value\": 502.0,\n                    \"unit\": \"t\"\n                },\n                \"note\": [\n                    {\n                        \"text\": \"body_weightLorem ipsum1\"\n                    }\n                ],\n                \"component\": [\n                    {\n                        \"code\": {\n                            \"coding\": [\n                                {\n                                    \"code\": \"9999-9\"\n                                }\n                            ]\n                        },\n                        \"valueCodeableConcept\": {\n                            \"coding\": [\n                                {\n                                    \"system\": \"local\",\n                                    \"code\": \"at0013\",\n                                    \"display\": \"Naked\"\n                                }\n                            ],\n                            \"text\": \"Naked\"\n                        }\n                    }\n                ]\n            }\n        },\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"weight\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"29463-7\"\n                        }\n                    ]\n                },\n                \"effectiveDateTime\": \"2022-02-05T04:05:06+00:00\",\n                \"valueQuantity\": {\n                    \"value\": 503.0,\n                    \"unit\": \"mm\"\n                },\n                \"note\": [\n                    {\n                        \"text\": \"body_weightLorem ipsum2\"\n                    }\n                ],\n                \"component\": [\n                    {\n                        \"code\": {\n                            \"coding\": [\n                                {\n                                    \"code\": \"9999-9\"\n                                }\n                            ]\n                        },\n                        \"valueCodeableConcept\": {\n                            \"coding\": [\n                                {\n                                    \"system\": \"local\",\n                                    \"code\": \"at0013\",\n                                    \"display\": \"Naked\"\n                                }\n                            ],\n                            \"text\": \"Naked\"\n                        }\n                    }\n                ]\n            }\n        },\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"weight\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"29463-7\"\n                        }\n                    ]\n                },\n                \"effectiveDateTime\": \"2022-02-03T04:05:06+00:00\",\n                \"valueQuantity\": {\n                    \"value\": 501.0,\n                    \"unit\": \"kg\"\n                },\n                \"note\": [\n                    {\n                        \"text\": \"body_weightLorem ipsum0\"\n                    }\n                ],\n                \"component\": [\n                    {\n                        \"code\": {\n                            \"coding\": [\n                                {\n                                    \"code\": \"9999-9\"\n                                }\n                            ]\n                        },\n                        \"valueCodeableConcept\": {\n                            \"coding\": [\n                                {\n                                    \"system\": \"local\",\n                                    \"code\": \"at0013\",\n                                    \"display\": \"Naked\"\n                                }\n                            ],\n                            \"text\": \"Naked\"\n                        }\n                    }\n                ]\n            }\n        },\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"height\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"8302-2\"\n                        }\n                    ]\n                },\n                \"valueQuantity\": {\n                    \"value\": 500.0,\n                    \"unit\": \"cm\"\n                }\n            }\n        },\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"height\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"8302-2\"\n                        }\n                    ]\n                },\n                \"valueQuantity\": {\n                    \"value\": 500.0,\n                    \"unit\": \"cm\"\n                }\n            }\n        },\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"height\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"8302-2\"\n                        }\n                    ]\n                },\n                \"valueQuantity\": {\n                    \"value\": 500.0,\n                    \"unit\": \"cm\"\n                }\n            }\n        },\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"bmi\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"39156-5\"\n                        }\n                    ]\n                },\n                \"effectiveDateTime\": \"2022-02-03T04:05:06+00:00\",\n                \"valueQuantity\": {\n                    \"value\": 500.0,\n                    \"unit\": \"kg/m2\"\n                }\n            }\n        },\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"bmi\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"39156-5\"\n                        }\n                    ]\n                },\n                \"effectiveDateTime\": \"2022-02-03T04:05:06+00:00\",\n                \"valueQuantity\": {\n                    \"value\": 500.0,\n                    \"unit\": \"kg/m2\"\n                }\n            }\n        },\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"bmi\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"39156-5\"\n                        }\n                    ]\n                },\n                \"effectiveDateTime\": \"2022-02-03T04:05:06+00:00\",\n                \"valueQuantity\": {\n                    \"value\": 500.0,\n                    \"unit\": \"kg/m2\"\n                }\n            }\n        },\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"status\": \"final\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"head_circumference\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"8287-5\"\n                        }\n                    ]\n                },\n                \"effectiveDateTime\": \"2023-02-05T04:05:06+00:00\",\n                \"valueQuantity\": {\n                    \"value\": 52.0,\n                    \"unit\": \"m\"\n                }\n            }\n        },\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"status\": \"final\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"head_circumference\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"8287-5\"\n                        }\n                    ]\n                },\n                \"effectiveDateTime\": \"2023-02-04T04:05:06+00:00\",\n                \"valueQuantity\": {\n                    \"value\": 51.0,\n                    \"unit\": \"mm\"\n                }\n            }\n        },\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"status\": \"final\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"head_circumference\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"8287-5\"\n                        }\n                    ]\n                },\n                \"effectiveDateTime\": \"2023-02-03T04:05:06+00:00\",\n                \"valueQuantity\": {\n                    \"value\": 50.0,\n                    \"unit\": \"cm\"\n                }\n            }\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://sandbox.open-fhir.com/openfhir/toopenehr?flat=true","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{openfhir_user}}"},{"key":"password","value":"{{openfhir_user}}"}]},"isInherited":true,"source":{"_postman_id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","name":"openFHIR Tutorial","type":"collection"}},"urlObject":{"protocol":"https","path":["openfhir","toopenehr"],"host":["sandbox","open-fhir","com"],"query":[{"key":"flat","value":"true"}],"variable":[]}},"response":[],"_postman_id":"52d7373d-13f9-4325-a0e0-bb865f7bf4d4"},{"name":"Add inline terminology to state of dress mapping","event":[{"listen":"test","script":{"id":"265a0bc1-2078-45d2-8227-1e3af5ea2f06","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"2c4c50f9-ae03-4773-bba8-5bbebdde9b58","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"grammar: FHIRConnect/v0.0.1\ntype: model\nmetadata:\n  name: \"OBSERVATION.body_weight.v2\"\n  version: 0.0.1a # version of this particular mapping\nspec: # schema specific to the FHIRConnect v0.0.1 engine\n  system: FHIR\n  version: R4\n  openEhrConfig:\n    archetype: \"openEHR-EHR-OBSERVATION.body_weight.v2\"\n  fhirConfig:\n    structureDefinition: http://hl7.org/fhir/StructureDefinition/Observation\n\npreprocessor:\n  hierarchy:\n    with:\n      fhir: \"$resource\"\n      openehr: \"$archetype/data[at0002]/events[at0003]\"\n    split:\n      fhir:\n        create: \"resource\"\n\n  fhirCondition:\n    targetRoot: \"$resource\"\n    targetAttribute: \"category.coding.code\"\n    operator: \"one of\"\n    criteria: \"weight\"\n\nmappings:\n\n  - name: \"weight\"\n    with:\n      fhir: \"$resource.value\"\n      openehr: \"$archetype/data[at0002]/events[at0003]/data[at0001]/items[at0004]\"\n\n  - name: \"category\"\n    with:\n      fhir: \"$resource.category.coding\"\n      openehr: \"$archetype\"\n    manual:\n      - name: \"weightCategory\"\n        fhir:\n          - path: \"code\"\n            value: \"weight\"\n\n  - name: \"time\"\n    with:\n      fhir: \"$resource.effective\"\n      openehr: \"$archetype/data[at0002]/events[at0003]/time\"\n\n  - name: \"code\"\n    unidirectional: \"openehr->fhir\"\n    with:\n      fhir: \"$resource.code.coding\"\n      openehr: \"$archetype\"\n    manual:\n      - name: \"code\"\n        fhir:\n          - path: \"code\"\n            value: \"29463-7\"\n\n  - name: \"comment\"\n    with:\n      fhir: \"$resource.note.text\"\n      openehr: \"$archetype/data[at0002]/events[at0003]/data[at0001]/items[at0024]\"\n      \n  - name: \"state of dress\"\n    with:\n      fhir: \"$resource.component\"\n      openehr: \"$archetype/data[at0002]/events[at0003]/state[at0008]\"\n    fhirCondition:\n      targetRoot: \"$resource.component\"\n      targetAttribute: \"code.coding.code\"\n      operator: \"one of\"\n      criteria: \"9999-9\"\n    terminology:\n      type: \"inline\"\n      mappings:\n        - openehr:\n            code: \"at0013\"\n            system: \"local\"\n          fhir:\n            code: \"fhirNakedIsh\"\n    followedBy:\n      mappings:\n        - name: \"value\"\n          with:\n            fhir: \"value\"\n            openehr: \"items[at0009]\"\n        - name: \"code\"\n          with:\n            fhir: \"$fhirRoot\"\n            openehr: \"$archetype\"\n          manual:\n            - name: \"code\"\n              fhir:\n                - path: \"code.coding.code\"\n                  value: \"9999-9\"","options":{"raw":{"language":"text"}}},"url":"https://sandbox.open-fhir.com/fc/model/{{weight_mapping_id}}","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{openfhir_user}}"},{"key":"password","value":"{{openfhir_user}}"}]},"isInherited":true,"source":{"_postman_id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","name":"openFHIR Tutorial","type":"collection"}},"urlObject":{"protocol":"https","path":["fc","model","{{weight_mapping_id}}"],"host":["sandbox","open-fhir","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"2c4c50f9-ae03-4773-bba8-5bbebdde9b58"},{"name":"openEHR flat to FHIR inline terminology","event":[{"listen":"test","script":{"exec":["const response = pm.response.json();","","// Test 1: Check if 'component' exists in the 'weight' entries","pm.test(\"Components with 'state of dress' are present in 'weight' entries\", function () {","    const entries = response.entry;","","    // Loop through each entry in the response","    entries.forEach(entry => {","        const resource = entry.resource;","","        // Check if the entry is labeled with 'weight'","        if (resource.category && resource.category.some(cat => cat.coding.some(c => c.code === \"weight\"))) {","            ","            // Assert that 'component' exists in this entry","            pm.expect(resource).to.have.property(\"component\");","","            // Check that the component contains the correct \"code\" for \"state of dress\"","            const component = resource.component.find(c => c.code.coding.some(cd => cd.code === \"9999-9\"));","            pm.expect(component).to.not.be.undefined;","            ","            // Check that the component has a 'valueCodeableConcept' with valid values","            pm.expect(component).to.have.property(\"valueCodeableConcept\");","","            const valueCodeableConcept = component.valueCodeableConcept;","            pm.expect(valueCodeableConcept).to.have.property(\"coding\");","            pm.expect(valueCodeableConcept.coding).to.be.an(\"array\").that.is.not.empty;","","            const coding = valueCodeableConcept.coding[0];","            pm.expect(coding).to.have.property(\"code\").that.equals(\"fhirNakedIsh\");","","                    }","    });","});",""],"type":"text/javascript","packages":{},"requests":{},"id":"194b216e-f595-42d6-b290-f48b02c54214"}}],"id":"bf0673b2-c10d-4627-92a1-9133d76a6092","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"growth_chart/category|code\": \"433\",\n  \"growth_chart/category|value\": \"event\",\n  \"growth_chart/category|terminology\": \"openehr\",\n  \"growth_chart/context/start_time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/context/setting|terminology\": \"openehr\",\n  \"growth_chart/context/setting|code\": \"225\",\n  \"growth_chart/context/setting|value\": \"home\",\n  \"growth_chart/context/_end_time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/context/_health_care_facility|name\": \"DOE, John\",\n  \"growth_chart/body_weight/birth/weight|unit\": \"kg\",\n  \"growth_chart/body_weight/birth/weight|magnitude\": 500.0,\n  \"growth_chart/body_weight/birth/comment\": \"Lorem ipsum\",\n  \"growth_chart/body_weight/birth/state_of_dress|code\": \"at0013\",\n  \"growth_chart/body_weight/birth/state_of_dress|value\": \"Naked\",\n  \"growth_chart/body_weight/birth/state_of_dress|terminology\": \"local\",\n  \"growth_chart/body_weight/birth/confounding_factors:0\": \"Lorem ipsum\",\n  \"growth_chart/body_weight/birth/time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/body_weight/any_event:0/weight|magnitude\": 501.0,\n  \"growth_chart/body_weight/any_event:0/weight|unit\": \"kg\",\n  \"growth_chart/body_weight/any_event:0/comment\": \"body_weightLorem ipsum0\",\n  \"growth_chart/body_weight/any_event:0/state_of_dress|terminology\": \"local\",\n  \"growth_chart/body_weight/any_event:0/state_of_dress|value\": \"Naked\",\n  \"growth_chart/body_weight/any_event:0/state_of_dress|code\": \"at0013\",\n  \"growth_chart/body_weight/any_event:0/confounding_factors:0\": \"Lorem ipsum\",\n  \"growth_chart/body_weight/any_event:0/time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/body_weight/any_event:0/width\": \"PT42H\",\n  \"growth_chart/body_weight/any_event:0/math_function|terminology\": \"openehr\",\n  \"growth_chart/body_weight/any_event:0/math_function|code\": \"145\",\n  \"growth_chart/body_weight/any_event:0/math_function|value\": \"minimum\",\n  \"growth_chart/body_weight/any_event:1/weight|magnitude\": 502.0,\n  \"growth_chart/body_weight/any_event:1/weight|unit\": \"t\",\n  \"growth_chart/body_weight/any_event:1/comment\": \"body_weightLorem ipsum1\",\n  \"growth_chart/body_weight/any_event:1/state_of_dress|code\": \"at0013\",\n  \"growth_chart/body_weight/any_event:1/state_of_dress|terminology\": \"local\",\n  \"growth_chart/body_weight/any_event:1/state_of_dress|value\": \"Naked\",\n  \"growth_chart/body_weight/any_event:1/confounding_factors:0\": \"Lorem ipsum\",\n  \"growth_chart/body_weight/any_event:1/time\": \"2022-02-04T04:05:06\",\n  \"growth_chart/body_weight/any_event:2/weight|unit\": \"mm\",\n  \"growth_chart/body_weight/any_event:2/weight|magnitude\": 503.0,\n  \"growth_chart/body_weight/any_event:2/comment\": \"body_weightLorem ipsum2\",\n  \"growth_chart/body_weight/any_event:2/state_of_dress|code\": \"at0013\",\n  \"growth_chart/body_weight/any_event:2/state_of_dress|value\": \"Naked\",\n  \"growth_chart/body_weight/any_event:2/state_of_dress|terminology\": \"local\",\n  \"growth_chart/body_weight/any_event:2/confounding_factors:0\": \"Lorem ipsum\",\n  \"growth_chart/body_weight/any_event:2/time\": \"2022-02-05T04:05:06\",\n  \"growth_chart/body_weight/any_event:2/width\": \"PT42H\",\n  \"growth_chart/body_weight/any_event:2/math_function|terminology\": \"openehr\",\n  \"growth_chart/body_weight/any_event:2/math_function|code\": \"145\",\n  \"growth_chart/body_weight/any_event:2/math_function|value\": \"minimum\",\n  \"growth_chart/body_weight/language|code\": \"en\",\n  \"growth_chart/body_weight/language|terminology\": \"ISO_639-1\",\n  \"growth_chart/body_weight/encoding|code\": \"UTF-8\",\n  \"growth_chart/body_weight/encoding|terminology\": \"IANA_character-sets\",\n  \"growth_chart/body_weight/_work_flow_id|id\": \"121d020d-0639-3fc3-a3ed-21f2d72eee1f\",\n  \"growth_chart/body_weight/_work_flow_id|id_scheme\": \"scheme\",\n  \"growth_chart/body_weight/_work_flow_id|namespace\": \"unknown\",\n  \"growth_chart/body_weight/_work_flow_id|type\": \"ANY\",\n  \"growth_chart/body_weight/_guideline_id|id\": \"97063a6d-140c-3bbf-a25b-35ee3c0adeda\",\n  \"growth_chart/body_weight/_guideline_id|id_scheme\": \"scheme\",\n  \"growth_chart/body_weight/_guideline_id|namespace\": \"unknown\",\n  \"growth_chart/body_weight/_guideline_id|type\": \"ANY\",\n  \"growth_chart/height_length/birth/height_length|magnitude\": 500.0,\n  \"growth_chart/height_length/birth/height_length|unit\": \"cm\",\n  \"growth_chart/height_length/birth/comment\": \"Lorem ipsum\",\n  \"growth_chart/height_length/birth/position|code\": \"at0016\",\n  \"growth_chart/height_length/birth/position|value\": \"Standing\",\n  \"growth_chart/height_length/birth/position|terminology\": \"local\",\n  \"growth_chart/height_length/birth/confounding_factors\": \"Lorem ipsum\",\n  \"growth_chart/height_length/birth/time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/height_length/any_event:0/height_length|unit\": \"cm\",\n  \"growth_chart/height_length/any_event:0/height_length|magnitude\": 500.0,\n  \"growth_chart/height_length/any_event:0/comment\": \"height_lengthLorem ipsum0\",\n  \"growth_chart/height_length/any_event:0/position|terminology\": \"local\",\n  \"growth_chart/height_length/any_event:0/position|code\": \"at0016\",\n  \"growth_chart/height_length/any_event:0/position|value\": \"Standing\",\n  \"growth_chart/height_length/any_event:0/confounding_factors\": \"Lorem ipsum\",\n  \"growth_chart/height_length/any_event:0/time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/height_length/any_event:0/width\": \"PT42H\",\n  \"growth_chart/height_length/any_event:0/math_function|value\": \"minimum\",\n  \"growth_chart/height_length/any_event:0/math_function|code\": \"145\",\n  \"growth_chart/height_length/any_event:0/math_function|terminology\": \"openehr\",\n  \"growth_chart/height_length/any_event:1/height_length|unit\": \"cm\",\n  \"growth_chart/height_length/any_event:1/height_length|magnitude\": 500.0,\n  \"growth_chart/height_length/any_event:1/comment\": \"height_lengthLorem ipsum1\",\n  \"growth_chart/height_length/any_event:1/position|terminology\": \"local\",\n  \"growth_chart/height_length/any_event:1/position|value\": \"Standing\",\n  \"growth_chart/height_length/any_event:1/position|code\": \"at0016\",\n  \"growth_chart/height_length/any_event:1/confounding_factors\": \"Lorem ipsum\",\n  \"growth_chart/height_length/any_event:1/time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/height_length/any_event:2/height_length|magnitude\": 500.0,\n  \"growth_chart/height_length/any_event:2/height_length|unit\": \"cm\",\n  \"growth_chart/height_length/any_event:2/comment\": \"height_lengthLorem ipsum2\",\n  \"growth_chart/height_length/any_event:2/position|code\": \"at0016\",\n  \"growth_chart/height_length/any_event:2/position|value\": \"Standing\",\n  \"growth_chart/height_length/any_event:2/position|terminology\": \"local\",\n  \"growth_chart/height_length/any_event:2/confounding_factors\": \"Lorem ipsum\",\n  \"growth_chart/height_length/any_event:2/time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/height_length/any_event:2/width\": \"PT42H\",\n  \"growth_chart/height_length/any_event:2/math_function|terminology\": \"openehr\",\n  \"growth_chart/height_length/any_event:2/math_function|code\": \"145\",\n  \"growth_chart/height_length/any_event:2/math_function|value\": \"minimum\",\n  \"growth_chart/height_length/language|code\": \"en\",\n  \"growth_chart/height_length/language|terminology\": \"ISO_639-1\",\n  \"growth_chart/height_length/encoding|code\": \"UTF-8\",\n  \"growth_chart/height_length/encoding|terminology\": \"IANA_character-sets\",\n  \"growth_chart/height_length/_work_flow_id|id\": \"36c6d06e-cc47-306c-a5c4-66833ced9c2e\",\n  \"growth_chart/height_length/_work_flow_id|id_scheme\": \"scheme\",\n  \"growth_chart/height_length/_work_flow_id|namespace\": \"unknown\",\n  \"growth_chart/height_length/_work_flow_id|type\": \"ANY\",\n  \"growth_chart/height_length/_guideline_id|id\": \"48b61e73-9545-358b-b442-34db4c2ed3b9\",\n  \"growth_chart/height_length/_guideline_id|id_scheme\": \"scheme\",\n  \"growth_chart/height_length/_guideline_id|namespace\": \"unknown\",\n  \"growth_chart/height_length/_guideline_id|type\": \"ANY\",\n  \"growth_chart/body_mass_index/any_event:0/body_mass_index|magnitude\": 500.0,\n  \"growth_chart/body_mass_index/any_event:0/body_mass_index|unit\": \"kg/m2\",\n  \"growth_chart/body_mass_index/any_event:0/clinical_interpretation\": \"Lorem ipsum\",\n  \"growth_chart/body_mass_index/any_event:0/comment\": \"Lorem ipsum\",\n  \"growth_chart/body_mass_index/any_event:0/confounding_factors\": \"Lorem ipsum\",\n  \"growth_chart/body_mass_index/any_event:0/time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/body_mass_index/any_event:0/width\": \"PT42H\",\n  \"growth_chart/body_mass_index/any_event:0/math_function|terminology\": \"openehr\",\n  \"growth_chart/body_mass_index/any_event:0/math_function|value\": \"minimum\",\n  \"growth_chart/body_mass_index/any_event:0/math_function|code\": \"145\",\n  \"growth_chart/body_mass_index/any_event:1/body_mass_index|magnitude\": 500.0,\n  \"growth_chart/body_mass_index/any_event:1/body_mass_index|unit\": \"kg/m2\",\n  \"growth_chart/body_mass_index/any_event:1/clinical_interpretation\": \"Lorem ipsum\",\n  \"growth_chart/body_mass_index/any_event:1/comment\": \"Lorem ipsum\",\n  \"growth_chart/body_mass_index/any_event:1/confounding_factors\": \"Lorem ipsum\",\n  \"growth_chart/body_mass_index/any_event:1/time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/body_mass_index/any_event:2/body_mass_index|magnitude\": 500.0,\n  \"growth_chart/body_mass_index/any_event:2/body_mass_index|unit\": \"kg/m2\",\n  \"growth_chart/body_mass_index/any_event:2/clinical_interpretation\": \"Lorem ipsum\",\n  \"growth_chart/body_mass_index/any_event:2/comment\": \"Lorem ipsum\",\n  \"growth_chart/body_mass_index/any_event:2/confounding_factors\": \"Lorem ipsum\",\n  \"growth_chart/body_mass_index/any_event:2/time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/body_mass_index/any_event:2/width\": \"PT42H\",\n  \"growth_chart/body_mass_index/any_event:2/math_function|value\": \"minimum\",\n  \"growth_chart/body_mass_index/any_event:2/math_function|terminology\": \"openehr\",\n  \"growth_chart/body_mass_index/any_event:2/math_function|code\": \"145\",\n  \"growth_chart/body_mass_index/method|code\": \"at0007\",\n  \"growth_chart/body_mass_index/method|terminology\": \"local\",\n  \"growth_chart/body_mass_index/method|value\": \"Automatic entry\",\n  \"growth_chart/body_mass_index/formula\": \"Lorem ipsum\",\n  \"growth_chart/body_mass_index/language|code\": \"en\",\n  \"growth_chart/body_mass_index/language|terminology\": \"ISO_639-1\",\n  \"growth_chart/body_mass_index/encoding|terminology\": \"IANA_character-sets\",\n  \"growth_chart/body_mass_index/encoding|code\": \"UTF-8\",\n  \"growth_chart/body_mass_index/_work_flow_id|id\": \"ebd4c5ab-9ecb-3497-9452-7a30c56c1b81\",\n  \"growth_chart/body_mass_index/_work_flow_id|id_scheme\": \"scheme\",\n  \"growth_chart/body_mass_index/_work_flow_id|namespace\": \"unknown\",\n  \"growth_chart/body_mass_index/_work_flow_id|type\": \"ANY\",\n  \"growth_chart/body_mass_index/_guideline_id|id\": \"e007b8d5-6023-3236-a261-2d2aa42d6848\",\n  \"growth_chart/body_mass_index/_guideline_id|id_scheme\": \"scheme\",\n  \"growth_chart/body_mass_index/_guideline_id|namespace\": \"unknown\",\n  \"growth_chart/body_mass_index/_guideline_id|type\": \"ANY\",\n  \"growth_chart/head_circumference/birth/head_circumference|magnitude\": 50.0,\n  \"growth_chart/head_circumference/birth/head_circumference|unit\": \"cm\",\n  \"growth_chart/head_circumference/birth/comment\": \"Lorem ipsum\",\n  \"growth_chart/head_circumference/birth/confounding_factors:0\": \"Lorem ipsum\",\n  \"growth_chart/head_circumference/birth/time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/head_circumference/any_event:0/head_circumference|unit\": \"cm\",\n  \"growth_chart/head_circumference/any_event:0/head_circumference|magnitude\": 50.0,\n  \"growth_chart/head_circumference/any_event:0/comment\": \"Lorem ipsum\",\n  \"growth_chart/head_circumference/any_event:0/confounding_factors:0\": \"Lorem ipsum\",\n  \"growth_chart/head_circumference/any_event:0/time\": \"2023-02-03T04:05:06\",\n  \"growth_chart/head_circumference/any_event:0/width\": \"PT42H\",\n  \"growth_chart/head_circumference/any_event:0/math_function|terminology\": \"openehr\",\n  \"growth_chart/head_circumference/any_event:0/math_function|code\": \"145\",\n  \"growth_chart/head_circumference/any_event:0/math_function|value\": \"minimum\",\n  \"growth_chart/head_circumference/any_event:1/head_circumference|magnitude\": 51.0,\n  \"growth_chart/head_circumference/any_event:1/head_circumference|unit\": \"mm\",\n  \"growth_chart/head_circumference/any_event:1/comment\": \"Lorem ipsum\",\n  \"growth_chart/head_circumference/any_event:1/confounding_factors:0\": \"Lorem ipsum\",\n  \"growth_chart/head_circumference/any_event:1/time\": \"2023-02-04T04:05:06\",\n  \"growth_chart/head_circumference/any_event:2/head_circumference|magnitude\": 52.0,\n  \"growth_chart/head_circumference/any_event:2/head_circumference|unit\": \"m\",\n  \"growth_chart/head_circumference/any_event:2/comment\": \"Lorem ipsum\",\n  \"growth_chart/head_circumference/any_event:2/confounding_factors:0\": \"Lorem ipsum\",\n  \"growth_chart/head_circumference/any_event:2/time\": \"2023-02-05T04:05:06\",\n  \"growth_chart/head_circumference/any_event:2/width\": \"PT42H\",\n  \"growth_chart/head_circumference/any_event:2/math_function|value\": \"minimum\",\n  \"growth_chart/head_circumference/any_event:2/math_function|terminology\": \"openehr\",\n  \"growth_chart/head_circumference/any_event:2/math_function|code\": \"145\",\n  \"growth_chart/head_circumference/language|terminology\": \"ISO_639-1\",\n  \"growth_chart/head_circumference/language|code\": \"en\",\n  \"growth_chart/head_circumference/encoding|terminology\": \"IANA_character-sets\",\n  \"growth_chart/head_circumference/encoding|code\": \"UTF-8\",\n  \"growth_chart/head_circumference/_work_flow_id|id\": \"98dbdd7c-4454-3f75-b32a-7a6620c3de03\",\n  \"growth_chart/head_circumference/_work_flow_id|id_scheme\": \"scheme\",\n  \"growth_chart/head_circumference/_work_flow_id|namespace\": \"unknown\",\n  \"growth_chart/head_circumference/_work_flow_id|type\": \"ANY\",\n  \"growth_chart/head_circumference/_guideline_id|id\": \"d5ba712f-8f05-334e-a8cb-05f8f5807bf7\",\n  \"growth_chart/head_circumference/_guideline_id|id_scheme\": \"scheme\",\n  \"growth_chart/head_circumference/_guideline_id|namespace\": \"unknown\",\n  \"growth_chart/head_circumference/_guideline_id|type\": \"ANY\",\n  \"growth_chart/language|terminology\": \"ISO_639-1\",\n  \"growth_chart/language|code\": \"en\",\n  \"growth_chart/territory|terminology\": \"ISO_3166-1\",\n  \"growth_chart/territory|code\": \"DE\",\n  \"growth_chart/composer|name\": \"Max Mustermann\",\n  \"growth_chart/_uid\": \"b5e932dc-55cc-49d5-94de-c2420a3ec6ec::local.ehrbase.org::1\"\n}","options":{"raw":{"language":"json"}}},"url":"https://sandbox.open-fhir.com/openfhir/tofhir?templateId=Growth chart","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{openfhir_user}}"},{"key":"password","value":"{{openfhir_user}}"}]},"isInherited":true,"source":{"_postman_id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","name":"openFHIR Tutorial","type":"collection"}},"urlObject":{"protocol":"https","path":["openfhir","tofhir"],"host":["sandbox","open-fhir","com"],"query":[{"key":"templateId","value":"Growth chart"}],"variable":[]}},"response":[],"_postman_id":"bf0673b2-c10d-4627-92a1-9133d76a6092"},{"name":"FHIR to openEHR inline terminology","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","    const response = pm.response.json();","","pm.expect(response[\"growth_chart/body_weight/any_event:0/state_of_dress|code\"]).to.eq('at0013');","pm.expect(response[\"growth_chart/body_weight/any_event:0/state_of_dress|terminology\"]).to.eq('local');","});"],"type":"text/javascript","packages":{},"requests":{},"id":"6e81ad06-a841-4e57-9582-f8ccb73801c8"}}],"id":"91c8eafa-5b29-4485-8c39-171c9a629ce4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"resourceType\": \"Bundle\",\n    \"entry\": [\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"weight\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"29463-7\"\n                        }\n                    ]\n                },\n                \"effectiveDateTime\": \"2022-02-04T04:05:06+00:00\",\n                \"valueQuantity\": {\n                    \"value\": 502.0,\n                    \"unit\": \"t\"\n                },\n                \"note\": [\n                    {\n                        \"text\": \"body_weightLorem ipsum1\"\n                    }\n                ],\n                \"component\": [\n                    {\n                        \"code\": {\n                            \"coding\": [\n                                {\n                                    \"code\": \"9999-9\"\n                                }\n                            ]\n                        },\n                        \"valueCodeableConcept\": {\n                            \"coding\": [\n                                {\n                                    \"code\": \"fhirNakedIsh\"\n                                }\n                            ]\n                        }\n                    }\n                ]\n            }\n        },\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"weight\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"29463-7\"\n                        }\n                    ]\n                },\n                \"effectiveDateTime\": \"2022-02-05T04:05:06+00:00\",\n                \"valueQuantity\": {\n                    \"value\": 503.0,\n                    \"unit\": \"mm\"\n                },\n                \"note\": [\n                    {\n                        \"text\": \"body_weightLorem ipsum2\"\n                    }\n                ],\n                \"component\": [\n                    {\n                        \"code\": {\n                            \"coding\": [\n                                {\n                                    \"code\": \"9999-9\"\n                                }\n                            ]\n                        },\n                        \"valueCodeableConcept\": {\n                            \"coding\": [\n                                {\n                                    \"code\": \"fhirNakedIsh\"\n                                }\n                            ]\n                        }\n                    }\n                ]\n            }\n        },\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"weight\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"29463-7\"\n                        }\n                    ]\n                },\n                \"effectiveDateTime\": \"2022-02-03T04:05:06+00:00\",\n                \"valueQuantity\": {\n                    \"value\": 501.0,\n                    \"unit\": \"kg\"\n                },\n                \"note\": [\n                    {\n                        \"text\": \"body_weightLorem ipsum0\"\n                    }\n                ],\n                \"component\": [\n                    {\n                        \"code\": {\n                            \"coding\": [\n                                {\n                                    \"code\": \"9999-9\"\n                                }\n                            ]\n                        },\n                        \"valueCodeableConcept\": {\n                            \"coding\": [\n                                {\n                                    \"code\": \"fhirNakedIsh\"\n                                }\n                            ]\n                        }\n                    }\n                ]\n            }\n        },\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"height\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"8302-2\"\n                        }\n                    ]\n                },\n                \"valueQuantity\": {\n                    \"value\": 500.0,\n                    \"unit\": \"cm\"\n                }\n            }\n        },\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"height\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"8302-2\"\n                        }\n                    ]\n                },\n                \"valueQuantity\": {\n                    \"value\": 500.0,\n                    \"unit\": \"cm\"\n                }\n            }\n        },\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"height\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"8302-2\"\n                        }\n                    ]\n                },\n                \"valueQuantity\": {\n                    \"value\": 500.0,\n                    \"unit\": \"cm\"\n                }\n            }\n        },\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"bmi\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"39156-5\"\n                        }\n                    ]\n                },\n                \"effectiveDateTime\": \"2022-02-03T04:05:06+00:00\",\n                \"valueQuantity\": {\n                    \"value\": 500.0,\n                    \"unit\": \"kg/m2\"\n                }\n            }\n        },\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"bmi\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"39156-5\"\n                        }\n                    ]\n                },\n                \"effectiveDateTime\": \"2022-02-03T04:05:06+00:00\",\n                \"valueQuantity\": {\n                    \"value\": 500.0,\n                    \"unit\": \"kg/m2\"\n                }\n            }\n        },\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"bmi\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"39156-5\"\n                        }\n                    ]\n                },\n                \"effectiveDateTime\": \"2022-02-03T04:05:06+00:00\",\n                \"valueQuantity\": {\n                    \"value\": 500.0,\n                    \"unit\": \"kg/m2\"\n                }\n            }\n        },\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"status\": \"final\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"head_circumference\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"8287-5\"\n                        }\n                    ]\n                },\n                \"effectiveDateTime\": \"2023-02-05T04:05:06+00:00\",\n                \"valueQuantity\": {\n                    \"value\": 52.0,\n                    \"unit\": \"m\"\n                }\n            }\n        },\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"status\": \"final\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"head_circumference\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"8287-5\"\n                        }\n                    ]\n                },\n                \"effectiveDateTime\": \"2023-02-04T04:05:06+00:00\",\n                \"valueQuantity\": {\n                    \"value\": 51.0,\n                    \"unit\": \"mm\"\n                }\n            }\n        },\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"status\": \"final\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"head_circumference\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"8287-5\"\n                        }\n                    ]\n                },\n                \"effectiveDateTime\": \"2023-02-03T04:05:06+00:00\",\n                \"valueQuantity\": {\n                    \"value\": 50.0,\n                    \"unit\": \"cm\"\n                }\n            }\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://sandbox.open-fhir.com/openfhir/toopenehr?flat=true","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{openfhir_user}}"},{"key":"password","value":"{{openfhir_user}}"}]},"isInherited":true,"source":{"_postman_id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","name":"openFHIR Tutorial","type":"collection"}},"urlObject":{"protocol":"https","path":["openfhir","toopenehr"],"host":["sandbox","open-fhir","com"],"query":[{"key":"flat","value":"true"}],"variable":[]}},"response":[],"_postman_id":"91c8eafa-5b29-4485-8c39-171c9a629ce4"}],"id":"5a7d6220-05bb-495c-a699-966f31016db7","description":"<p>Empowering openFHIR with inline terminology resolution.</p>\n","_postman_id":"5a7d6220-05bb-495c-a699-966f31016db7","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{openfhir_user}}"},{"key":"password","value":"{{openfhir_user}}"}]},"isInherited":true,"source":{"_postman_id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","name":"openFHIR Tutorial","type":"collection"}}},{"name":"(4) Terminology With ConceptMap","item":[{"name":"Add ConceptMap","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","});"],"type":"text/javascript","packages":{},"requests":{},"id":"0333d0ac-41de-4e48-8785-58bd65655333"}}],"id":"bdb333be-70d5-4184-993b-d1a7b427b3cb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"resourceType\": \"ConceptMap\",\n  \"id\": \"e1a90f56-4773-44a6-8004-0ef178ce85a8\",\n  \"url\": \"http://open-fhir.com/DemoConceptmap\",\n  \"description\": \"A test mapping\",\n  \"group\": [\n    {\n      \"source\": \"local\",\n      \"target\": \"http://loinc.org\",\n      \"element\": [\n        {\n          \"code\": \"at0013\",\n          \"display\": \"Naked\",\n          \"target\": [\n            {\n              \"code\": \"9999-9\",\n              \"equivalence\": \"equivalent\"\n            }\n          ]\n        }\n      ],\n      \"unmapped\": {\n        \"mode\": \"fixed\",\n        \"code\": \"hardcodedcode-inloinc\"\n      }\n    },\n    {\n      \"source\": \"http://loinc.org\",\n      \"target\": \"local\",\n      \"element\": [\n        {\n          \"code\": \"9999-9\",\n          \"target\": [\n            {\n              \"code\": \"at0013\",\n              \"display\": \"Naked\",\n              \"equivalence\": \"equivalent\"\n            }\n          ]\n        }\n      ],\n      \"unmapped\": {\n        \"mode\": \"fixed\",\n        \"code\": \"at0013\"\n      }\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://sandbox.open-fhir.com/terminology/fhir/ConceptMap","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{openfhir_user}}"},{"key":"password","value":"{{openfhir_user}}"}]},"isInherited":true,"source":{"_postman_id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","name":"openFHIR Tutorial","type":"collection"}},"urlObject":{"protocol":"https","path":["terminology","fhir","ConceptMap"],"host":["sandbox","open-fhir","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"bdb333be-70d5-4184-993b-d1a7b427b3cb"},{"name":"Reference terminology within mapping","event":[{"listen":"test","script":{"id":"fe85102f-035f-4b2e-a137-6a6876bb4814","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"f95998b9-826a-40ce-8987-f45d4ac74055","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"grammar: FHIRConnect/v0.0.1\ntype: model\nmetadata:\n  name: \"OBSERVATION.body_weight.v2\"\n  version: 0.0.1a # version of this particular mapping\nspec: # schema specific to the FHIRConnect v0.0.1 engine\n  system: FHIR\n  version: R4\n  openEhrConfig:\n    archetype: \"openEHR-EHR-OBSERVATION.body_weight.v2\"\n  fhirConfig:\n    structureDefinition: http://hl7.org/fhir/StructureDefinition/Observation\n\npreprocessor:\n  hierarchy:\n    with:\n      fhir: \"$resource\"\n      openehr: \"$archetype/data[at0002]/events[at0003]\"\n    split:\n      fhir:\n        create: \"resource\"\n\n  fhirCondition:\n    targetRoot: \"$resource\"\n    targetAttribute: \"category.coding.code\"\n    operator: \"one of\"\n    criteria: \"weight\"\n\nmappings:\n\n  - name: \"weight\"\n    with:\n      fhir: \"$resource.value\"\n      openehr: \"$archetype/data[at0002]/events[at0003]/data[at0001]/items[at0004]\"\n\n  - name: \"category\"\n    with:\n      fhir: \"$resource.category.coding\"\n      openehr: \"$archetype\"\n    manual:\n      - name: \"weightCategory\"\n        fhir:\n          - path: \"code\"\n            value: \"weight\"\n\n  - name: \"time\"\n    with:\n      fhir: \"$resource.effective\"\n      openehr: \"$archetype/data[at0002]/events[at0003]/time\"\n\n  - name: \"code\"\n    unidirectional: \"openehr->fhir\"\n    with:\n      fhir: \"$resource.code.coding\"\n      openehr: \"$archetype\"\n    manual:\n      - name: \"code\"\n        fhir:\n          - path: \"code\"\n            value: \"29463-7\"\n\n  - name: \"comment\"\n    with:\n      fhir: \"$resource.note.text\"\n      openehr: \"$archetype/data[at0002]/events[at0003]/data[at0001]/items[at0024]\"\n      \n  - name: \"state of dress\"\n    with:\n      fhir: \"$resource.component\"\n      openehr: \"$archetype/data[at0002]/events[at0003]/state[at0008]\"\n    fhirCondition:\n      targetRoot: \"$resource.component\"\n      targetAttribute: \"code.coding.code\"\n      operator: \"one of\"\n      criteria: \"9999-9\"\n    terminology:\n      type: \"local\"\n      conceptmap: \"http://open-fhir.com/DemoConceptmap\"\n    followedBy:\n      mappings:\n        - name: \"value\"\n          with:\n            fhir: \"value\"\n            openehr: \"items[at0009]\"\n        - name: \"code\"\n          with:\n            fhir: \"$fhirRoot\"\n            openehr: \"$archetype\"\n          manual:\n            - name: \"code\"\n              fhir:\n                - path: \"code.coding.code\"\n                  value: \"9999-9\"","options":{"raw":{"language":"text"}}},"url":"https://sandbox.open-fhir.com/fc/model/{{weight_mapping_id}}","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{openfhir_user}}"},{"key":"password","value":"{{openfhir_user}}"}]},"isInherited":true,"source":{"_postman_id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","name":"openFHIR Tutorial","type":"collection"}},"urlObject":{"protocol":"https","path":["fc","model","{{weight_mapping_id}}"],"host":["sandbox","open-fhir","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"f95998b9-826a-40ce-8987-f45d4ac74055"},{"name":"openEHR flat to FHIR ConceptMap terminology","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","const response = pm.response.json();","","// Test 1: Check if 'component' exists in the 'weight' entries","pm.test(\"Components with 'state of dress' are present in 'weight' entries\", function () {","    const entries = response.entry;","","    // Loop through each entry in the response","    entries.forEach(entry => {","        const resource = entry.resource;","","        // Check if the entry is labeled with 'weight'","        if (resource.category && resource.category.some(cat => cat.coding.some(c => c.code === \"weight\"))) {","            ","            // Assert that 'component' exists in this entry","            pm.expect(resource).to.have.property(\"component\");","","            // Check that the component contains the correct \"code\" for \"state of dress\"","            const component = resource.component.find(c => c.code.coding.some(cd => cd.code === \"9999-9\"));","            pm.expect(component).to.not.be.undefined;","            ","            // Check that the component has a 'valueCodeableConcept' with valid values","            pm.expect(component).to.have.property(\"valueCodeableConcept\");","","            const valueCodeableConcept = component.valueCodeableConcept;","            pm.expect(valueCodeableConcept).to.have.property(\"coding\");","            pm.expect(valueCodeableConcept.coding).to.be.an(\"array\").that.is.not.empty;","","            const coding = valueCodeableConcept.coding[0];","            pm.expect(coding).to.have.property(\"system\").that.equals(\"http://loinc.org\");","            pm.expect(coding).to.have.property(\"code\").that.is.oneOf([\"9999-9\", \"hardcodedcode-inloinc\"]);","        }","    });","});",""],"type":"text/javascript","packages":{},"requests":{},"id":"5ebaafa6-4d7e-4e1b-99c6-9c86e458db50"}}],"id":"a84663c6-acdd-4a89-b1a4-37753dc183c3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"growth_chart/category|code\": \"433\",\n  \"growth_chart/category|value\": \"event\",\n  \"growth_chart/category|terminology\": \"openehr\",\n  \"growth_chart/context/start_time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/context/setting|terminology\": \"openehr\",\n  \"growth_chart/context/setting|code\": \"225\",\n  \"growth_chart/context/setting|value\": \"home\",\n  \"growth_chart/context/_end_time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/context/_health_care_facility|name\": \"DOE, John\",\n  \"growth_chart/body_weight/birth/weight|unit\": \"kg\",\n  \"growth_chart/body_weight/birth/weight|magnitude\": 500.0,\n  \"growth_chart/body_weight/birth/comment\": \"Lorem ipsum\",\n  \"growth_chart/body_weight/birth/state_of_dress|code\": \"at0013\",\n  \"growth_chart/body_weight/birth/state_of_dress|value\": \"Naked\",\n  \"growth_chart/body_weight/birth/state_of_dress|terminology\": \"local\",\n  \"growth_chart/body_weight/birth/confounding_factors:0\": \"Lorem ipsum\",\n  \"growth_chart/body_weight/birth/time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/body_weight/any_event:0/weight|magnitude\": 501.0,\n  \"growth_chart/body_weight/any_event:0/weight|unit\": \"kg\",\n  \"growth_chart/body_weight/any_event:0/comment\": \"body_weightLorem ipsum0\",\n  \"growth_chart/body_weight/any_event:0/state_of_dress|terminology\": \"local\",\n  \"growth_chart/body_weight/any_event:0/state_of_dress|value\": \"Naked\",\n  \"growth_chart/body_weight/any_event:0/state_of_dress|code\": \"at0014\",\n  \"growth_chart/body_weight/any_event:0/confounding_factors:0\": \"Lorem ipsum\",\n  \"growth_chart/body_weight/any_event:0/time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/body_weight/any_event:0/width\": \"PT42H\",\n  \"growth_chart/body_weight/any_event:0/math_function|terminology\": \"openehr\",\n  \"growth_chart/body_weight/any_event:0/math_function|code\": \"145\",\n  \"growth_chart/body_weight/any_event:0/math_function|value\": \"minimum\",\n  \"growth_chart/body_weight/any_event:1/weight|magnitude\": 502.0,\n  \"growth_chart/body_weight/any_event:1/weight|unit\": \"t\",\n  \"growth_chart/body_weight/any_event:1/comment\": \"body_weightLorem ipsum1\",\n  \"growth_chart/body_weight/any_event:1/state_of_dress|code\": \"at0013\",\n  \"growth_chart/body_weight/any_event:1/state_of_dress|terminology\": \"local\",\n  \"growth_chart/body_weight/any_event:1/state_of_dress|value\": \"Naked\",\n  \"growth_chart/body_weight/any_event:1/confounding_factors:0\": \"Lorem ipsum\",\n  \"growth_chart/body_weight/any_event:1/time\": \"2022-02-04T04:05:06\",\n  \"growth_chart/body_weight/any_event:2/weight|unit\": \"mm\",\n  \"growth_chart/body_weight/any_event:2/weight|magnitude\": 503.0,\n  \"growth_chart/body_weight/any_event:2/comment\": \"body_weightLorem ipsum2\",\n  \"growth_chart/body_weight/any_event:2/state_of_dress|code\": \"at0013\",\n  \"growth_chart/body_weight/any_event:2/state_of_dress|value\": \"Naked\",\n  \"growth_chart/body_weight/any_event:2/state_of_dress|terminology\": \"local\",\n  \"growth_chart/body_weight/any_event:2/confounding_factors:0\": \"Lorem ipsum\",\n  \"growth_chart/body_weight/any_event:2/time\": \"2022-02-05T04:05:06\",\n  \"growth_chart/body_weight/any_event:2/width\": \"PT42H\",\n  \"growth_chart/body_weight/any_event:2/math_function|terminology\": \"openehr\",\n  \"growth_chart/body_weight/any_event:2/math_function|code\": \"145\",\n  \"growth_chart/body_weight/any_event:2/math_function|value\": \"minimum\",\n  \"growth_chart/body_weight/language|code\": \"en\",\n  \"growth_chart/body_weight/language|terminology\": \"ISO_639-1\",\n  \"growth_chart/body_weight/encoding|code\": \"UTF-8\",\n  \"growth_chart/body_weight/encoding|terminology\": \"IANA_character-sets\",\n  \"growth_chart/body_weight/_work_flow_id|id\": \"121d020d-0639-3fc3-a3ed-21f2d72eee1f\",\n  \"growth_chart/body_weight/_work_flow_id|id_scheme\": \"scheme\",\n  \"growth_chart/body_weight/_work_flow_id|namespace\": \"unknown\",\n  \"growth_chart/body_weight/_work_flow_id|type\": \"ANY\",\n  \"growth_chart/body_weight/_guideline_id|id\": \"97063a6d-140c-3bbf-a25b-35ee3c0adeda\",\n  \"growth_chart/body_weight/_guideline_id|id_scheme\": \"scheme\",\n  \"growth_chart/body_weight/_guideline_id|namespace\": \"unknown\",\n  \"growth_chart/body_weight/_guideline_id|type\": \"ANY\",\n  \"growth_chart/height_length/birth/height_length|magnitude\": 500.0,\n  \"growth_chart/height_length/birth/height_length|unit\": \"cm\",\n  \"growth_chart/height_length/birth/comment\": \"Lorem ipsum\",\n  \"growth_chart/height_length/birth/position|code\": \"at0016\",\n  \"growth_chart/height_length/birth/position|value\": \"Standing\",\n  \"growth_chart/height_length/birth/position|terminology\": \"local\",\n  \"growth_chart/height_length/birth/confounding_factors\": \"Lorem ipsum\",\n  \"growth_chart/height_length/birth/time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/height_length/any_event:0/height_length|unit\": \"cm\",\n  \"growth_chart/height_length/any_event:0/height_length|magnitude\": 500.0,\n  \"growth_chart/height_length/any_event:0/comment\": \"height_lengthLorem ipsum0\",\n  \"growth_chart/height_length/any_event:0/position|terminology\": \"local\",\n  \"growth_chart/height_length/any_event:0/position|code\": \"at0016\",\n  \"growth_chart/height_length/any_event:0/position|value\": \"Standing\",\n  \"growth_chart/height_length/any_event:0/confounding_factors\": \"Lorem ipsum\",\n  \"growth_chart/height_length/any_event:0/time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/height_length/any_event:0/width\": \"PT42H\",\n  \"growth_chart/height_length/any_event:0/math_function|value\": \"minimum\",\n  \"growth_chart/height_length/any_event:0/math_function|code\": \"145\",\n  \"growth_chart/height_length/any_event:0/math_function|terminology\": \"openehr\",\n  \"growth_chart/height_length/any_event:1/height_length|unit\": \"cm\",\n  \"growth_chart/height_length/any_event:1/height_length|magnitude\": 500.0,\n  \"growth_chart/height_length/any_event:1/comment\": \"height_lengthLorem ipsum1\",\n  \"growth_chart/height_length/any_event:1/position|terminology\": \"local\",\n  \"growth_chart/height_length/any_event:1/position|value\": \"Standing\",\n  \"growth_chart/height_length/any_event:1/position|code\": \"at0016\",\n  \"growth_chart/height_length/any_event:1/confounding_factors\": \"Lorem ipsum\",\n  \"growth_chart/height_length/any_event:1/time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/height_length/any_event:2/height_length|magnitude\": 500.0,\n  \"growth_chart/height_length/any_event:2/height_length|unit\": \"cm\",\n  \"growth_chart/height_length/any_event:2/comment\": \"height_lengthLorem ipsum2\",\n  \"growth_chart/height_length/any_event:2/position|code\": \"at0016\",\n  \"growth_chart/height_length/any_event:2/position|value\": \"Standing\",\n  \"growth_chart/height_length/any_event:2/position|terminology\": \"local\",\n  \"growth_chart/height_length/any_event:2/confounding_factors\": \"Lorem ipsum\",\n  \"growth_chart/height_length/any_event:2/time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/height_length/any_event:2/width\": \"PT42H\",\n  \"growth_chart/height_length/any_event:2/math_function|terminology\": \"openehr\",\n  \"growth_chart/height_length/any_event:2/math_function|code\": \"145\",\n  \"growth_chart/height_length/any_event:2/math_function|value\": \"minimum\",\n  \"growth_chart/height_length/language|code\": \"en\",\n  \"growth_chart/height_length/language|terminology\": \"ISO_639-1\",\n  \"growth_chart/height_length/encoding|code\": \"UTF-8\",\n  \"growth_chart/height_length/encoding|terminology\": \"IANA_character-sets\",\n  \"growth_chart/height_length/_work_flow_id|id\": \"36c6d06e-cc47-306c-a5c4-66833ced9c2e\",\n  \"growth_chart/height_length/_work_flow_id|id_scheme\": \"scheme\",\n  \"growth_chart/height_length/_work_flow_id|namespace\": \"unknown\",\n  \"growth_chart/height_length/_work_flow_id|type\": \"ANY\",\n  \"growth_chart/height_length/_guideline_id|id\": \"48b61e73-9545-358b-b442-34db4c2ed3b9\",\n  \"growth_chart/height_length/_guideline_id|id_scheme\": \"scheme\",\n  \"growth_chart/height_length/_guideline_id|namespace\": \"unknown\",\n  \"growth_chart/height_length/_guideline_id|type\": \"ANY\",\n  \"growth_chart/body_mass_index/any_event:0/body_mass_index|magnitude\": 500.0,\n  \"growth_chart/body_mass_index/any_event:0/body_mass_index|unit\": \"kg/m2\",\n  \"growth_chart/body_mass_index/any_event:0/clinical_interpretation\": \"Lorem ipsum\",\n  \"growth_chart/body_mass_index/any_event:0/comment\": \"Lorem ipsum\",\n  \"growth_chart/body_mass_index/any_event:0/confounding_factors\": \"Lorem ipsum\",\n  \"growth_chart/body_mass_index/any_event:0/time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/body_mass_index/any_event:0/width\": \"PT42H\",\n  \"growth_chart/body_mass_index/any_event:0/math_function|terminology\": \"openehr\",\n  \"growth_chart/body_mass_index/any_event:0/math_function|value\": \"minimum\",\n  \"growth_chart/body_mass_index/any_event:0/math_function|code\": \"145\",\n  \"growth_chart/body_mass_index/any_event:1/body_mass_index|magnitude\": 500.0,\n  \"growth_chart/body_mass_index/any_event:1/body_mass_index|unit\": \"kg/m2\",\n  \"growth_chart/body_mass_index/any_event:1/clinical_interpretation\": \"Lorem ipsum\",\n  \"growth_chart/body_mass_index/any_event:1/comment\": \"Lorem ipsum\",\n  \"growth_chart/body_mass_index/any_event:1/confounding_factors\": \"Lorem ipsum\",\n  \"growth_chart/body_mass_index/any_event:1/time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/body_mass_index/any_event:2/body_mass_index|magnitude\": 500.0,\n  \"growth_chart/body_mass_index/any_event:2/body_mass_index|unit\": \"kg/m2\",\n  \"growth_chart/body_mass_index/any_event:2/clinical_interpretation\": \"Lorem ipsum\",\n  \"growth_chart/body_mass_index/any_event:2/comment\": \"Lorem ipsum\",\n  \"growth_chart/body_mass_index/any_event:2/confounding_factors\": \"Lorem ipsum\",\n  \"growth_chart/body_mass_index/any_event:2/time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/body_mass_index/any_event:2/width\": \"PT42H\",\n  \"growth_chart/body_mass_index/any_event:2/math_function|value\": \"minimum\",\n  \"growth_chart/body_mass_index/any_event:2/math_function|terminology\": \"openehr\",\n  \"growth_chart/body_mass_index/any_event:2/math_function|code\": \"145\",\n  \"growth_chart/body_mass_index/method|code\": \"at0007\",\n  \"growth_chart/body_mass_index/method|terminology\": \"local\",\n  \"growth_chart/body_mass_index/method|value\": \"Automatic entry\",\n  \"growth_chart/body_mass_index/formula\": \"Lorem ipsum\",\n  \"growth_chart/body_mass_index/language|code\": \"en\",\n  \"growth_chart/body_mass_index/language|terminology\": \"ISO_639-1\",\n  \"growth_chart/body_mass_index/encoding|terminology\": \"IANA_character-sets\",\n  \"growth_chart/body_mass_index/encoding|code\": \"UTF-8\",\n  \"growth_chart/body_mass_index/_work_flow_id|id\": \"ebd4c5ab-9ecb-3497-9452-7a30c56c1b81\",\n  \"growth_chart/body_mass_index/_work_flow_id|id_scheme\": \"scheme\",\n  \"growth_chart/body_mass_index/_work_flow_id|namespace\": \"unknown\",\n  \"growth_chart/body_mass_index/_work_flow_id|type\": \"ANY\",\n  \"growth_chart/body_mass_index/_guideline_id|id\": \"e007b8d5-6023-3236-a261-2d2aa42d6848\",\n  \"growth_chart/body_mass_index/_guideline_id|id_scheme\": \"scheme\",\n  \"growth_chart/body_mass_index/_guideline_id|namespace\": \"unknown\",\n  \"growth_chart/body_mass_index/_guideline_id|type\": \"ANY\",\n  \"growth_chart/head_circumference/birth/head_circumference|magnitude\": 50.0,\n  \"growth_chart/head_circumference/birth/head_circumference|unit\": \"cm\",\n  \"growth_chart/head_circumference/birth/comment\": \"Lorem ipsum\",\n  \"growth_chart/head_circumference/birth/confounding_factors:0\": \"Lorem ipsum\",\n  \"growth_chart/head_circumference/birth/time\": \"2022-02-03T04:05:06\",\n  \"growth_chart/head_circumference/any_event:0/head_circumference|unit\": \"cm\",\n  \"growth_chart/head_circumference/any_event:0/head_circumference|magnitude\": 50.0,\n  \"growth_chart/head_circumference/any_event:0/comment\": \"Lorem ipsum\",\n  \"growth_chart/head_circumference/any_event:0/confounding_factors:0\": \"Lorem ipsum\",\n  \"growth_chart/head_circumference/any_event:0/time\": \"2023-02-03T04:05:06\",\n  \"growth_chart/head_circumference/any_event:0/width\": \"PT42H\",\n  \"growth_chart/head_circumference/any_event:0/math_function|terminology\": \"openehr\",\n  \"growth_chart/head_circumference/any_event:0/math_function|code\": \"145\",\n  \"growth_chart/head_circumference/any_event:0/math_function|value\": \"minimum\",\n  \"growth_chart/head_circumference/any_event:1/head_circumference|magnitude\": 51.0,\n  \"growth_chart/head_circumference/any_event:1/head_circumference|unit\": \"mm\",\n  \"growth_chart/head_circumference/any_event:1/comment\": \"Lorem ipsum\",\n  \"growth_chart/head_circumference/any_event:1/confounding_factors:0\": \"Lorem ipsum\",\n  \"growth_chart/head_circumference/any_event:1/time\": \"2023-02-04T04:05:06\",\n  \"growth_chart/head_circumference/any_event:2/head_circumference|magnitude\": 52.0,\n  \"growth_chart/head_circumference/any_event:2/head_circumference|unit\": \"m\",\n  \"growth_chart/head_circumference/any_event:2/comment\": \"Lorem ipsum\",\n  \"growth_chart/head_circumference/any_event:2/confounding_factors:0\": \"Lorem ipsum\",\n  \"growth_chart/head_circumference/any_event:2/time\": \"2023-02-05T04:05:06\",\n  \"growth_chart/head_circumference/any_event:2/width\": \"PT42H\",\n  \"growth_chart/head_circumference/any_event:2/math_function|value\": \"minimum\",\n  \"growth_chart/head_circumference/any_event:2/math_function|terminology\": \"openehr\",\n  \"growth_chart/head_circumference/any_event:2/math_function|code\": \"145\",\n  \"growth_chart/head_circumference/language|terminology\": \"ISO_639-1\",\n  \"growth_chart/head_circumference/language|code\": \"en\",\n  \"growth_chart/head_circumference/encoding|terminology\": \"IANA_character-sets\",\n  \"growth_chart/head_circumference/encoding|code\": \"UTF-8\",\n  \"growth_chart/head_circumference/_work_flow_id|id\": \"98dbdd7c-4454-3f75-b32a-7a6620c3de03\",\n  \"growth_chart/head_circumference/_work_flow_id|id_scheme\": \"scheme\",\n  \"growth_chart/head_circumference/_work_flow_id|namespace\": \"unknown\",\n  \"growth_chart/head_circumference/_work_flow_id|type\": \"ANY\",\n  \"growth_chart/head_circumference/_guideline_id|id\": \"d5ba712f-8f05-334e-a8cb-05f8f5807bf7\",\n  \"growth_chart/head_circumference/_guideline_id|id_scheme\": \"scheme\",\n  \"growth_chart/head_circumference/_guideline_id|namespace\": \"unknown\",\n  \"growth_chart/head_circumference/_guideline_id|type\": \"ANY\",\n  \"growth_chart/language|terminology\": \"ISO_639-1\",\n  \"growth_chart/language|code\": \"en\",\n  \"growth_chart/territory|terminology\": \"ISO_3166-1\",\n  \"growth_chart/territory|code\": \"DE\",\n  \"growth_chart/composer|name\": \"Max Mustermann\",\n  \"growth_chart/_uid\": \"b5e932dc-55cc-49d5-94de-c2420a3ec6ec::local.ehrbase.org::1\"\n}","options":{"raw":{"language":"json"}}},"url":"https://sandbox.open-fhir.com/openfhir/tofhir?templateId=Growth chart","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{openfhir_user}}"},{"key":"password","value":"{{openfhir_user}}"}]},"isInherited":true,"source":{"_postman_id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","name":"openFHIR Tutorial","type":"collection"}},"urlObject":{"protocol":"https","path":["openfhir","tofhir"],"host":["sandbox","open-fhir","com"],"query":[{"key":"templateId","value":"Growth chart"}],"variable":[]}},"response":[],"_postman_id":"a84663c6-acdd-4a89-b1a4-37753dc183c3"},{"name":"FHIR to openEHR ConceptMap terminology","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","    const response = pm.response.json();","","pm.expect(response[\"growth_chart/body_weight/any_event:0/state_of_dress|code\"]).to.eq('at0013');","pm.expect(response[\"growth_chart/body_weight/any_event:0/state_of_dress|terminology\"]).to.eq('local');","});"],"type":"text/javascript","packages":{},"requests":{},"id":"97d0f1af-94e8-476f-9c5f-49669610b65c"}}],"id":"addab08f-d465-46b7-841b-cf066c5da0a1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"resourceType\": \"Bundle\",\n    \"entry\": [\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"weight\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"29463-7\"\n                        }\n                    ]\n                },\n                \"effectiveDateTime\": \"2022-02-04T04:05:06+00:00\",\n                \"valueQuantity\": {\n                    \"value\": 502.0,\n                    \"unit\": \"t\"\n                },\n                \"note\": [\n                    {\n                        \"text\": \"body_weightLorem ipsum1\"\n                    }\n                ],\n                \"component\": [\n                    {\n                        \"code\": {\n                            \"coding\": [\n                                {\n                                    \"code\": \"9999-9\"\n                                }\n                            ]\n                        },\n                        \"valueCodeableConcept\": {\n                            \"coding\": [\n                                {\n                                    \"system\": \"http://loinc.org\",\n                                    \"code\": \"9999-9\"\n                                }\n                            ]\n                        }\n                    }\n                ]\n            }\n        },\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"weight\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"29463-7\"\n                        }\n                    ]\n                },\n                \"effectiveDateTime\": \"2022-02-05T04:05:06+00:00\",\n                \"valueQuantity\": {\n                    \"value\": 503.0,\n                    \"unit\": \"mm\"\n                },\n                \"note\": [\n                    {\n                        \"text\": \"body_weightLorem ipsum2\"\n                    }\n                ],\n                \"component\": [\n                    {\n                        \"code\": {\n                            \"coding\": [\n                                {\n                                    \"code\": \"9999-9\"\n                                }\n                            ]\n                        },\n                        \"valueCodeableConcept\": {\n                            \"coding\": [\n                                {\n                                    \"system\": \"http://loinc.org\",\n                                    \"code\": \"9999-9\"\n                                }\n                            ]\n                        }\n                    }\n                ]\n            }\n        },\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"weight\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"29463-7\"\n                        }\n                    ]\n                },\n                \"effectiveDateTime\": \"2022-02-03T04:05:06+00:00\",\n                \"valueQuantity\": {\n                    \"value\": 501.0,\n                    \"unit\": \"kg\"\n                },\n                \"note\": [\n                    {\n                        \"text\": \"body_weightLorem ipsum0\"\n                    }\n                ],\n                \"component\": [\n                    {\n                        \"code\": {\n                            \"coding\": [\n                                {\n                                    \"code\": \"9999-9\"\n                                }\n                            ]\n                        },\n                        \"valueCodeableConcept\": {\n                            \"coding\": [\n                                {\n                                    \"system\": \"http://loinc.org\",\n                                    \"code\": \"hardcodedcode-inloinc\"\n                                }\n                            ]\n                        }\n                    }\n                ]\n            }\n        },\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"height\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"8302-2\"\n                        }\n                    ]\n                },\n                \"valueQuantity\": {\n                    \"value\": 500.0,\n                    \"unit\": \"cm\"\n                }\n            }\n        },\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"height\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"8302-2\"\n                        }\n                    ]\n                },\n                \"valueQuantity\": {\n                    \"value\": 500.0,\n                    \"unit\": \"cm\"\n                }\n            }\n        },\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"height\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"8302-2\"\n                        }\n                    ]\n                },\n                \"valueQuantity\": {\n                    \"value\": 500.0,\n                    \"unit\": \"cm\"\n                }\n            }\n        },\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"bmi\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"39156-5\"\n                        }\n                    ]\n                },\n                \"effectiveDateTime\": \"2022-02-03T04:05:06+00:00\",\n                \"valueQuantity\": {\n                    \"value\": 500.0,\n                    \"unit\": \"kg/m2\"\n                }\n            }\n        },\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"bmi\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"39156-5\"\n                        }\n                    ]\n                },\n                \"effectiveDateTime\": \"2022-02-03T04:05:06+00:00\",\n                \"valueQuantity\": {\n                    \"value\": 500.0,\n                    \"unit\": \"kg/m2\"\n                }\n            }\n        },\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"bmi\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"39156-5\"\n                        }\n                    ]\n                },\n                \"effectiveDateTime\": \"2022-02-03T04:05:06+00:00\",\n                \"valueQuantity\": {\n                    \"value\": 500.0,\n                    \"unit\": \"kg/m2\"\n                }\n            }\n        },\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"status\": \"final\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"head_circumference\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"8287-5\"\n                        }\n                    ]\n                },\n                \"effectiveDateTime\": \"2023-02-05T04:05:06+00:00\",\n                \"valueQuantity\": {\n                    \"value\": 52.0,\n                    \"unit\": \"m\"\n                }\n            }\n        },\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"status\": \"final\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"head_circumference\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"8287-5\"\n                        }\n                    ]\n                },\n                \"effectiveDateTime\": \"2023-02-04T04:05:06+00:00\",\n                \"valueQuantity\": {\n                    \"value\": 51.0,\n                    \"unit\": \"mm\"\n                }\n            }\n        },\n        {\n            \"resource\": {\n                \"resourceType\": \"Observation\",\n                \"status\": \"final\",\n                \"category\": [\n                    {\n                        \"coding\": [\n                            {\n                                \"code\": \"head_circumference\"\n                            }\n                        ]\n                    }\n                ],\n                \"code\": {\n                    \"coding\": [\n                        {\n                            \"code\": \"8287-5\"\n                        }\n                    ]\n                },\n                \"effectiveDateTime\": \"2023-02-03T04:05:06+00:00\",\n                \"valueQuantity\": {\n                    \"value\": 50.0,\n                    \"unit\": \"cm\"\n                }\n            }\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://sandbox.open-fhir.com/openfhir/toopenehr?flat=true","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{openfhir_user}}"},{"key":"password","value":"{{openfhir_user}}"}]},"isInherited":true,"source":{"_postman_id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","name":"openFHIR Tutorial","type":"collection"}},"urlObject":{"protocol":"https","path":["openfhir","toopenehr"],"host":["sandbox","open-fhir","com"],"query":[{"key":"flat","value":"true"}],"variable":[]}},"response":[],"_postman_id":"addab08f-d465-46b7-841b-cf066c5da0a1"}],"id":"b018b64d-41cd-4c94-9301-36d2bb266b53","description":"<p>Integrating openFHIR with a FHIR Terminology Server</p>\n","_postman_id":"b018b64d-41cd-4c94-9301-36d2bb266b53","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{openfhir_user}}"},{"key":"password","value":"{{openfhir_user}}"}]},"isInherited":true,"source":{"_postman_id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","id":"d8080a45-f20d-43d1-851e-d5a5cd89f483","name":"openFHIR Tutorial","type":"collection"}}}],"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{openfhir_user}}"},{"key":"password","value":"{{openfhir_user}}"}]}},"event":[{"listen":"prerequest","script":{"type":"text/javascript","requests":{},"exec":[""],"id":"08ea1ebf-356f-4e98-97ef-405e59997fda"}},{"listen":"test","script":{"type":"text/javascript","requests":{},"exec":[""],"id":"c8b2cd9b-1db5-4072-b70c-2d0463309529"}}],"variable":[{"key":"baseUrl","value":"http://localhost:8080"},{"key":"localEhrBase","value":"http://localhost:8081"},{"key":"accountId","value":"","disabled":true},{"key":"owner","value":"","disabled":true},{"key":"tmpAccount1","value":"","disabled":true},{"key":"tmpAccount2","value":"","disabled":true},{"key":"host","value":""}]}