{
  "resourceType": "StructureDefinition",
  "id": "knowledge-distribution-valueset-library",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2018-09-29T20:27:06.866+00:00"
  },
  "url": "http://hl7.org/fhir/us/ecr/StructureDefinition/knowledge-distribution-valueset-library",
  "name": "knowledge-distribution-valueset-library",
  "title": "RCTC Valueset Library",
  "status": "draft",
  "date": "2018-08-19",
  "description": "Defines the library containing the Reportable Condition Trigger Code value sets. These are used in Public Health as trigger codes to kick off creation of electronic initial case reports and reportability responses. ",
  "fhirVersion": "3.0.1",
  "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.identifier",
        "path": "Library.identifier",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Library.identifier.system",
        "path": "Library.identifier.system",
        "short": "The namespace for Object Identifiers",
        "definition": "Fixed to the namespace: urn:ietf:rfc:3986 for OIDs",
        "min": 1,
        "patternUri": "urn:ietf:rfc:3986",
        "mustSupport": true
      },
      {
        "id": "Library.identifier.value",
        "path": "Library.identifier.value",
        "short": "The OID for the RCTC ValueSet Library",
        "definition": "The Object Identifier of the Reportable Condition Trigger Code library",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Library.version",
        "path": "Library.version",
        "short": "The version of the RCTC ValueSet Library. ",
        "definition": "The RCTC Definition Version. Usually a date. ",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Library.name",
        "path": "Library.name",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Library.title",
        "path": "Library.title",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Library.status",
        "path": "Library.status",
        "mustSupport": true
      },
      {
        "id": "Library.type",
        "path": "Library.type",
        "short": "asset-collection",
        "definition": "Identifies the type of library. Fixed to Asset-Collection. ",
        "mustSupport": true
      },
      {
        "id": "Library.type.coding",
        "path": "Library.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Library.type.coding.system",
        "path": "Library.type.coding.system",
        "min": 1,
        "fixedUri": "http://hl7.org/fhir/ValueSet/library-type"
      },
      {
        "id": "Library.type.coding.code",
        "path": "Library.type.coding.code",
        "min": 1,
        "fixedCode": "asset-collection"
      },
      {
        "id": "Library.description",
        "path": "Library.description",
        "min": 1,
        "patternMarkdown": "Triggers for initiating decision support for electronic case reports"
      },
      {
        "id": "Library.effectivePeriod",
        "path": "Library.effectivePeriod",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Library.effectivePeriod.start",
        "path": "Library.effectivePeriod.start",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Library.relatedArtifact",
        "path": "Library.relatedArtifact",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "display"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Library.relatedArtifact:sliceDiagnosisProblemValueSet",
        "path": "Library.relatedArtifact",
        "sliceName": "sliceDiagnosisProblemValueSet",
        "short": "Diagnosis Problem Value Set",
        "definition": "References to the Diagnosis Problem Value Set resource",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Library.relatedArtifact:sliceDiagnosisProblemValueSet.type",
        "path": "Library.relatedArtifact.type",
        "short": "composed-of",
        "definition": "The type of relationship to the related artifact. Fixed to composed-of.",
        "patternCode": "composed-of"
      },
      {
        "id": "Library.relatedArtifact:sliceDiagnosisProblemValueSet.display",
        "path": "Library.relatedArtifact.display",
        "min": 1,
        "patternString": "Diagnosis Problem Triggers for Public Health Reporting"
      },
      {
        "id": "Library.relatedArtifact:sliceDiagnosisProblemValueSet.resource",
        "path": "Library.relatedArtifact.resource",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Library.relatedArtifact:sliceDiagnosisProblemValueSet.resource.reference",
        "path": "Library.relatedArtifact.resource.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Library.relatedArtifact:sliceOrganismSubstanceValueSet",
        "path": "Library.relatedArtifact",
        "sliceName": "sliceOrganismSubstanceValueSet",
        "short": "Organism Substance Value Set",
        "definition": "References to the Organism Substance Value Set resource",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Library.relatedArtifact:sliceOrganismSubstanceValueSet.type",
        "path": "Library.relatedArtifact.type",
        "short": "composed-of",
        "definition": "The type of relationship to the related artifact. Fixed to composed-of.",
        "patternCode": "composed-of"
      },
      {
        "id": "Library.relatedArtifact:sliceOrganismSubstanceValueSet.display",
        "path": "Library.relatedArtifact.display",
        "min": 1,
        "patternString": "Organism Substance Triggers for Public Health Reporting"
      },
      {
        "id": "Library.relatedArtifact:sliceOrganismSubstanceValueSet.resource",
        "path": "Library.relatedArtifact.resource",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Library.relatedArtifact:sliceOrganismSubstanceValueSet.resource.reference",
        "path": "Library.relatedArtifact.resource.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Library.relatedArtifact:sliceLabOrderTestNameValueSet",
        "path": "Library.relatedArtifact",
        "sliceName": "sliceLabOrderTestNameValueSet",
        "short": "Lab Order Test Value Set",
        "definition": "References to the Lab Order Test Value Set resource",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Library.relatedArtifact:sliceLabOrderTestNameValueSet.type",
        "path": "Library.relatedArtifact.type",
        "short": "composed-of",
        "definition": "The type of relationship to the related artifact. Fixed to composed-of.",
        "patternCode": "composed-of"
      },
      {
        "id": "Library.relatedArtifact:sliceLabOrderTestNameValueSet.display",
        "path": "Library.relatedArtifact.display",
        "min": 1,
        "patternString": "Lab Order Test Name Triggers for Public Health Reporting"
      },
      {
        "id": "Library.relatedArtifact:sliceLabOrderTestNameValueSet.resource",
        "path": "Library.relatedArtifact.resource",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Library.relatedArtifact:sliceLabOrderTestNameValueSet.resource.reference",
        "path": "Library.relatedArtifact.resource.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Library.relatedArtifact:sliceLabObsTestNameValueSet",
        "path": "Library.relatedArtifact",
        "sliceName": "sliceLabObsTestNameValueSet",
        "short": "Lab Observation Test Value Set",
        "definition": "References to the Lab Observation Test Value Set resource",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Library.relatedArtifact:sliceLabObsTestNameValueSet.type",
        "path": "Library.relatedArtifact.type",
        "short": "composed-of",
        "definition": "The type of relationship to the related artifact. Fixed to composed-of.",
        "patternCode": "composed-of"
      },
      {
        "id": "Library.relatedArtifact:sliceLabObsTestNameValueSet.display",
        "path": "Library.relatedArtifact.display",
        "min": 1,
        "patternString": "Lab Obs Test Name Triggers for Public Health Reporting"
      },
      {
        "id": "Library.relatedArtifact:sliceLabObsTestNameValueSet.resource",
        "path": "Library.relatedArtifact.resource",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Library.relatedArtifact:sliceLabObsTestNameValueSet.resource.reference",
        "path": "Library.relatedArtifact.resource.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Library.relatedArtifact:sliceDrugsPrescribedValueSet",
        "path": "Library.relatedArtifact",
        "sliceName": "sliceDrugsPrescribedValueSet",
        "short": "Drugs Prescribed Value Set",
        "definition": "References to the Drugs Prescribed Value Set resource",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Library.relatedArtifact:sliceDrugsPrescribedValueSet.type",
        "path": "Library.relatedArtifact.type",
        "short": "composed-of",
        "definition": "The type of relationship to the related artifact. Fixed to composed-of.",
        "patternCode": "composed-of"
      },
      {
        "id": "Library.relatedArtifact:sliceDrugsPrescribedValueSet.display",
        "path": "Library.relatedArtifact.display",
        "min": 1,
        "patternString": "Drugs Prescribed Triggers for Public Health Reporting"
      },
      {
        "id": "Library.relatedArtifact:sliceDrugsPrescribedValueSet.resource",
        "path": "Library.relatedArtifact.resource",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Library.relatedArtifact:sliceDrugsPrescribedValueSet.resource.reference",
        "path": "Library.relatedArtifact.resource.reference",
        "min": 1,
        "mustSupport": true
      }
    ]
  }
}