{
  "resourceType": "StructureDefinition",
  "id": "srx-profile-library",
  "meta": {
    "lastUpdated": "2017-12-12T21:39:34.223+00:00"
  },
  "url": "http://fhir-es.transcendinsights.com/stu3/StructureDefinition/srx-profile-library",
  "name": "srx-profile-library",
  "status": "draft",
  "date": "2017-10-26T18:38:27.789+00:00",
  "fhirVersion": "3.0.1",
  "mapping": [
    {
      "identity": "UI",
      "name": "SRX User Interface"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Library",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Library",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Library",
        "path": "Library",
        "mustSupport": true
      },
      {
        "id": "Library.id",
        "path": "Library.id",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Library.meta",
        "path": "Library.meta",
        "mustSupport": false
      },
      {
        "id": "Library.meta.id",
        "path": "Library.meta.id",
        "max": "0",
        "mustSupport": true
      },
      {
        "id": "Library.meta.versionId",
        "path": "Library.meta.versionId",
        "max": "0",
        "mustSupport": true
      },
      {
        "id": "Library.meta.lastUpdated",
        "path": "Library.meta.lastUpdated",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Library.meta.profile",
        "path": "Library.meta.profile",
        "max": "1",
        "fixedUri": "http://fhir-es.transcendinsights.com/stu3/StructureDefinition/srx-profile-library",
        "mapping": [
          {
            "identity": "UI",
            "map": "SRX - User interface"
          }
        ]
      },
      {
        "id": "Library.meta.security",
        "path": "Library.meta.security",
        "max": "0"
      },
      {
        "id": "Library.meta.tag",
        "path": "Library.meta.tag",
        "max": "0"
      },
      {
        "id": "Library.implicitRules",
        "path": "Library.implicitRules",
        "max": "0"
      },
      {
        "id": "Library.language",
        "path": "Library.language",
        "max": "0"
      },
      {
        "id": "Library.text",
        "path": "Library.text",
        "max": "0"
      },
      {
        "id": "Library.contained",
        "path": "Library.contained",
        "max": "0"
      },
      {
        "id": "Library.url",
        "path": "Library.url",
        "max": "0"
      },
      {
        "id": "Library.identifier",
        "path": "Library.identifier",
        "max": "0"
      },
      {
        "id": "Library.identifier.id",
        "path": "Library.identifier.id",
        "max": "0"
      },
      {
        "id": "Library.identifier.use",
        "path": "Library.identifier.use",
        "min": 1
      },
      {
        "id": "Library.identifier.type",
        "path": "Library.identifier.type",
        "max": "0"
      },
      {
        "id": "Library.identifier.system",
        "path": "Library.identifier.system",
        "max": "0"
      },
      {
        "id": "Library.identifier.value",
        "path": "Library.identifier.value",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Library.identifier.period",
        "path": "Library.identifier.period",
        "max": "0"
      },
      {
        "id": "Library.identifier.assigner",
        "path": "Library.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Library.version",
        "path": "Library.version",
        "short": "Version of the cql library",
        "definition": "The CQL Library version.",
        "min": 1,
        "mustSupport": true,
        "mapping": [
          {
            "identity": "UI",
            "map": "cql-version"
          }
        ]
      },
      {
        "id": "Library.name",
        "path": "Library.name",
        "max": "0"
      },
      {
        "id": "Library.title",
        "path": "Library.title",
        "max": "0"
      },
      {
        "id": "Library.status",
        "path": "Library.status",
        "mustSupport": true
      },
      {
        "id": "Library.experimental",
        "path": "Library.experimental",
        "max": "0"
      },
      {
        "id": "Library.type",
        "path": "Library.type",
        "fixedCodeableConcept": {
          "coding": [
            {
              "code": "logic-library"
            }
          ]
        },
        "mustSupport": true
      },
      {
        "id": "Library.type.id",
        "path": "Library.type.id",
        "max": "0"
      },
      {
        "id": "Library.type.coding",
        "path": "Library.type.coding",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Library.type.coding.id",
        "path": "Library.type.coding.id",
        "max": "0"
      },
      {
        "id": "Library.type.coding.system",
        "path": "Library.type.coding.system",
        "max": "0",
        "fixedUri": "http://hl7.org/fhir/library-type"
      },
      {
        "id": "Library.type.coding.version",
        "path": "Library.type.coding.version",
        "max": "0"
      },
      {
        "id": "Library.type.coding.code",
        "path": "Library.type.coding.code",
        "min": 1,
        "fixedCode": "logic-library",
        "mustSupport": true
      },
      {
        "id": "Library.type.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Library.type.coding.display",
        "max": "0",
        "mustSupport": true
      },
      {
        "id": "Library.type.coding.userSelected",
        "path": "Library.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Library.type.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Library.type.text",
        "max": "0"
      },
      {
        "id": "Library.date",
        "path": "Library.date",
        "max": "0"
      },
      {
        "id": "Library.publisher",
        "path": "Library.publisher",
        "max": "0"
      },
      {
        "id": "Library.description",
        "path": "Library.description",
        "max": "0"
      },
      {
        "id": "Library.purpose",
        "path": "Library.purpose",
        "max": "0"
      },
      {
        "id": "Library.usage",
        "path": "Library.usage",
        "max": "0"
      },
      {
        "id": "Library.approvalDate",
        "path": "Library.approvalDate",
        "max": "0"
      },
      {
        "id": "Library.lastReviewDate",
        "path": "Library.lastReviewDate",
        "max": "0"
      },
      {
        "id": "Library.effectivePeriod",
        "path": "Library.effectivePeriod",
        "max": "0"
      },
      {
        "id": "Library.useContext",
        "path": "Library.useContext",
        "max": "0"
      },
      {
        "id": "Library.jurisdiction",
        "path": "Library.jurisdiction",
        "max": "0"
      },
      {
        "id": "Library.topic",
        "path": "Library.topic",
        "max": "0"
      },
      {
        "id": "Library.contributor",
        "path": "Library.contributor",
        "max": "0"
      },
      {
        "id": "Library.contact",
        "path": "Library.contact",
        "max": "0"
      },
      {
        "id": "Library.copyright",
        "path": "Library.copyright",
        "max": "0"
      },
      {
        "id": "Library.relatedArtifact",
        "path": "Library.relatedArtifact",
        "max": "0"
      },
      {
        "id": "Library.parameter",
        "path": "Library.parameter",
        "max": "0"
      },
      {
        "id": "Library.dataRequirement",
        "path": "Library.dataRequirement",
        "max": "0"
      },
      {
        "id": "Library.content",
        "path": "Library.content",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "contentType"
            }
          ],
          "rules": "open"
        },
        "min": 1,
        "max": "3",
        "mustSupport": true
      },
      {
        "id": "Library.content.id",
        "path": "Library.content.id",
        "max": "0"
      },
      {
        "id": "Library.content.contentType",
        "path": "Library.content.contentType",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Library.content.language",
        "path": "Library.content.language",
        "max": "0"
      },
      {
        "id": "Library.content.data",
        "path": "Library.content.data",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Library.content.url",
        "path": "Library.content.url",
        "max": "0"
      },
      {
        "id": "Library.content.size",
        "path": "Library.content.size",
        "max": "0"
      },
      {
        "id": "Library.content.hash",
        "path": "Library.content.hash",
        "max": "0"
      },
      {
        "id": "Library.content.title",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Library.content.title",
        "max": "0"
      },
      {
        "id": "Library.content.creation",
        "path": "Library.content.creation",
        "max": "0"
      },
      {
        "id": "Library.content:cqlContent",
        "path": "Library.content",
        "sliceName": "cqlContent",
        "max": "1"
      },
      {
        "id": "Library.content:cqlContent.id",
        "path": "Library.content.id",
        "max": "0"
      },
      {
        "id": "Library.content:cqlContent.contentType",
        "path": "Library.content.contentType",
        "min": 1,
        "fixedCode": "text/plain"
      },
      {
        "id": "Library.content:cqlContent.language",
        "path": "Library.content.language",
        "max": "0"
      },
      {
        "id": "Library.content:cqlContent.data",
        "path": "Library.content.data",
        "definition": "The actual CQL data of the attachment - a sequence of bytes. In XML, represented using base64.",
        "min": 1,
        "mapping": [
          {
            "identity": "UI",
            "map": "CQL File"
          }
        ]
      },
      {
        "id": "Library.content:cqlContent.url",
        "path": "Library.content.url",
        "max": "0"
      },
      {
        "id": "Library.content:cqlContent.size",
        "path": "Library.content.size",
        "max": "0"
      },
      {
        "id": "Library.content:cqlContent.hash",
        "path": "Library.content.hash",
        "max": "0"
      },
      {
        "id": "Library.content:cqlContent.title",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Library.content.title",
        "max": "0"
      },
      {
        "id": "Library.content:cqlContent.creation",
        "path": "Library.content.creation",
        "max": "0"
      },
      {
        "id": "Library.content:xmlContent",
        "path": "Library.content",
        "sliceName": "xmlContent",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Library.content:xmlContent.id",
        "path": "Library.content.id",
        "max": "0"
      },
      {
        "id": "Library.content:xmlContent.contentType",
        "path": "Library.content.contentType",
        "definition": "The type for ELM/XML representation of the CQL library.",
        "min": 1,
        "fixedCode": "application/elm+xml"
      },
      {
        "id": "Library.content:xmlContent.language",
        "path": "Library.content.language",
        "max": "0"
      },
      {
        "id": "Library.content:xmlContent.data",
        "path": "Library.content.data",
        "definition": "The ELM/XML representation of the CQL library.- a sequence of bytes. In XML, represented using base64.",
        "min": 1,
        "mapping": [
          {
            "identity": "UI",
            "map": "ELM/XML file"
          }
        ]
      },
      {
        "id": "Library.content:xmlContent.url",
        "path": "Library.content.url",
        "max": "0"
      },
      {
        "id": "Library.content:xmlContent.size",
        "path": "Library.content.size",
        "max": "0"
      },
      {
        "id": "Library.content:xmlContent.hash",
        "path": "Library.content.hash",
        "max": "0"
      },
      {
        "id": "Library.content:xmlContent.title",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Library.content.title",
        "max": "0"
      },
      {
        "id": "Library.content:xmlContent.creation",
        "path": "Library.content.creation",
        "max": "0"
      },
      {
        "id": "Library.content:binContent",
        "path": "Library.content",
        "sliceName": "binContent",
        "max": "1"
      },
      {
        "id": "Library.content:binContent.id",
        "path": "Library.content.id",
        "max": "0"
      },
      {
        "id": "Library.content:binContent.contentType",
        "path": "Library.content.contentType",
        "min": 1,
        "fixedCode": "application/bin"
      },
      {
        "id": "Library.content:binContent.language",
        "path": "Library.content.language",
        "max": "0"
      },
      {
        "id": "Library.content:binContent.data",
        "path": "Library.content.data",
        "definition": "The actual binary data representaiton of the cql library - a sequence of bytes. In XML, represented using base64.",
        "min": 1
      },
      {
        "id": "Library.content:binContent.url",
        "path": "Library.content.url",
        "max": "0"
      },
      {
        "id": "Library.content:binContent.size",
        "path": "Library.content.size",
        "max": "0"
      },
      {
        "id": "Library.content:binContent.hash",
        "path": "Library.content.hash",
        "max": "0"
      },
      {
        "id": "Library.content:binContent.title",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Library.content.title",
        "max": "0"
      },
      {
        "id": "Library.content:binContent.creation",
        "path": "Library.content.creation",
        "max": "0"
      }
    ]
  }
}