# Findings: "Transform openEHR to FHIR Questionnaire"

**URL:** https://discourse.openehr.org/t/findings-transform-openehr-to-fhir-questionnaire/614
**Category:** LinkEHR
**Created:** [27 April 2020 08:22 UTC](https://discourse.openehr.org/t/findings-transform-openehr-to-fhir-questionnaire/614 "2020-04-27T08:22:01Z")
**Posts on this page:** 10
**Page:** 2

<div class="post-metadata">

### Author: ![yampeku](https://discourse.openehr.org/user_avatar/discourse.openehr.org/yampeku/32/25_2.png) [@yampeku](https://discourse.openehr.org/u/yampeku)
#### Post date: [28 April 2020 21:12 UTC](https://discourse.openehr.org/t/findings-transform-openehr-to-fhir-questionnaire/614/21 "2020-04-28T21:12:33Z")

</div>

Fixed the problem 😀  
Will be corrected in next version

---

<div class="post-metadata">

### Author: ![yampeku](https://discourse.openehr.org/user_avatar/discourse.openehr.org/yampeku/32/25_2.png) [@yampeku](https://discourse.openehr.org/u/yampeku)
#### Post date: [11 May 2020 08:03 UTC](https://discourse.openehr.org/t/findings-transform-openehr-to-fhir-questionnaire/614/22 "2020-05-11T08:03:07Z")

</div>

Just released a new version including fixes to all the above issues 😁

---

<div class="post-metadata">

### Author: ![Kenneth\_Myhra](https://discourse.openehr.org/user_avatar/discourse.openehr.org/kenneth_myhra/32/322_2.png) [@Kenneth\_Myhra](https://discourse.openehr.org/u/Kenneth_Myhra)
#### Post date: [24 May 2020 19:05 UTC](https://discourse.openehr.org/t/findings-transform-openehr-to-fhir-questionnaire/614/23 "2020-05-24T19:05:24Z")

</div>

Thanks, liked the new features like choosing between text and string for DV\_TEXT!

Tried a new export and sorry to say still some issues. Using the same OTP I posted previously in the thread: [https://arketyper.no/ckm/templates/1078.60.876/opt](https://arketyper.no/ckm/templates/1078.60.876/opt)

I haven’t had time for a thorough scan of the generated Questionnaire, anyway listing some of my findings under.

This part is missing sub items which is in the OTP, there are also other parts of the Questionnaire which are missing sub items:

```auto
  <item>
     <linkId value="openEHR-EHR-SECTION.adhoc.v1:at0000"/>
     <text value="Inklusjon"/>
     <type value="group"/>
     <item>
        <linkId value="openEHR-EHR-ADMIN_ENTRY.episode_institution.v0:at0000"/>
        <text value="Omsorgsepisode - institusjon"/>
        <type value="group"/>
     </item>
     <item>
        <linkId value="openEHR-EHR-EVALUATION.problem_diagnosis.v1:at0000"/>
        <text value="Diagnose"/>
        <type value="group"/>
     </item>
  </item>

```

These items are missing the type attribute (could be the same is true elsewhere in the Questionnaire as well):

```auto
         <item>
            <linkId value="openEHR-EHR-OBSERVATION.exposure_assessment.v0:at0000"/>
            <text value="Spørreskjema for eksponering"/>
            <type value="group"/>
            <item>
               <linkId value="openEHR-EHR-OBSERVATION.exposure_assessment.v0:at0002"/>
               <text value="Siste 14 dager"/>
            </item>
            <item>
               <linkId value="openEHR-EHR-OBSERVATION.exposure_assessment.v0:at0002_1"/>
               <text value="På registreringstidspunktet"/>
            </item>
         </item>

```

---

<div class="post-metadata">

### Author: ![yampeku](https://discourse.openehr.org/user_avatar/discourse.openehr.org/yampeku/32/25_2.png) [@yampeku](https://discourse.openehr.org/u/yampeku)
#### Post date: [24 May 2020 21:02 UTC](https://discourse.openehr.org/t/findings-transform-openehr-to-fhir-questionnaire/614/24 "2020-05-24T21:02:10Z")

</div>

Thanks! will review it as soon as possible

---

<div class="post-metadata">

### Author: ![yampeku](https://discourse.openehr.org/user_avatar/discourse.openehr.org/yampeku/32/25_2.png) [@yampeku](https://discourse.openehr.org/u/yampeku)
#### Post date: [25 May 2020 07:36 UTC](https://discourse.openehr.org/t/findings-transform-openehr-to-fhir-questionnaire/614/25 "2020-05-25T07:36:03Z")

</div>

First one is easily fixable, I forgot to specify how ADMIN\_ENTRY must be traversed 🙈

edit: second one are objects under “name” attribute being generated, which probably shouldn’t (it already uses terminology part of the OPT to put the names in the questionnaire object)

---

<div class="post-metadata">

### Author: ![Kenneth\_Myhra](https://discourse.openehr.org/user_avatar/discourse.openehr.org/kenneth_myhra/32/322_2.png) [@Kenneth\_Myhra](https://discourse.openehr.org/u/Kenneth_Myhra)
#### Post date: [25 May 2020 12:49 UTC](https://discourse.openehr.org/t/findings-transform-openehr-to-fhir-questionnaire/614/26 "2020-05-25T12:49:44Z")

</div>

Does that mean both of them are easily fixable? 🙂

---

<div class="post-metadata">

### Author: ![yampeku](https://discourse.openehr.org/user_avatar/discourse.openehr.org/yampeku/32/25_2.png) [@yampeku](https://discourse.openehr.org/u/yampeku)
#### Post date: [25 May 2020 14:33 UTC](https://discourse.openehr.org/t/findings-transform-openehr-to-fhir-questionnaire/614/27 "2020-05-25T14:33:11Z")

</div>

Think so 😃

edit: Squashing the second one right now, pure EVENT classes were not considered yet

---

<div class="post-metadata">

### Author: ![yampeku](https://discourse.openehr.org/user_avatar/discourse.openehr.org/yampeku/32/25_2.png) [@yampeku](https://discourse.openehr.org/u/yampeku)
#### Post date: [28 May 2020 12:11 UTC](https://discourse.openehr.org/t/findings-transform-openehr-to-fhir-questionnaire/614/28 "2020-05-28T12:11:14Z")

</div>

Just released a new version solving these issues @Kenneth_Myhra  
In principle there are no more missing types as the number of type tags equals the linkid ones 🙂

---

<div class="post-metadata">

### Author: ![erik.sundvall](https://discourse.openehr.org/user_avatar/discourse.openehr.org/erik.sundvall/32/1961_2.png) [@erik.sundvall](https://discourse.openehr.org/u/erik.sundvall)
#### Post date: [29 September 2021 18:21 UTC](https://discourse.openehr.org/t/findings-transform-openehr-to-fhir-questionnaire/614/29 "2021-09-29T18:21:53Z")

</div>

> [@yampeku](#):
>
> I’ve put that under an uri such as “[Page not found](http://openehr.org/openEHR-EHR-OBSERVATION.laboratory_test_result.v1%E2%80%9D) in the past. In fact, this openehr base uri is also configurable

If we would later go by one of the URN suggestions in [DV\_EHR\_URI-related Issues - Specifications - Confluence (atlassian.net)](https://openehr.atlassian.net/wiki/spaces/spec/pages/786956289/DV+EHR+URI-related+Issues) and register the openehr URN, then that uri example could instead be `urn:openehr:archetype:openEHR-EHR-OBSERVATION.laboratory_test_result.v1`

**Context** : We are at Karolinska University hospital currently starting to look at two-way conversions between openEHR templates and FHIR Questionnaires for some use cases where we need to use some already available form services. We thus found this thread interesting. If anybody has done more in this area after the posts above, please share your experiences.

---

<div class="post-metadata">

### Author: ![Kevin\_Mayfield](https://discourse.openehr.org/user_avatar/discourse.openehr.org/kevin_mayfield/32/3056_2.png) [@Kevin\_Mayfield](https://discourse.openehr.org/u/Kevin_Mayfield)
#### Post date: [12 September 2023 09:03 UTC](https://discourse.openehr.org/t/findings-transform-openehr-to-fhir-questionnaire/614/30 "2023-09-12T09:03:47Z")

</div>

Link to a post I made on a similar topic

> [@openEHR and FHIR UKCore](https://discourse.openehr.org/t/openehr-and-fhir-ukcore/2564/17):
>
> It does appear that openEHR Templates (and Archetypes) and FHIR Questionnaires are very much related. Is some minor differences mostly around coding and Template context (openEHR examples I’ve found go for XDS document metadata and FHIR examples tends to follow HL7 v2 ADT Encounters … this may be lack of understanding of openEHR and it is all fine). Example conversion to FHIR Questionnaire from [Template: Vital signs [openEHR Clinical Knowledge Manager]](https://ckm.openehr.org/ckm/templates/1013.26.380) { "resourceType": "Questionnaire", "…

[Previous page](https://discourse.openehr.org/t/findings-transform-openehr-to-fhir-questionnaire/614.md?page=1)
