{
  "resourceType" : "OperationDefinition",
  "id" : "SecondaryUseExportOperation",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Gegenereerde narrative: OperationDefinition SecondaryUseExportOperation</b></p><a name=\"SecondaryUseExportOperation\"> </a><a name=\"hcSecondaryUseExportOperation\"> </a><p>Url: [base]/$export</p><h3>Parameters</h3><table class=\"grid\"><tr><td><b>Gebruik</b></td><td><b>Naam</b></td><td><b>Scope</b></td><td><b>Kardinaliteit</b></td><td><b>Type</b></td><td><b>Binding</b></td><td><b>Documentatie</b></td></tr><tr><td>IN</td><td>_type</td><td/><td>0..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#string\">string</a></td><td/><td><div><p>Comma-separated output resource types. Defaults to Patient, Condition, AllergyIntolerance, MedicationRequest, MedicationStatement, Observation, Procedure, and Provenance.</p>\n</div></td></tr><tr><td>IN</td><td>mode</td><td/><td>0..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#code\">code</a></td><td/><td><div><p>Adapter-only privacy mode. Supported values are pseudonymized and minimized. Defaults to pseudonymized.</p>\n</div></td></tr><tr><td>IN</td><td>condition-code</td><td/><td>0..*</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#code\">code</a></td><td/><td><div><p>SNOMED CT condition code filter. Multiple comma-separated or repeated values are ORed inside this family.</p>\n</div></td></tr><tr><td>IN</td><td>medication-code</td><td/><td>0..*</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#code\">code</a></td><td/><td><div><p>SNOMED CT medication code filter over MedicationRequest and MedicationStatement.</p>\n</div></td></tr><tr><td>IN</td><td>procedure-code</td><td/><td>0..*</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#code\">code</a></td><td/><td><div><p>SNOMED CT procedure code filter.</p>\n</div></td></tr><tr><td>IN</td><td>observation-code</td><td/><td>0..*</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#code\">code</a></td><td/><td><div><p>Observation code filter, for example fecal calprotectin or laboratory observation codes.</p>\n</div></td></tr><tr><td>IN</td><td>gender</td><td/><td>0..*</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#code\">code</a></td><td/><td><div><p>Patient.gender filter.</p>\n</div></td></tr><tr><td>IN</td><td>birthdate</td><td/><td>0..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#date\">date</a></td><td/><td><div><p>Exact Patient.birthDate filter. The runtime also accepts birthdate-ge and birthdate-le range parameters.</p>\n</div></td></tr><tr><td>IN</td><td>date</td><td/><td>0..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#date\">date</a></td><td/><td><div><p>Exact clinical date filter. The runtime also accepts date-ge and date-le range parameters across supported clinical resource date fields.</p>\n</div></td></tr></table></div>"
  },
  "url" : "https://fhir.cumuluz.org/OperationDefinition/secondary-use-export",
  "version" : "0.1.0",
  "name" : "SecondaryUseExport",
  "title" : "Secondary Use Bulk-Shaped Export",
  "status" : "draft",
  "kind" : "operation",
  "date" : "2026-07-01T09:38:56+02:00",
  "publisher" : "Cumuluz",
  "description" : "System-level export operation implemented by the mock FHIR server and Bulk privacy adapter. The operation follows the Bulk Data polling and NDJSON shape while adding local prototype query parameters for cohort selection and privacy mode.",
  "affectsState" : false,
  "code" : "export",
  "base" : "http://hl7.org/fhir/uv/bulkdata/OperationDefinition/export",
  "system" : true,
  "type" : false,
  "instance" : false,
  "parameter" : [{
    "name" : "_type",
    "use" : "in",
    "min" : 0,
    "max" : "1",
    "documentation" : "Comma-separated output resource types. Defaults to Patient, Condition, AllergyIntolerance, MedicationRequest, MedicationStatement, Observation, Procedure, and Provenance.",
    "type" : "string"
  },
  {
    "name" : "mode",
    "use" : "in",
    "min" : 0,
    "max" : "1",
    "documentation" : "Adapter-only privacy mode. Supported values are pseudonymized and minimized. Defaults to pseudonymized.",
    "type" : "code"
  },
  {
    "name" : "condition-code",
    "use" : "in",
    "min" : 0,
    "max" : "*",
    "documentation" : "SNOMED CT condition code filter. Multiple comma-separated or repeated values are ORed inside this family.",
    "type" : "code"
  },
  {
    "name" : "medication-code",
    "use" : "in",
    "min" : 0,
    "max" : "*",
    "documentation" : "SNOMED CT medication code filter over MedicationRequest and MedicationStatement.",
    "type" : "code"
  },
  {
    "name" : "procedure-code",
    "use" : "in",
    "min" : 0,
    "max" : "*",
    "documentation" : "SNOMED CT procedure code filter.",
    "type" : "code"
  },
  {
    "name" : "observation-code",
    "use" : "in",
    "min" : 0,
    "max" : "*",
    "documentation" : "Observation code filter, for example fecal calprotectin or laboratory observation codes.",
    "type" : "code"
  },
  {
    "name" : "gender",
    "use" : "in",
    "min" : 0,
    "max" : "*",
    "documentation" : "Patient.gender filter.",
    "type" : "code"
  },
  {
    "name" : "birthdate",
    "use" : "in",
    "min" : 0,
    "max" : "1",
    "documentation" : "Exact Patient.birthDate filter. The runtime also accepts birthdate-ge and birthdate-le range parameters.",
    "type" : "date"
  },
  {
    "name" : "date",
    "use" : "in",
    "min" : 0,
    "max" : "1",
    "documentation" : "Exact clinical date filter. The runtime also accepts date-ge and date-le range parameters across supported clinical resource date fields.",
    "type" : "date"
  }]
}