PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.us.davinci-deqm@0.1.0
    http://hl7.org/fhir/us/davinci-deqm/StructureDefinition/library-deqm
{
  "description": "The DEQM Library Profile describes a shareable, published library resource that can be used to share clinical knowledge",
  "_filename": "StructureDefinition-library-deqm.json",
  "package_name": "hl7.fhir.us.davinci-deqm",
  "date": "2018-06-19",
  "derivation": "constraint",
  "publisher": "Da Vinci Project",
  "fhirVersion": "3.5.0",
  "jurisdiction": [ {
    "coding": [ {
      "code": "US",
      "system": "urn:iso:std:iso:3166",
      "display": "United States of America"
    } ]
  } ],
  "name": "profile-library-deqm",
  "mapping": [ {
    "uri": "http://hl7.org/v3",
    "name": "RIM Mapping",
    "identity": "rim"
  }, {
    "uri": "http://hl7.org/fhir/workflow",
    "name": "Workflow Pattern",
    "identity": "workflow"
  }, {
    "uri": "http://hl7.org/fhir/fivews",
    "name": "FiveWs Pattern",
    "identity": "w5"
  }, {
    "uri": "http://hl7.org/fhir/object-implementation",
    "name": "Object Implementation Information",
    "identity": "objimpl"
  } ],
  "abstract": false,
  "type": "Library",
  "experimental": null,
  "resourceType": "StructureDefinition",
  "title": null,
  "package_version": "0.1.0",
  "snapshot": {
    "element": [ {
      "constraint": [ {
        "key": "dom-2",
        "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
        "xpath": "not(parent::f:contained and f:contained)",
        "source": "DomainResource",
        "severity": "error",
        "expression": "contained.contained.empty()"
      }, {
        "key": "dom-4",
        "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
        "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
        "source": "DomainResource",
        "severity": "error",
        "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"
      }, {
        "key": "dom-3",
        "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
        "xpath": "not(exists(for $contained in f:contained return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
        "source": "DomainResource",
        "severity": "error",
        "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()"
      }, {
        "key": "dom-6",
        "human": "A resource should have narrative for robust management",
        "xpath": "exists(f:text/h:div)",
        "source": "DomainResource",
        "severity": "warning",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
          "valueBoolean": true
        }, {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
          "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a guman readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
        } ],
        "expression": "text.div.exists()"
      }, {
        "key": "dom-5",
        "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
        "xpath": "not(exists(f:contained/*/f:meta/f:security))",
        "source": "DomainResource",
        "severity": "error",
        "expression": "contained.meta.security.empty()"
      }, {
        "key": "lib-0",
        "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
        "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')",
        "source": "Library",
        "severity": "warning",
        "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')"
      } ],
      "path": "Library",
      "min": 0,
      "definition": "The Library resource is a general-purpose container for knowledge asset definitions. It can be used to describe and expose existing knowledge assets such as logic libraries and information model descriptions, as well as to describe a collection of knowledge assets.",
      "isModifier": false,
      "short": "Represents a library of quality improvement components",
      "mapping": [ {
        "map": "Entity. Role, or Act",
        "identity": "rim"
      }, {
        "map": "Act[classCode=GROUPER;moodCode=EVN]",
        "identity": "rim"
      } ],
      "mustSupport": false,
      "max": "*",
      "id": "Library",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Library"
      },
      "isSummary": false
    }, {
      "path": "Library.id",
      "min": 0,
      "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
      "isModifier": false,
      "short": "Logical id of this artifact",
      "type": [ {
        "code": "id"
      } ],
      "max": "1",
      "id": "Library.id",
      "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.id"
      },
      "isSummary": true
    }, {
      "path": "Library.meta",
      "min": 0,
      "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
      "isModifier": false,
      "short": "Metadata about the resource",
      "type": [ {
        "code": "Meta"
      } ],
      "max": "1",
      "id": "Library.meta",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.meta"
      },
      "isSummary": true
    }, {
      "path": "Library.implicitRules",
      "min": 0,
      "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
      "isModifier": true,
      "short": "A set of rules under which this content was created",
      "type": [ {
        "code": "uri"
      } ],
      "max": "1",
      "id": "Library.implicitRules",
      "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.implicitRules"
      },
      "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
      "isSummary": true
    }, {
      "path": "Library.language",
      "min": 0,
      "definition": "The base language in which the resource is written.",
      "isModifier": false,
      "short": "Language of the resource content",
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "preferred",
        "valueSet": "http://hl7.org/fhir/ValueSet/languages",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
          "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
        }, {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "Language"
        }, {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
          "valueBoolean": true
        } ],
        "description": "A human language."
      },
      "max": "1",
      "id": "Library.language",
      "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.language"
      },
      "isSummary": false
    }, {
      "path": "Library.text",
      "min": 0,
      "definition": "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
      "isModifier": false,
      "short": "Text summary of the resource, for human interpretation",
      "mapping": [ {
        "map": "Act.text?",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Narrative"
      } ],
      "alias": [ "narrative", "html", "xhtml", "display" ],
      "max": "1",
      "id": "Library.text",
      "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "DomainResource.text"
      },
      "isSummary": false
    }, {
      "path": "Library.contained",
      "min": 0,
      "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
      "isModifier": false,
      "short": "Contained, inline Resources",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Resource"
      } ],
      "alias": [ "inline resources", "anonymous resources", "contained resources" ],
      "max": "*",
      "id": "Library.contained",
      "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.contained"
      },
      "isSummary": false
    }, {
      "path": "Library.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "isModifier": false,
      "short": "Additional Content defined by implementations",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Library.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.extension"
      },
      "isSummary": false
    }, {
      "path": "Library.modifierExtension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the resource, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "isModifier": true,
      "short": "Extensions that cannot be ignored",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Library.modifierExtension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
      "isSummary": false
    }, {
      "path": "Library.url",
      "requirements": "A published library must have a canonical url defined.",
      "min": 1,
      "definition": "An absolute URI that is used to identify this library when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this library is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the library is stored on different servers.",
      "isModifier": false,
      "short": "Canonical identifier for this library, represented as a URI (globally unique)",
      "mapping": [ {
        "map": "Definition.url",
        "identity": "workflow"
      }, {
        "map": "FiveWs.identifier",
        "identity": "w5"
      }, {
        "map": ".identifier[scope=BUSN;reliability=ISS]",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "uri"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "Library.url",
      "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions).",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Library.url"
      },
      "isSummary": true
    }, {
      "path": "Library.identifier",
      "requirements": "A published library must have at least one identifier defined.",
      "min": 1,
      "definition": "A formal identifier that is used to identify this library when it is represented in other formats, or referenced in a specification, model, design or an instance. e.g. CMS or NQF identifiers for a measure artifact. Note that at least one identifier is required for non-experimental active artifacts.",
      "isModifier": false,
      "short": "Additional identifier for the library",
      "mapping": [ {
        "map": "Definition.identifier",
        "identity": "workflow"
      }, {
        "map": "FiveWs.identifier",
        "identity": "w5"
      }, {
        "map": ".identifier",
        "identity": "rim"
      }, {
        "map": "no-gen-base",
        "identity": "objimpl"
      } ],
      "type": [ {
        "code": "Identifier"
      } ],
      "mustSupport": true,
      "max": "*",
      "id": "Library.identifier",
      "comment": "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this library outside of FHIR, where it is not possible to use the logical URI.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Library.identifier"
      },
      "isSummary": true
    }, {
      "path": "Library.version",
      "requirements": "A published library must specify a content version.",
      "min": 1,
      "definition": "The identifier that is used to identify this version of the library when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the library author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence. To provide a version consistent with the Decision Support Service specification, use the format Major.Minor.Revision (e.g. 1.0.0). For more information on versioning knowledge assets, refer to the Decision Support Service specification. Note that a version is required for non-experimental active artifacts.",
      "isModifier": false,
      "short": "Business version of the library",
      "mapping": [ {
        "map": "Definition.version",
        "identity": "workflow"
      }, {
        "map": "FiveWs.version",
        "identity": "w5"
      }, {
        "map": "N/A (to add?)",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "Library.version",
      "comment": "There may be different library instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the library with the format [url]|[version].",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Library.version"
      },
      "isSummary": true
    }, {
      "path": "Library.name",
      "requirements": "A published library must specify a valid, machine-friendly name.",
      "min": 1,
      "definition": "A natural language name identifying the library. This name should be usable as an identifier for the module by machine processing applications such as code generation.",
      "isModifier": false,
      "short": "Name for this library (computer friendly)",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "Library.name",
      "condition": [ "inv-0" ],
      "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Library.name"
      },
      "isSummary": true
    }, {
      "path": "Library.title",
      "requirements": "A published library must specify a human-friendly title.",
      "min": 1,
      "definition": "A short, descriptive, user-friendly title for the library.",
      "isModifier": false,
      "short": "Name for this library (human friendly)",
      "mapping": [ {
        "map": "Definition.title",
        "identity": "workflow"
      }, {
        "map": ".title",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "Library.title",
      "comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Library.title"
      },
      "isSummary": true
    }, {
      "path": "Library.subtitle",
      "min": 0,
      "definition": "An explanatory or alternate title for the library giving additional information about its content.",
      "isModifier": false,
      "short": "Subordinate title of the library",
      "type": [ {
        "code": "string"
      } ],
      "max": "1",
      "id": "Library.subtitle",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Library.subtitle"
      },
      "isSummary": false
    }, {
      "path": "Library.status",
      "min": 1,
      "definition": "The status of this library. Enables tracking the life-cycle of the content.",
      "isModifier": true,
      "short": "draft | active | retired | unknown",
      "mapping": [ {
        "map": "Definition.status",
        "identity": "workflow"
      }, {
        "map": "FiveWs.status",
        "identity": "w5"
      }, {
        "map": ".status",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/publication-status",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "PublicationStatus"
        }, {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
          "valueBoolean": true
        } ],
        "description": "The lifecycle status of an artifact."
      },
      "max": "1",
      "id": "Library.status",
      "comment": "Allows filtering of libraries that are appropriate for use vs. not.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Library.status"
      },
      "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
      "isSummary": true
    }, {
      "path": "Library.experimental",
      "requirements": "Enables experimental content to be developed following the same lifecycle that would be used for a production-level library.",
      "min": 0,
      "definition": "A Boolean value to indicate that this library is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.",
      "isModifier": false,
      "short": "For testing purposes, not real usage",
      "mapping": [ {
        "map": "Definition.experimental",
        "identity": "workflow"
      }, {
        "map": "FiveWs.class",
        "identity": "w5"
      }, {
        "map": "N/A (to add?)",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "boolean"
      } ],
      "max": "1",
      "id": "Library.experimental",
      "comment": "Allows filtering of librarys that are appropriate for use versus not.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Library.experimental"
      },
      "isSummary": true
    }, {
      "path": "Library.type",
      "min": 1,
      "definition": "Identifies the type of library such as a Logic Library, Model Definition, Asset Collection, or Module Definition.",
      "isModifier": false,
      "short": "logic-library | model-definition | asset-collection | module-definition",
      "mapping": [ {
        "map": "FiveWs.what[x]",
        "identity": "w5"
      }, {
        "map": ".code",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "extensible",
        "valueSet": "http://hl7.org/fhir/ValueSet/library-type",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "LibraryType"
        } ],
        "description": "The type of knowledge asset this library contains."
      },
      "max": "1",
      "id": "Library.type",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Library.type"
      },
      "isSummary": true
    }, {
      "path": "Library.subject[x]",
      "min": 0,
      "definition": "A code or group definition that describes the intended subject of the contents of the library.",
      "isModifier": false,
      "short": "Type of individual the library content is focused on",
      "type": [ {
        "code": "CodeableConcept"
      }, {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Group" ]
      } ],
      "meaningWhenMissing": "Patient",
      "binding": {
        "strength": "extensible",
        "valueSet": "http://hl7.org/fhir/ValueSet/subject-type",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "SubjectType"
        } ],
        "description": "The possible types of subjects for a library (E.g. Patient, Practitioner, Organization, Location, etc.)."
      },
      "max": "1",
      "id": "Library.subject[x]",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Library.subject[x]"
      },
      "isSummary": false
    }, {
      "path": "Library.date",
      "requirements": "A published library must specify the date the library content was last changed.",
      "min": 1,
      "definition": "The date  (and optionally time) when the library was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the library changes.",
      "isModifier": false,
      "short": "Date last changed",
      "mapping": [ {
        "map": "Definition.date",
        "identity": "workflow"
      }, {
        "map": "FiveWs.recorded",
        "identity": "w5"
      }, {
        "map": ".participation[typeCode=AUT].time",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "dateTime"
      } ],
      "mustSupport": true,
      "alias": [ "Revision Date" ],
      "max": "1",
      "id": "Library.date",
      "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the library. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Library.date"
      },
      "isSummary": true
    }, {
      "path": "Library.publisher",
      "requirements": "A published library must provide publisher information.",
      "min": 1,
      "definition": "The name of the organization or individual that published the library.",
      "isModifier": false,
      "short": "Name of the publisher (organization or individual)",
      "mapping": [ {
        "map": "Definition.publisher",
        "identity": "workflow"
      }, {
        "map": "FiveWs.witness",
        "identity": "w5"
      }, {
        "map": ".participation[typeCode=AUT].role",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "Library.publisher",
      "comment": "Usually an organization but may be an individual. The publisher (or steward) of the library is the organization or individual primarily responsible for the maintenance and upkeep of the library. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the library. This item SHOULD be populated unless the information is available from context.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Library.publisher"
      },
      "isSummary": true
    }, {
      "path": "Library.contact",
      "requirements": "A published library must provide contact information for the publisher.",
      "min": 1,
      "definition": "Contact details to assist a user in finding and communicating with the publisher.",
      "isModifier": false,
      "short": "Contact details for the publisher",
      "mapping": [ {
        "map": "Definition.contact",
        "identity": "workflow"
      }, {
        "map": ".participation[typeCode=CALLBCK].role",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "ContactDetail"
      } ],
      "mustSupport": true,
      "max": "*",
      "id": "Library.contact",
      "comment": "May be a web site, an email address, a telephone number, etc.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Library.contact"
      },
      "isSummary": true
    }, {
      "path": "Library.description",
      "requirements": "A published library must provide a concise description of the library content.",
      "min": 1,
      "definition": "A free text natural language description of the library from a consumer's perspective.",
      "isModifier": false,
      "short": "Natural language description of the library",
      "mapping": [ {
        "map": "Definition.description",
        "identity": "workflow"
      }, {
        "map": ".text",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "markdown"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "Library.description",
      "comment": "This description can be used to capture details such as why the library was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the library as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the library is presumed to be the predominant language in the place the library was created).",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Library.description"
      },
      "isSummary": true
    }, {
      "path": "Library.useContext",
      "requirements": "A published library should provide a clear indication of the expected contexts of use for the library content.",
      "min": 0,
      "definition": "The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching for appropriate library instances.",
      "isModifier": false,
      "short": "The context that the content is intended to support",
      "mapping": [ {
        "map": "Definition.useContext",
        "identity": "workflow"
      }, {
        "map": "N/A (to add?)",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "UsageContext"
      } ],
      "mustSupport": true,
      "max": "*",
      "id": "Library.useContext",
      "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Library.useContext"
      },
      "isSummary": true
    }, {
      "path": "Library.jurisdiction",
      "requirements": "A published library should indicate intended jurisdictions for the library content.",
      "min": 0,
      "definition": "A legal or geographic region in which the library is intended to be used.",
      "isModifier": false,
      "short": "Intended jurisdiction for library (if applicable)",
      "mapping": [ {
        "map": "Definition.jurisdiction",
        "identity": "workflow"
      }, {
        "map": "N/A (to add?)",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "mustSupport": true,
      "binding": {
        "strength": "extensible",
        "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "Jurisdiction"
        }, {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
          "valueBoolean": true
        } ],
        "description": "Countries and regions within which this artifact is targeted for use."
      },
      "max": "*",
      "id": "Library.jurisdiction",
      "comment": "It may be possible for the library to be used in jurisdictions other than those for which it was originally designed or intended.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Library.jurisdiction"
      },
      "isSummary": true
    }, {
      "path": "Library.purpose",
      "requirements": "A published library should provide a clear description of the purpose of the library.",
      "min": 0,
      "definition": "Explanation of why this library is needed and why it has been designed as it has.",
      "isModifier": false,
      "short": "Why this library is defined",
      "mapping": [ {
        "map": "Definition.purpose",
        "identity": "workflow"
      }, {
        "map": "FiveWs.why[x]",
        "identity": "w5"
      }, {
        "map": ".reasonCode.text",
        "identity": "rim"
      }, {
        "map": "no-gen-base",
        "identity": "objimpl"
      } ],
      "type": [ {
        "code": "markdown"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "Library.purpose",
      "comment": "This element does not describe the usage of the library. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this library.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Library.purpose"
      },
      "isSummary": false
    }, {
      "path": "Library.usage",
      "requirements": "A published library should provide clinical usage notes for the library.",
      "min": 0,
      "definition": "A detailed description of how the library is used from a clinical perspective.",
      "isModifier": false,
      "short": "Describes the clinical usage of the library",
      "mapping": [ {
        "map": "N/A (to add?)",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "Library.usage",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Library.usage"
      },
      "isSummary": false
    }, {
      "path": "Library.copyright",
      "requirements": "A published library should provide copyright information for the library content.",
      "min": 0,
      "definition": "A copyright statement relating to the library and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the library.",
      "isModifier": false,
      "short": "Use and/or publishing restrictions",
      "mapping": [ {
        "map": "Definition.copyright",
        "identity": "workflow"
      }, {
        "map": "N/A (to add?)",
        "identity": "rim"
      }, {
        "map": "no-gen-base",
        "identity": "objimpl"
      } ],
      "type": [ {
        "code": "markdown"
      } ],
      "mustSupport": true,
      "alias": [ "License", "Restrictions" ],
      "max": "1",
      "id": "Library.copyright",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Library.copyright"
      },
      "isSummary": false
    }, {
      "path": "Library.approvalDate",
      "requirements": "A published library must indicate the date the library content was approved by the publisher.",
      "min": 1,
      "definition": "The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage.",
      "isModifier": false,
      "short": "When the library was approved by publisher",
      "mapping": [ {
        "map": "Definition.approvalDate",
        "identity": "workflow"
      }, {
        "map": ".outboundRelationship[typeCode=\"SUBJ\"].act[classCode=CACT;moodCode=EVN;code=\"approval\"].effectiveTime",
        "identity": "rim"
      }, {
        "map": "no-gen-base",
        "identity": "objimpl"
      } ],
      "type": [ {
        "code": "date"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "Library.approvalDate",
      "comment": "The 'date' element may be more recent than the approval date because of minor changes or editorial corrections.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Library.approvalDate"
      },
      "isSummary": false
    }, {
      "path": "Library.lastReviewDate",
      "requirements": "A published library must indicate when the library content was last reviewed.",
      "min": 1,
      "definition": "The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date.",
      "isModifier": false,
      "short": "When the library was last reviewed",
      "mapping": [ {
        "map": "Definition.lastReviewDate",
        "identity": "workflow"
      }, {
        "map": ".outboundRelationship[typeCode=\"SUBJ\"; subsetCode=\"RECENT\"].act[classCode=CACT;moodCode=EVN;code=\"review\"].effectiveTime",
        "identity": "rim"
      }, {
        "map": "no-gen-base",
        "identity": "objimpl"
      } ],
      "type": [ {
        "code": "date"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "Library.lastReviewDate",
      "comment": "If specified, this date follows the original approval date.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Library.lastReviewDate"
      },
      "isSummary": false
    }, {
      "path": "Library.effectivePeriod",
      "requirements": "A published library should provide an indication of the period during which the library content can be effectively applied.",
      "min": 0,
      "definition": "The period during which the library content was or is planned to be in active use.",
      "isModifier": false,
      "short": "When the library is expected to be used",
      "mapping": [ {
        "map": "Definition.effectivePeriod",
        "identity": "workflow"
      }, {
        "map": "N/A (to add?)",
        "identity": "rim"
      }, {
        "map": "no-gen-base",
        "identity": "objimpl"
      } ],
      "type": [ {
        "code": "Period"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "Library.effectivePeriod",
      "comment": "The effective period for a library  determines when the content is applicable for usage and is independent of publication and review dates. For example, a measure intended to be used for the year 2016 might be published in 2015.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Library.effectivePeriod"
      },
      "isSummary": true
    }, {
      "path": "Library.topic",
      "requirements": "A published library should provide relevant topics for the library content.",
      "min": 0,
      "definition": "Descriptive topics related to the content of the library. Topics provide a high-level categorization of the library that can be useful for filtering and searching.",
      "isModifier": false,
      "short": "E.g. Education, Treatment, Assessment, etc.",
      "mapping": [ {
        "map": "N/A (to add?)",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "mustSupport": true,
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/definition-topic",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "DefinitionTopic"
        } ],
        "description": "High-level categorization of the definition, used for searching, sorting, and filtering."
      },
      "max": "*",
      "id": "Library.topic",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Library.topic"
      },
      "isSummary": false
    }, {
      "path": "Library.author",
      "requirements": "A published library should provide information on the author of the library content.",
      "min": 0,
      "definition": "An individiual or organization primarily involved in the creation and maintenance of the content.",
      "isModifier": false,
      "short": "Who authored the content",
      "mapping": [ {
        "map": ".participation[typeCode=AUT]",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "ContactDetail"
      } ],
      "mustSupport": true,
      "max": "*",
      "id": "Library.author",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Library.author"
      },
      "isSummary": false
    }, {
      "path": "Library.editor",
      "requirements": "A published library should provide information on the editor the library content.",
      "min": 0,
      "definition": "An individual or organization primarily responsible for internal coherence of the content.",
      "isModifier": false,
      "short": "Who edited the content",
      "type": [ {
        "code": "ContactDetail"
      } ],
      "mustSupport": true,
      "max": "*",
      "id": "Library.editor",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Library.editor"
      },
      "isSummary": false
    }, {
      "path": "Library.reviewer",
      "requirements": "A published library should provide information on the reviewer of the library content.",
      "min": 0,
      "definition": "An individual or organization primarily responsible for review of some aspect of the content.",
      "isModifier": false,
      "short": "Who reviewed the content",
      "mapping": [ {
        "map": ".participation[typeCode=VRF] {not clear whether VRF best corresponds to reviewer or endorser}",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "ContactDetail"
      } ],
      "mustSupport": true,
      "max": "*",
      "id": "Library.reviewer",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Library.reviewer"
      },
      "isSummary": false
    }, {
      "path": "Library.endorser",
      "requirements": "A published library should provide information on the endorser of the library content.",
      "min": 0,
      "definition": "An individual or organization responsible for officially endorsing the content for use in some setting.",
      "isModifier": false,
      "short": "Who endorsed the content",
      "mapping": [ {
        "map": ".participation[typeCode=VRF] {not clear whether VRF best corresponds to reviewer or endorser}",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "ContactDetail"
      } ],
      "mustSupport": true,
      "max": "*",
      "id": "Library.endorser",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Library.endorser"
      },
      "isSummary": false
    }, {
      "path": "Library.relatedArtifact",
      "requirements": "A published library should provide related information such as supporting evidence, citations, and documentation.",
      "min": 0,
      "definition": "Related artifacts such as additional documentation, justification, or bibliographic references.",
      "isModifier": false,
      "short": "Additional documentation, citations, etc.",
      "mapping": [ {
        "map": ".outboundRelationship[typeCode=DOC,RSON,PREV, DRIV, USE, COMP] {successor would be PREV w/ inversionInd=true; No support for citation}",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "RelatedArtifact"
      } ],
      "mustSupport": true,
      "max": "*",
      "id": "Library.relatedArtifact",
      "comment": "Each related artifact is either an attachment, or a reference to another resource, but not both.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Library.relatedArtifact"
      },
      "isSummary": false
    }, {
      "path": "Library.parameter",
      "requirements": "A published library should provide a description of any parameters defined by the library.",
      "min": 0,
      "definition": "The parameter element defines parameters used by the library.",
      "isModifier": false,
      "short": "Parameters defined by the library",
      "mapping": [ {
        "map": "N/A (to add?)",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "ParameterDefinition"
      } ],
      "mustSupport": true,
      "max": "*",
      "id": "Library.parameter",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Library.parameter"
      },
      "isSummary": false
    }, {
      "path": "Library.dataRequirement",
      "requirements": "A published library should provide a description of the data requirements for logic contained in the library.",
      "min": 0,
      "definition": "Describes a set of data that must be provided in order to be able to successfully perform the computations defined by the library.",
      "isModifier": false,
      "short": "What data is referenced by this library",
      "mapping": [ {
        "map": "N/A (to add?)",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "DataRequirement"
      } ],
      "mustSupport": true,
      "max": "*",
      "id": "Library.dataRequirement",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Library.dataRequirement"
      },
      "isSummary": false
    }, {
      "path": "Library.content",
      "requirements": "A published library must provide the contents of the library in at least one media format.",
      "min": 1,
      "definition": "The content of the library as an Attachment. The content may be a reference to a url, or may be directly embedded as a base-64 string. Either way, the contentType of the attachment determines how to interpret the content.",
      "isModifier": false,
      "short": "Contents of the library, either embedded or referenced",
      "mapping": [ {
        "map": ".text",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Attachment"
      } ],
      "mustSupport": true,
      "max": "*",
      "id": "Library.content",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Library.content"
      },
      "isSummary": false
    } ]
  },
  "status": "active",
  "id": "94563bf1-0e95-44b6-8900-76f03022365f",
  "kind": "resource",
  "url": "http://hl7.org/fhir/us/davinci-deqm/StructureDefinition/library-deqm",
  "version": "0.1.0",
  "differential": {
    "element": [ {
      "id": "Library",
      "path": "Library",
      "isModifier": false,
      "mustSupport": false
    }, {
      "id": "Library.url",
      "max": "1",
      "min": 1,
      "path": "Library.url",
      "isModifier": false,
      "mustSupport": true,
      "requirements": "A published library must have a canonical url defined."
    }, {
      "id": "Library.identifier",
      "max": "*",
      "min": 1,
      "path": "Library.identifier",
      "isModifier": false,
      "mustSupport": true,
      "requirements": "A published library must have at least one identifier defined."
    }, {
      "id": "Library.version",
      "max": "1",
      "min": 1,
      "path": "Library.version",
      "isModifier": false,
      "mustSupport": true,
      "requirements": "A published library must specify a content version."
    }, {
      "id": "Library.name",
      "max": "1",
      "min": 1,
      "path": "Library.name",
      "isModifier": false,
      "mustSupport": true,
      "requirements": "A published library must specify a valid, machine-friendly name."
    }, {
      "id": "Library.title",
      "max": "1",
      "min": 1,
      "path": "Library.title",
      "isModifier": false,
      "mustSupport": true,
      "requirements": "A published library must specify a human-friendly title."
    }, {
      "id": "Library.date",
      "max": "1",
      "min": 1,
      "path": "Library.date",
      "isModifier": false,
      "mustSupport": true,
      "requirements": "A published library must specify the date the library content was last changed."
    }, {
      "id": "Library.publisher",
      "max": "1",
      "min": 1,
      "path": "Library.publisher",
      "isModifier": false,
      "mustSupport": true,
      "requirements": "A published library must provide publisher information."
    }, {
      "id": "Library.contact",
      "max": "*",
      "min": 1,
      "path": "Library.contact",
      "isModifier": false,
      "mustSupport": true,
      "requirements": "A published library must provide contact information for the publisher."
    }, {
      "id": "Library.description",
      "max": "1",
      "min": 1,
      "path": "Library.description",
      "isModifier": false,
      "mustSupport": true,
      "requirements": "A published library must provide a concise description of the library content."
    }, {
      "id": "Library.useContext",
      "path": "Library.useContext",
      "isModifier": false,
      "mustSupport": true,
      "requirements": "A published library should provide a clear indication of the expected contexts of use for the library content."
    }, {
      "id": "Library.jurisdiction",
      "path": "Library.jurisdiction",
      "isModifier": false,
      "mustSupport": true,
      "requirements": "A published library should indicate intended jurisdictions for the library content."
    }, {
      "id": "Library.purpose",
      "path": "Library.purpose",
      "isModifier": false,
      "mustSupport": true,
      "requirements": "A published library should provide a clear description of the purpose of the library."
    }, {
      "id": "Library.usage",
      "path": "Library.usage",
      "isModifier": false,
      "mustSupport": true,
      "requirements": "A published library should provide clinical usage notes for the library."
    }, {
      "id": "Library.copyright",
      "path": "Library.copyright",
      "isModifier": false,
      "mustSupport": true,
      "requirements": "A published library should provide copyright information for the library content."
    }, {
      "id": "Library.approvalDate",
      "max": "1",
      "min": 1,
      "path": "Library.approvalDate",
      "isModifier": false,
      "mustSupport": true,
      "requirements": "A published library must indicate the date the library content was approved by the publisher."
    }, {
      "id": "Library.lastReviewDate",
      "max": "1",
      "min": 1,
      "path": "Library.lastReviewDate",
      "isModifier": false,
      "mustSupport": true,
      "requirements": "A published library must indicate when the library content was last reviewed."
    }, {
      "id": "Library.effectivePeriod",
      "path": "Library.effectivePeriod",
      "isModifier": false,
      "mustSupport": true,
      "requirements": "A published library should provide an indication of the period during which the library content can be effectively applied."
    }, {
      "id": "Library.topic",
      "path": "Library.topic",
      "isModifier": false,
      "mustSupport": true,
      "requirements": "A published library should provide relevant topics for the library content."
    }, {
      "id": "Library.author",
      "path": "Library.author",
      "isModifier": false,
      "mustSupport": true,
      "requirements": "A published library should provide information on the author of the library content."
    }, {
      "id": "Library.editor",
      "path": "Library.editor",
      "isModifier": false,
      "mustSupport": true,
      "requirements": "A published library should provide information on the editor the library content."
    }, {
      "id": "Library.reviewer",
      "path": "Library.reviewer",
      "isModifier": false,
      "mustSupport": true,
      "requirements": "A published library should provide information on the reviewer of the library content."
    }, {
      "id": "Library.endorser",
      "path": "Library.endorser",
      "isModifier": false,
      "mustSupport": true,
      "requirements": "A published library should provide information on the endorser of the library content."
    }, {
      "id": "Library.relatedArtifact",
      "path": "Library.relatedArtifact",
      "isModifier": false,
      "mustSupport": true,
      "requirements": "A published library should provide related information such as supporting evidence, citations, and documentation."
    }, {
      "id": "Library.parameter",
      "path": "Library.parameter",
      "isModifier": false,
      "mustSupport": true,
      "requirements": "A published library should provide a description of any parameters defined by the library."
    }, {
      "id": "Library.dataRequirement",
      "path": "Library.dataRequirement",
      "isModifier": false,
      "mustSupport": true,
      "requirements": "A published library should provide a description of the data requirements for logic contained in the library."
    }, {
      "id": "Library.content",
      "max": "*",
      "min": 1,
      "path": "Library.content",
      "isModifier": false,
      "mustSupport": true,
      "requirements": "A published library must provide the contents of the library in at least one media format."
    } ]
  },
  "contact": [ {
    "telecom": [ {
      "value": "https://github.com/Healthedata1/DaVinci",
      "system": "url"
    } ]
  } ],
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Library"
}