{
  "resourceType": "StructureDefinition",
  "id": "cqllibrary",
  "text": {
    "status": "generated",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">to do</div>"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
      "valueInteger": 3
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode": "cds"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
      "valueCode": "trial-use"
    }
  ],
  "url": "http://hl7.org/fhir/StructureDefinition/cqllibrary",
  "version": "4.6.0",
  "name": "CQLLibrary",
  "title": "CQL Library",
  "status": "draft",
  "experimental": false,
  "date": "2020-12-28T05:55:11+00:00",
  "publisher": "HL7",
  "description": "Represents a computable CQL logic library",
  "fhirVersion": "4.6.0",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Pattern"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    },
    {
      "identity": "objimpl",
      "uri": "http://hl7.org/fhir/object-implementation",
      "name": "Object Implementation Information"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Library",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/logiclibrary",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Library",
        "path": "Library",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Library.content",
        "path": "Library.content",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "contentType"
            }
          ],
          "rules": "open"
        },
        "mustSupport": true
      },
      {
        "id": "Library.content:cqlContent",
        "path": "Library.content",
        "sliceName": "cqlContent",
        "short": "CQL Content",
        "definition": "The CQL content represented as base-64 encoded data.",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Library.content:cqlContent.contentType",
        "path": "Library.content.contentType",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "fixedCode": "text/cql",
        "mustSupport": true
      },
      {
        "id": "Library.content:cqlContent.data",
        "path": "Library.content.data",
        "min": 1,
        "max": "1",
        "mustSupport": true
      }
    ]
  }
}