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

<OperationDefinition xmlns="http://hl7.org/fhir">
  <id value="anonymize"/>
  <text>
    <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: OperationDefinition anonymize</b></p><a name="anonymize"> </a><a name="hcanonymize"> </a><p>URL: [base]/$anonymize</p><h3>Parameters</h3><table class="grid"><tr><td><b>Use</b></td><td><b>Name</b></td><td><b>Scope</b></td><td><b>Cardinality</b></td><td><b>Type</b></td><td><b>Binding</b></td><td><b>Documentation</b></td></tr><tr><td>IN</td><td>identifiableDataFileUrls</td><td/><td>0..1</td><td><a href="http://hl7.org/fhir/R4/parameters.html">Parameters</a></td><td/><td><div><p>Urls of the Input Files represented as Parameters, with the type of Resource and the URL to the NDJSON data.</p>
</div></td></tr><tr><td>IN</td><td>identifiableData</td><td/><td>0..1</td><td><a href="http://hl7.org/fhir/R4/bundle.html">Bundle</a></td><td/><td><div><p>Bundle containing identifiable data for one or more patients.</p>
</div></td></tr><tr><td>OUT</td><td>anonymizedFileUrls</td><td/><td>0..*</td><td><a href="http://hl7.org/fhir/R4/parameters.html">Parameters</a></td><td/><td><div><p>Upon successful anonymization, the anonymized file Urls is returned back from the service.</p>
</div></td></tr><tr><td>OUT</td><td>anonymizedData</td><td/><td>0..1</td><td><a href="http://hl7.org/fhir/R4/bundle.html">Bundle</a></td><td/><td><div><p>Upon successful anonymization, the anonymized data is returned back from the service. This output would be returned when the input is a bundle only.</p>
</div></td></tr></table></div>
  </text>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
    <valueCode value="cgp"/>
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
    <valueInteger value="1">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom">
        <valueCanonical value="http://hl7.org/fhir/us/darts/ImplementationGuide/darts"/>
      </extension>
    </valueInteger>
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
    <valueCode value="trial-use">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom">
        <valueCanonical value="http://hl7.org/fhir/us/darts/ImplementationGuide/darts"/>
      </extension>
    </valueCode>
  </extension>
  <url value="http://hl7.org/fhir/us/darts/OperationDefinition/anonymize"/>
  <version value="0.1.0"/>
  <name value="Anonymize"/>
  <title value="Generate Anonymized data"/>
  <status value="draft"/>
  <kind value="operation"/>
  <date value="2026-03-27T21:48:56+10:00"/>
  <publisher value="HL7 International / Cross Group Projects"/>
  <contact>
    <telecom>
      <system value="url"/>
      <value value="http://www.hl7.org/Special/committees/cgp"/>
    </telecom>
  </contact>
  <description value="Generates anonymized data from identifiable data. The algorithm to be used for anonymization is left to the DARTS service provider. Errors during the execution of the operation can be returned as OperationOutcome per the FHIR spec as a return parameter."/>
  <jurisdiction>
    <coding>
      <system value="urn:iso:std:iso:3166"/>
      <code value="US"/>
    </coding>
  </jurisdiction>
  <code value="anonymize"/>
  <system value="true"/>
  <type value="false"/>
  <instance value="false"/>
  <parameter>
    <name value="identifiableDataFileUrls"/>
    <use value="in"/>
    <min value="0"/>
    <max value="1"/>
    <documentation value="Urls of the Input Files represented as Parameters, with the type of Resource and the URL to the NDJSON data."/>
    <type value="Parameters"/>
  </parameter>
  <parameter>
    <name value="identifiableData"/>
    <use value="in"/>
    <min value="0"/>
    <max value="1"/>
    <documentation value="Bundle containing identifiable data for one or more patients."/>
    <type value="Bundle"/>
  </parameter>
  <parameter>
    <name value="anonymizedFileUrls"/>
    <use value="out"/>
    <min value="0"/>
    <max value="*"/>
    <documentation value="Upon successful anonymization, the anonymized file Urls is returned back from the service."/>
    <type value="Parameters"/>
  </parameter>
  <parameter>
    <name value="anonymizedData"/>
    <use value="out"/>
    <min value="0"/>
    <max value="1"/>
    <documentation value="Upon successful anonymization, the anonymized data is returned back from the service. This output would be returned when the input is a bundle only."/>
    <type value="Bundle"/>
  </parameter>
</OperationDefinition>