{
  "resourceType" : "OperationDefinition",
  "id" : "submit-cgm-bundle",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: OperationDefinition submit-cgm-bundle</b></p><a name=\"submit-cgm-bundle\"> </a><a name=\"hcsubmit-cgm-bundle\"> </a><p>URL: [base]/$submit-cgm-bundle</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>resource</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R4/bundle.html\">Bundle</a> (<a href=\"StructureDefinition-cgm-data-submission-bundle.html\" title=\"http://hl7.org/fhir/uv/cgm/StructureDefinition/cgm-data-submission-bundle\">CGM Data Submission Bundle</a>)</td><td/><td><div><p>A 'transaction' Bundle that conforms to the CGM Data Submission Bundle Profile containing multiple resources related to Continuous Glucose Monitoring (CGM) data</p>\n</div></td></tr><tr><td>OUT</td><td>return</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R4/bundle.html\">Bundle</a></td><td/><td><div><p>A Bundle of type 'transaction-response' containing processing results for each submitted resource. Each entry in the response Bundle corresponds\nto an entry in the submission Bundle and includes:</p>\n<ul>\n<li>HTTP status code indicating success/failure</li>\n<li>Location header for successful creations</li>\n<li>OperationOutcome for any entry-specific errors</li>\n</ul>\n<p>If the entire operation fails, a single OperationOutcome resource is returned instead.</p>\n</div></td></tr></table></div>"
  },
  "extension" : [{
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
    "valueCode" : "oo"
  },
  {
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
    "valueInteger" : 2,
    "_valueInteger" : {
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
        "valueCanonical" : "http://hl7.org/fhir/uv/cgm/ImplementationGuide/hl7.fhir.uv.cgm"
      }]
    }
  },
  {
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
    "valueCode" : "trial-use",
    "_valueCode" : {
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
        "valueCanonical" : "http://hl7.org/fhir/uv/cgm/ImplementationGuide/hl7.fhir.uv.cgm"
      }]
    }
  }],
  "url" : "http://hl7.org/fhir/uv/cgm/OperationDefinition/submit-cgm-bundle",
  "version" : "1.0.0",
  "name" : "SubmitCGMBundle",
  "title" : "Submit CGM Bundle",
  "status" : "active",
  "kind" : "operation",
  "date" : "2025-09-24T16:48:39+00:00",
  "publisher" : "HL7 International / Orders and Observations",
  "contact" : [{
    "name" : "HL7 International / Orders and Observations",
    "telecom" : [{
      "system" : "url",
      "value" : "http://www.hl7.org/Special/committees/orders"
    },
    {
      "system" : "email",
      "value" : "ord@lists.HL7.org"
    }]
  }],
  "description" : "This operation is used to submit CGM data. The input is a 'transaction' Bundle that conforms to the [CGM Data Submission Bundle Profile](StructureDefinition-cgm-data-submission-bundle.html), containing CGM data (such as summary reports and sensor readings). \nThe output is a 'transaction-response' Bundle containing processing results for each submitted resource, or an OperationOutcome resource for overall failures.\n\nThe response Bundle will:\n- Maintain the same order as the submission Bundle\n- Include status and location information for each successfully processed entry\n- Include error details for any entries that could not be processed\n\nServers SHOULD support conditional create requests and persist client-supplied identifiers. Servers SHALL document in their developer documentation:\n- Which search parameters can be used in conditional create requests  \n- How client-supplied identifiers are handled\n- Any deduplication strategies employed",
  "jurisdiction" : [{
    "coding" : [{
      "system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
      "code" : "001",
      "display" : "World"
    }]
  }],
  "code" : "submit-cgm-bundle",
  "system" : true,
  "type" : false,
  "instance" : false,
  "parameter" : [{
    "name" : "resource",
    "use" : "in",
    "min" : 1,
    "max" : "1",
    "documentation" : "A 'transaction' Bundle that conforms to the CGM Data Submission Bundle Profile containing multiple resources related to Continuous Glucose Monitoring (CGM) data",
    "type" : "Bundle",
    "targetProfile" : ["http://hl7.org/fhir/uv/cgm/StructureDefinition/cgm-data-submission-bundle"]
  },
  {
    "name" : "return",
    "use" : "out",
    "min" : 1,
    "max" : "1",
    "documentation" : "A Bundle of type 'transaction-response' containing processing results for each submitted resource. Each entry in the response Bundle corresponds \nto an entry in the submission Bundle and includes:\n- HTTP status code indicating success/failure\n- Location header for successful creations\n- OperationOutcome for any entry-specific errors\n\nIf the entire operation fails, a single OperationOutcome resource is returned instead.",
    "type" : "Bundle"
  }]
}