<?xml version="1.0" encoding="UTF-8"?>

<CodeSystem xmlns="http://hl7.org/fhir">
  <id value="extraction-writeback-mode"/>
  <text>
    <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: CodeSystem extraction-writeback-mode</b></p><a name="extraction-writeback-mode"> </a><a name="hcextraction-writeback-mode"> </a><p>This case-sensitive code system <code>https://projo.evoleen.com/fhir/CodeSystem/extraction-writeback-mode</code> defines the following code:</p><table class="codes"><tr><td style="white-space:nowrap"><b>Code</b></td><td><b>Display</b></td><td><b>Definition</b></td></tr><tr><td style="white-space:nowrap">fill-if-empty<a name="extraction-writeback-mode-fill-if-empty"> </a></td><td>Fill if empty</td><td>Patch only fields that are absent on the target Patient.</td></tr></table></div>
  </text>
  <url value="https://projo.evoleen.com/fhir/CodeSystem/extraction-writeback-mode"/>
  <version value="0.1.0"/>
  <name value="ExtractionWritebackMode"/>
  <title value="Projo Extraction Writeback Mode"/>
  <status value="draft"/>
  <experimental value="true"/>
  <date value="2024-01-01"/>
  <publisher value="Projo"/>
  <contact>
    <name value="Projo"/>
    <telecom>
      <system value="url"/>
      <value value="https://projo.evoleen.com"/>
    </telecom>
  </contact>
  <description value="Mode codes for the extraction-writeback extension's `mode` sub-extension. Only `fill-if-empty` is supported — the JSON-Patch may only set fields that are currently absent on the target Patient. The leading `test` op on /meta/versionId also enforces optimistic concurrency."/>
  <jurisdiction>
    <coding>
      <system value="urn:iso:std:iso:3166"/>
      <code value="CH"/>
      <display value="Switzerland"/>
    </coding>
  </jurisdiction>
  <purpose value="Documentation-only artifact. Projo's runtime extensions, code systems, identifier systems and search parameter are TypeScript constants and bootstrap-time resources, NOT deployed StructureDefinitions. This StructureDefinition exists to document the contract; the source of truth is src/functions/src/lib/fhir/types.ts and docs/FHIR_EXTENSIONS.md."/>
  <copyright value="Copyright (c) Projo. Licensed under CC0-1.0 (public domain dedication). FHIR(R) is the registered trademark of HL7 and is used with permission. This IG references WhatsApp(R), a trademark of Meta Platforms, Inc., for descriptive purposes only."/>
  <caseSensitive value="true"/>
  <content value="complete"/>
  <count value="1"/>
  <concept>
    <code value="fill-if-empty"/>
    <display value="Fill if empty"/>
    <definition value="Patch only fields that are absent on the target Patient."/>
  </concept>
</CodeSystem>