Inera Core Implementation Guide
0.2.0 - ci-build Sweden

Inera Core Implementation Guide - Local Development build (v0.2.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

: ConceptMap GetCarePlan TKB to FHIR DocumentReference - XML Representation

Draft as of 2026-01-09

Raw xml | Download


<ConceptMap xmlns="http://hl7.org/fhir">
  <id value="ConceptMapGetCarePlanTKBToDocumentReference"/>
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: ConceptMap ConceptMapGetCarePlanTKBToDocumentReference</b></p><a name="ConceptMapGetCarePlanTKBToDocumentReference"> </a><a name="hcConceptMapGetCarePlanTKBToDocumentReference"> </a><p>Mapping from https://rivta.se/domains/clinicalprocess/logistics/logistics/GetCarePlansResponder/2 to <a href="http://hl7.org/fhir/R4/documentreference.html">DocumentReference</a></p><br/><p><b>Group 1 </b>Mapping from <code>https://rivta.se/domains/clinicalprocess/logistics/logistics/GetCarePlansResponder/2</code> to <a href="http://hl7.org/fhir/R4/bundle.html">Bundle</a></p><table class="grid"><tr><td><b>Source Code</b></td><td><b>Relationship</b></td><td><b>Target Code</b></td><td><b>Comment</b></td></tr><tr><td>patientId (Patient ID (personnummer/samordningsnummer/reservnummer))</td><td colspan="2" style="background-color: #efefef">(not mapped)</td><td style="background-color: #efefef">Query parameter: GET /DocumentReference?subject=Patient/191212121212&amp;type=care-plan</td></tr><tr><td>careUnitHSAId (Care unit HSA-ID filter)</td><td colspan="2" style="background-color: #efefef">(not mapped)</td><td style="background-color: #efefef">Query parameter: GET /DocumentReference?custodian=Organization/{hsaid}</td></tr><tr><td>datePeriod (Date period for document creation)</td><td colspan="2" style="background-color: #efefef">(not mapped)</td><td style="background-color: #efefef">Query parameter: GET /DocumentReference?date=ge2024-01-01&amp;date=le2024-12-31</td></tr><tr><td>sourceSystemHSAId</td><td colspan="2" style="background-color: #efefef">(not mapped)</td><td style="background-color: #efefef">Query parameter: GET /DocumentReference?custodian.identifier={hsaid}</td></tr><tr><td>careContactId (Care contact ID filter)</td><td colspan="2" style="background-color: #efefef">(not mapped)</td><td style="background-color: #efefef">Query parameter: GET /DocumentReference?context=Encounter/{careContactId}</td></tr></table><hr/><p><b>Group 2 </b>Mapping from <code>https://rivta.se/domains/clinicalprocess/logistics/logistics/GetCarePlansResponder/2</code> to <a href="http://hl7.org/fhir/R4/documentreference.html">DocumentReference</a></p><table class="grid"><tr><td><b>Source Code</b></td><td><b>Relationship</b></td><td><b>Target Code</b></td><td><b>Comment</b></td></tr><tr><td>carePlan.carePlanHeader.documentId (Document ID (care plan identifier))</td><td><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent" title="equivalent">is equivalent to</a></td><td>masterIdentifier</td><td>Unique identifier for the care plan document, stable across versions</td></tr><tr><td>carePlan.carePlanHeader.documentTitle (Document title (care plan heading))</td><td><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent" title="equivalent">is equivalent to</a></td><td>description</td><td>Descriptive title for the care plan (e.g., 'Samordnad vårdplanering', 'Rehabiliteringsplan')</td></tr><tr><td>carePlan.carePlanHeader.documentTime (Document creation time)</td><td><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent" title="equivalent">is equivalent to</a></td><td>date</td><td>When the care plan document was created</td></tr><tr><td>carePlan.carePlanHeader.patientId (Patient ID)</td><td><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent" title="equivalent">is equivalent to</a></td><td>subject</td><td>Reference to Patient resource with Swedish national identifier</td></tr><tr><td>carePlan.carePlanHeader.accountableHealthcareProfessional (Accountable healthcare professional (care plan author))</td><td><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent" title="equivalent">is equivalent to</a></td><td>author</td><td>Reference to PractitionerRole for the healthcare professional responsible for the care plan</td></tr><tr><td>carePlan.carePlanHeader.legalAuthenticator (Legal authenticator (signer))</td><td><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent" title="equivalent">is equivalent to</a></td><td>authenticator</td><td>Reference to Practitioner who signed the care plan document</td></tr><tr><td>carePlan.carePlanHeader.approvedForPatient (Approved for patient viewing (direktåtkomst))</td><td><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#relatedto" title="relatedto">is related to</a></td><td>securityLabel</td><td>If false, add security label to restrict patient portal access. Use SNOMED CT code or custom extension</td></tr><tr><td>carePlan.carePlanHeader.careContactId (Care contact ID (triggering encounter))</td><td><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent" title="equivalent">is equivalent to</a></td><td>context.encounter</td><td>Reference to Encounter that prompted the care plan creation</td></tr><tr><td>carePlan.carePlanHeader.sourceSystemHSAId (Source system HSA-ID)</td><td><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent" title="equivalent">is equivalent to</a></td><td>custodian</td><td>Reference to Organization (source system) that maintains the document</td></tr><tr><td>carePlan.carePlanBody.typeOfCarePlan (Type of care plan (SIP, VP, HP, RP, etc.))</td><td><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent" title="equivalent">is equivalent to</a></td><td>type</td><td>CodeableConcept for care plan type: SIP, SPLPTLRV, SPU, VP, HP, RP, GP, SVP. Use Swedish care plan terminology</td></tr><tr><td>carePlan.carePlanBody.content (Care plan content (document attachments))</td><td><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent" title="equivalent">is equivalent to</a></td><td>content</td><td>Array of attachments with content.attachment elements. Each TKB content maps to one FHIR content element</td></tr><tr><td>carePlan.carePlanBody.content.mediaType (Media type (MIME type))</td><td><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent" title="equivalent">is equivalent to</a></td><td>content.attachment.contentType</td><td>MIME type: text/plain, text/html, image/png, image/jpeg, image/tiff, application/pdf</td></tr><tr><td>carePlan.carePlanBody.content.value (Inline binary data (base64))</td><td><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent" title="equivalent">is equivalent to</a></td><td>content.attachment.data</td><td>Base64-encoded binary data. Use when content is embedded inline</td></tr><tr><td>carePlan.carePlanBody.content.reference (External reference (URL))</td><td><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent" title="equivalent">is equivalent to</a></td><td>content.attachment.url</td><td>URL to external binary file. Use when content is stored externally</td></tr><tr><td>carePlan.carePlanBody.participatingCareUnitHSAId (Participating care units (HSA-IDs))</td><td><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#relatedto" title="relatedto">is related to</a></td><td>context.related</td><td>Array of Organization references for participating care units. Use context.related or custom extension</td></tr><tr><td>carePlan.status (Document status (implicit from TKB))</td><td><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent" title="equivalent">is equivalent to</a></td><td>status</td><td>DocumentReference.status: current (if active), superseded (if replaced), entered-in-error (if nullified)</td></tr><tr><td>carePlan.category (Document category (care plan))</td><td><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent" title="equivalent">is equivalent to</a></td><td>category</td><td>Use LOINC code for care plan documents or Swedish care plan category codes</td></tr></table><hr/><p><b>Group 3 </b>Mapping from <code>https://rivta.se/domains/clinicalprocess/logistics/logistics/GetCarePlansResponder/2</code> to <a href="http://hl7.org/fhir/R4/provenance.html">Provenance</a></p><table class="grid"><tr><td><b>Source Code</b></td><td><b>Relationship</b></td><td><b>Target Code</b></td><td><b>Comment</b></td></tr><tr><td>carePlan.carePlanHeader.sourceSystemHSAId (Source system HSA-ID)</td><td><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent" title="equivalent">is equivalent to</a></td><td>entity.what</td><td>Provenance.entity.what references Device with HSA-ID. Provenance.entity.role = source</td></tr><tr><td>carePlan.carePlanHeader.accountableHealthcareProfessional.authorTime (Author time (registration time))</td><td><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent" title="equivalent">is equivalent to</a></td><td>recorded</td><td>When the care plan was documented/registered in the source system</td></tr><tr><td>carePlan.carePlanHeader.accountableHealthcareProfessional.healthcareProfessionalHSAId (Author HSA-ID)</td><td><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent" title="equivalent">is equivalent to</a></td><td>agent.who</td><td>Provenance.agent.who references PractitionerRole with type=author/documenter</td></tr><tr><td>carePlan.carePlanHeader.accountableHealthcareProfessional.healthcareProfessionalcareUnitHSAId (Author's care unit HSA-ID)</td><td><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent" title="equivalent">is equivalent to</a></td><td>agent.onBehalfOf</td><td>Provenance.agent.onBehalfOf references Organization (care unit)</td></tr><tr><td>carePlan.carePlanHeader.accountableHealthcareProfessional.healthcareProfessionalcareGiverHSAId (Care giver HSA-ID (vårdgivare))</td><td><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent" title="equivalent">is equivalent to</a></td><td>entity.what</td><td>Provenance.entity.what references Organization (care giver) for organizational hierarchy</td></tr><tr><td>carePlan.carePlanHeader.legalAuthenticator.signatureTime (Signature time)</td><td><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent" title="equivalent">is equivalent to</a></td><td>signature.when</td><td>When the care plan document was signed</td></tr><tr><td>carePlan.carePlanHeader.legalAuthenticator.legalAuthenticatorHSAId (Signer HSA-ID)</td><td><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent" title="equivalent">is equivalent to</a></td><td>signature.who</td><td>Provenance.signature.who references Practitioner who signed the document</td></tr></table><hr/><p><b>Group 4 </b>Mapping from <code>https://rivta.se/domains/clinicalprocess/logistics/logistics/GetCarePlansResponder/2</code> to <a href="http://hl7.org/fhir/R4/bundle.html">Bundle</a></p><table class="grid"><tr><td><b>Source Code</b></td><td><b>Relationship</b></td><td><b>Target Code</b></td><td><b>Comment</b></td></tr><tr><td>result.resultCode (Result code (OK, INFO, ERROR))</td><td colspan="2" style="background-color: #efefef">(not mapped)</td><td style="background-color: #efefef">Maps to Bundle.entry.response.status or OperationOutcome for errors</td></tr><tr><td>result.errorCode (Error code)</td><td colspan="2" style="background-color: #efefef">(not mapped)</td><td style="background-color: #efefef">Maps to OperationOutcome.issue.code when resultCode=ERROR</td></tr><tr><td>result.logId (Log ID (UUID for troubleshooting))</td><td colspan="2" style="background-color: #efefef">(not mapped)</td><td style="background-color: #efefef">UUID for error tracking. Can be included in OperationOutcome.issue.diagnostics</td></tr><tr><td>result.message (Result message)</td><td colspan="2" style="background-color: #efefef">(not mapped)</td><td style="background-color: #efefef">User-facing message. Maps to OperationOutcome.issue.diagnostics</td></tr><tr><td>result.subcode (Result subcode (not specified))</td><td colspan="2" style="background-color: #efefef">(not mapped)</td><td style="background-color: #efefef">No subcodes defined in this version. Reserved for future use</td></tr></table></div>
  </text>
  <url
       value="https://inera.se/fhir/core/ConceptMap/getcareplan-tkb-to-documentreference"/>
  <version value="0.2.0"/>
  <name value="ConceptMapGetCarePlanTKBToDocumentReference"/>
  <title value="ConceptMap GetCarePlan TKB to FHIR DocumentReference"/>
  <status value="draft"/>
  <experimental value="true"/>
  <date value="2026-01-09"/>
  <publisher value="Inera AB"/>
  <contact>
    <name value="Inera AB"/>
    <telecom>
      <system value="url"/>
      <value value="https://www.inera.se"/>
    </telecom>
    <telecom>
      <system value="email"/>
      <value value="info@inera.se"/>
    </telecom>
  </contact>
  <contact>
    <name value="Inera AB"/>
    <telecom>
      <system value="url"/>
      <value value="https://www.inera.se"/>
    </telecom>
    <telecom>
      <system value="email"/>
      <value value="info@inera.se"/>
    </telecom>
  </contact>
  <description
               value="Mapping from GetCarePlan v2.0 TKB service to FHIR DocumentReference and Provenance resources.

**TKB Service**: GetCarePlan v2.0  
**TKB Domain**: clinicalprocess:logistics:logistics v2
**Logical Model**: GetcareplansResponseLM
**FHIR Resources**: DocumentReference (primary), Provenance (metadata)

**Mapping Coverage**:
- ✅ Header metadata: 15+ elements (document ID, title, patient, author, signer, care contact)
- ✅ Document content: Multiple attachments with mediaType (text/plain, text/html, image/png, image/jpeg, image/tiff, application/pdf)
- ✅ Plan metadata: Type of care plan (SIP, SPLPTLRV, SPU, VP, HP, RP, GP, SVP), participating care units
- ✅ Access control: approvedForPatient flag for patient portal visibility

**Care Plan Types** (typeOfCarePlan):
- SIP - Samordnad individuell plan (Coordinated individual plan)
- SPLPTLRV - Samordnad plan enligt LPT eller LRV (Coordinated plan according to Mental Health Act)
- SPU - Samordnad plan vid utskrivning (Coordinated discharge plan)
- VP - Vårdplan (Care plan)
- HP - Habiliteringsplan (Habilitation plan)
- RP - Rehabiliteringsplan (Rehabilitation plan)
- GP - Genomförandeplan (Implementation plan)
- SVP - Standardiserad vårdplan (Standardized care plan)"/>
  <jurisdiction>
    <coding>
      <system value="urn:iso:std:iso:3166"/>
      <code value="SE"/>
      <display value="Sweden"/>
    </coding>
  </jurisdiction>
  <sourceUri
             value="https://rivta.se/domains/clinicalprocess/logistics/logistics/GetCarePlansResponder/2"/>
  <targetCanonical
                   value="http://hl7.org/fhir/StructureDefinition/DocumentReference"/>
  <group>
    <source
            value="https://rivta.se/domains/clinicalprocess/logistics/logistics/GetCarePlansResponder/2"/>
    <target value="http://hl7.org/fhir/StructureDefinition/Bundle"/>
    <element>
      <code value="patientId"/>
      <display
               value="Patient ID (personnummer/samordningsnummer/reservnummer)"/>
      <target>
        <equivalence value="unmatched"/>
        <comment
                 value="Query parameter: GET /DocumentReference?subject=Patient/191212121212&amp;type=care-plan"/>
      </target>
    </element>
    <element>
      <code value="careUnitHSAId"/>
      <display value="Care unit HSA-ID filter"/>
      <target>
        <equivalence value="unmatched"/>
        <comment
                 value="Query parameter: GET /DocumentReference?custodian=Organization/{hsaid}"/>
      </target>
    </element>
    <element>
      <code value="datePeriod"/>
      <display value="Date period for document creation"/>
      <target>
        <equivalence value="unmatched"/>
        <comment
                 value="Query parameter: GET /DocumentReference?date=ge2024-01-01&amp;date=le2024-12-31"/>
      </target>
    </element>
    <element>
      <code value="sourceSystemHSAId"/>
      <display value="Source system HSA-ID"/>
      <target>
        <equivalence value="unmatched"/>
        <comment
                 value="Query parameter: GET /DocumentReference?custodian.identifier={hsaid}"/>
      </target>
    </element>
    <element>
      <code value="careContactId"/>
      <display value="Care contact ID filter"/>
      <target>
        <equivalence value="unmatched"/>
        <comment
                 value="Query parameter: GET /DocumentReference?context=Encounter/{careContactId}"/>
      </target>
    </element>
  </group>
  <group>
    <source
            value="https://rivta.se/domains/clinicalprocess/logistics/logistics/GetCarePlansResponder/2"/>
    <target
            value="http://hl7.org/fhir/StructureDefinition/DocumentReference"/>
    <element>
      <code value="carePlan.carePlanHeader.documentId"/>
      <display value="Document ID (care plan identifier)"/>
      <target>
        <code value="masterIdentifier"/>
        <equivalence value="equivalent"/>
        <comment
                 value="Unique identifier for the care plan document, stable across versions"/>
      </target>
    </element>
    <element>
      <code value="carePlan.carePlanHeader.documentTitle"/>
      <display value="Document title (care plan heading)"/>
      <target>
        <code value="description"/>
        <equivalence value="equivalent"/>
        <comment
                 value="Descriptive title for the care plan (e.g., 'Samordnad vårdplanering', 'Rehabiliteringsplan')"/>
      </target>
    </element>
    <element>
      <code value="carePlan.carePlanHeader.documentTime"/>
      <display value="Document creation time"/>
      <target>
        <code value="date"/>
        <equivalence value="equivalent"/>
        <comment value="When the care plan document was created"/>
      </target>
    </element>
    <element>
      <code value="carePlan.carePlanHeader.patientId"/>
      <display value="Patient ID"/>
      <target>
        <code value="subject"/>
        <equivalence value="equivalent"/>
        <comment
                 value="Reference to Patient resource with Swedish national identifier"/>
      </target>
    </element>
    <element>
      <code
            value="carePlan.carePlanHeader.accountableHealthcareProfessional"/>
      <display
               value="Accountable healthcare professional (care plan author)"/>
      <target>
        <code value="author"/>
        <equivalence value="equivalent"/>
        <comment
                 value="Reference to PractitionerRole for the healthcare professional responsible for the care plan"/>
      </target>
    </element>
    <element>
      <code value="carePlan.carePlanHeader.legalAuthenticator"/>
      <display value="Legal authenticator (signer)"/>
      <target>
        <code value="authenticator"/>
        <equivalence value="equivalent"/>
        <comment
                 value="Reference to Practitioner who signed the care plan document"/>
      </target>
    </element>
    <element>
      <code value="carePlan.carePlanHeader.approvedForPatient"/>
      <display value="Approved for patient viewing (direktåtkomst)"/>
      <target>
        <code value="securityLabel"/>
        <equivalence value="relatedto"/>
        <comment
                 value="If false, add security label to restrict patient portal access. Use SNOMED CT code or custom extension"/>
      </target>
    </element>
    <element>
      <code value="carePlan.carePlanHeader.careContactId"/>
      <display value="Care contact ID (triggering encounter)"/>
      <target>
        <code value="context.encounter"/>
        <equivalence value="equivalent"/>
        <comment
                 value="Reference to Encounter that prompted the care plan creation"/>
      </target>
    </element>
    <element>
      <code value="carePlan.carePlanHeader.sourceSystemHSAId"/>
      <display value="Source system HSA-ID"/>
      <target>
        <code value="custodian"/>
        <equivalence value="equivalent"/>
        <comment
                 value="Reference to Organization (source system) that maintains the document"/>
      </target>
    </element>
    <element>
      <code value="carePlan.carePlanBody.typeOfCarePlan"/>
      <display value="Type of care plan (SIP, VP, HP, RP, etc.)"/>
      <target>
        <code value="type"/>
        <equivalence value="equivalent"/>
        <comment
                 value="CodeableConcept for care plan type: SIP, SPLPTLRV, SPU, VP, HP, RP, GP, SVP. Use Swedish care plan terminology"/>
      </target>
    </element>
    <element>
      <code value="carePlan.carePlanBody.content"/>
      <display value="Care plan content (document attachments)"/>
      <target>
        <code value="content"/>
        <equivalence value="equivalent"/>
        <comment
                 value="Array of attachments with content.attachment elements. Each TKB content maps to one FHIR content element"/>
      </target>
    </element>
    <element>
      <code value="carePlan.carePlanBody.content.mediaType"/>
      <display value="Media type (MIME type)"/>
      <target>
        <code value="content.attachment.contentType"/>
        <equivalence value="equivalent"/>
        <comment
                 value="MIME type: text/plain, text/html, image/png, image/jpeg, image/tiff, application/pdf"/>
      </target>
    </element>
    <element>
      <code value="carePlan.carePlanBody.content.value"/>
      <display value="Inline binary data (base64)"/>
      <target>
        <code value="content.attachment.data"/>
        <equivalence value="equivalent"/>
        <comment
                 value="Base64-encoded binary data. Use when content is embedded inline"/>
      </target>
    </element>
    <element>
      <code value="carePlan.carePlanBody.content.reference"/>
      <display value="External reference (URL)"/>
      <target>
        <code value="content.attachment.url"/>
        <equivalence value="equivalent"/>
        <comment
                 value="URL to external binary file. Use when content is stored externally"/>
      </target>
    </element>
    <element>
      <code value="carePlan.carePlanBody.participatingCareUnitHSAId"/>
      <display value="Participating care units (HSA-IDs)"/>
      <target>
        <code value="context.related"/>
        <equivalence value="relatedto"/>
        <comment
                 value="Array of Organization references for participating care units. Use context.related or custom extension"/>
      </target>
    </element>
    <element>
      <code value="carePlan.status"/>
      <display value="Document status (implicit from TKB)"/>
      <target>
        <code value="status"/>
        <equivalence value="equivalent"/>
        <comment
                 value="DocumentReference.status: current (if active), superseded (if replaced), entered-in-error (if nullified)"/>
      </target>
    </element>
    <element>
      <code value="carePlan.category"/>
      <display value="Document category (care plan)"/>
      <target>
        <code value="category"/>
        <equivalence value="equivalent"/>
        <comment
                 value="Use LOINC code for care plan documents or Swedish care plan category codes"/>
      </target>
    </element>
  </group>
  <group>
    <source
            value="https://rivta.se/domains/clinicalprocess/logistics/logistics/GetCarePlansResponder/2"/>
    <target value="http://hl7.org/fhir/StructureDefinition/Provenance"/>
    <element>
      <code value="carePlan.carePlanHeader.sourceSystemHSAId"/>
      <display value="Source system HSA-ID"/>
      <target>
        <code value="entity.what"/>
        <equivalence value="equivalent"/>
        <comment
                 value="Provenance.entity.what references Device with HSA-ID. Provenance.entity.role = source"/>
      </target>
    </element>
    <element>
      <code
            value="carePlan.carePlanHeader.accountableHealthcareProfessional.authorTime"/>
      <display value="Author time (registration time)"/>
      <target>
        <code value="recorded"/>
        <equivalence value="equivalent"/>
        <comment
                 value="When the care plan was documented/registered in the source system"/>
      </target>
    </element>
    <element>
      <code
            value="carePlan.carePlanHeader.accountableHealthcareProfessional.healthcareProfessionalHSAId"/>
      <display value="Author HSA-ID"/>
      <target>
        <code value="agent.who"/>
        <equivalence value="equivalent"/>
        <comment
                 value="Provenance.agent.who references PractitionerRole with type=author/documenter"/>
      </target>
    </element>
    <element>
      <code
            value="carePlan.carePlanHeader.accountableHealthcareProfessional.healthcareProfessionalcareUnitHSAId"/>
      <display value="Author's care unit HSA-ID"/>
      <target>
        <code value="agent.onBehalfOf"/>
        <equivalence value="equivalent"/>
        <comment
                 value="Provenance.agent.onBehalfOf references Organization (care unit)"/>
      </target>
    </element>
    <element>
      <code
            value="carePlan.carePlanHeader.accountableHealthcareProfessional.healthcareProfessionalcareGiverHSAId"/>
      <display value="Care giver HSA-ID (vårdgivare)"/>
      <target>
        <code value="entity.what"/>
        <equivalence value="equivalent"/>
        <comment
                 value="Provenance.entity.what references Organization (care giver) for organizational hierarchy"/>
      </target>
    </element>
    <element>
      <code value="carePlan.carePlanHeader.legalAuthenticator.signatureTime"/>
      <display value="Signature time"/>
      <target>
        <code value="signature.when"/>
        <equivalence value="equivalent"/>
        <comment value="When the care plan document was signed"/>
      </target>
    </element>
    <element>
      <code
            value="carePlan.carePlanHeader.legalAuthenticator.legalAuthenticatorHSAId"/>
      <display value="Signer HSA-ID"/>
      <target>
        <code value="signature.who"/>
        <equivalence value="equivalent"/>
        <comment
                 value="Provenance.signature.who references Practitioner who signed the document"/>
      </target>
    </element>
  </group>
  <group>
    <source
            value="https://rivta.se/domains/clinicalprocess/logistics/logistics/GetCarePlansResponder/2"/>
    <target value="http://hl7.org/fhir/StructureDefinition/Bundle"/>
    <element>
      <code value="result.resultCode"/>
      <display value="Result code (OK, INFO, ERROR)"/>
      <target>
        <equivalence value="unmatched"/>
        <comment
                 value="Maps to Bundle.entry.response.status or OperationOutcome for errors"/>
      </target>
    </element>
    <element>
      <code value="result.errorCode"/>
      <display value="Error code"/>
      <target>
        <equivalence value="unmatched"/>
        <comment
                 value="Maps to OperationOutcome.issue.code when resultCode=ERROR"/>
      </target>
    </element>
    <element>
      <code value="result.logId"/>
      <display value="Log ID (UUID for troubleshooting)"/>
      <target>
        <equivalence value="unmatched"/>
        <comment
                 value="UUID for error tracking. Can be included in OperationOutcome.issue.diagnostics"/>
      </target>
    </element>
    <element>
      <code value="result.message"/>
      <display value="Result message"/>
      <target>
        <equivalence value="unmatched"/>
        <comment
                 value="User-facing message. Maps to OperationOutcome.issue.diagnostics"/>
      </target>
    </element>
    <element>
      <code value="result.subcode"/>
      <display value="Result subcode (not specified)"/>
      <target>
        <equivalence value="unmatched"/>
        <comment
                 value="No subcodes defined in this version. Reserved for future use"/>
      </target>
    </element>
  </group>
</ConceptMap>