Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CH-EMED-PMP: invalid text.reference in AnnotationComment #40

Closed
ziegm opened this issue May 31, 2022 · 1 comment
Closed

CH-EMED-PMP: invalid text.reference in AnnotationComment #40

ziegm opened this issue May 31, 2022 · 1 comment
Assignees

Comments

@ziegm
Copy link
Collaborator

ziegm commented May 31, 2022

Source MTP (Composition.section):

        "section": [
          {
            "title": "Plan de traitement médicamenteux",
            "code": {
              "coding": [
                {
                  "system": "http://loinc.org",
                  "code": "77604-7",
                  "display": "Medication treatment plan.brief"
                }
              ]
            },
            "text": {
              "status": "generated",
              "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p id=\"refpdf\">Temesta Expidet cpr orodisp 1 mg, 0-0-0-1, durant 3 jours, raison: pour dormir</p></div>"
            },
            "entry": [
              {
                "reference": "MedicationStatement/1-3-MedStatTemesta"
              }
            ]
          },
          {
            "title": "Commentaire",
            "code": {
              "coding": [
                {
                  "system": "http://loinc.org",
                  "code": "48767-8",
                  "display": "Annotation comment"
                }
              ]
            },
            "text": {
              "status": "generated",
              "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">si aucune amélioration au bout de 3 jours, reprendre contact avec le médecin</div>"
            }
          }
        ]

Transformed CDA:

     <component>
        <section>
          <templateId root="2.16.756.5.30.1.1.10.3.2"/>
          <id root="4137D4F8-E966-425B-B383-E4933A80C8CE"/>
          <code code="48767-8" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Annotation comment"/>
          <title>Commentaire</title>
          <text>si aucune amélioration au bout de 3 jours, reprendre contact avec le médecin</text>
          <entry>
            <act classCode="ACT" moodCode="EVN">
              <templateId root="2.16.756.5.30.1.1.10.4.2"/>
              <templateId root="2.16.840.1.113883.10.20.1.40"/>
              <templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.2"/>
              <code code="48767-8" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Annotation comment"/>
              <text>
                <reference value="#&lt;div xmlns="/>
              </text>
              <statusCode code="completed"/>
            </act>
          </entry>
        </section>
      </component>

Map BundleToCdaChEmed (Line 43)

@oliveregger
Copy link
Contributor

fixed transformation but section annotation comment might not be useful for mtp document used with pmp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants