{
  "resourceType": "StructureDefinition",
  "display": "Data Dictionary",
  "constrainedType": "Extension",
  "base": "http://hl7.org/fhir/StructureDefinition/Extension",
  "id": "spark328",
  "meta": {
    "versionId": "spark328",
    "lastUpdated": "2015-10-02T12:23:09.281+00:00"
  },
  "url": "http://hl7.org/fhir/StructureDefinition/datadictionary",
  "name": "Associates the structure definition with a collection of Data Elements",
  "status": "draft",
  "date": "2014-01-31",
  "publisher": "Health Level Seven, Inc. - FHIR Core WG",
  "contact": [
    {
      "telecom": [
        {
          "system": "other",
          "value": "http://hl7.org/special/committees/FHIR"
        }
      ]
    }
  ],
  "description": "This extension associates a structure definition with a data dictionary - a collection of data elements that any instance of data that conforms to the structure definition must also conform to. The value of the extension is a uri the defines a query that identifies the collection of relevant data elements  This extension can be used on any structure definition that is a constraint on the resource types Observation and Questionnaire. THe profile specifies which elements are mandatory etc., but any elements in a resource that conforms to the structure definition must also conform to one of the defined data elements.  For Observation: * Observation.code must be associated with a matching Data Element by DataElement.code.  * The structure definition should bind Observation.code to a value set that has the same codes as the collection of data elements (though it can be narrower) * the unit and the quantity value should conform to the rules laid down in the matching Data Element  For Questionnaire: * todo.",
  "fhirVersion": "1.0.1",
  "kind": "datatype",
  "abstract": false,
  "contextType": "resource",
  "context": [
    "StructureDefinition"
  ],
  "snapshot": {
    "element": [
      {
        "comments": "The query can select a set of data element resources, or identify a bundle that is a collection of data elements.",
        "id": "Extension",
        "path": "Extension",
        "short": "Associates the structure definition with a collection of Data Elements",
        "definition": "This extension associates a structure definition with a data dictionary - a collection of data elements that any instance of data that conforms to the structure definition must also conform to. The value of the extension is a uri the defines a query that identifies the collection of relevant data elements  This extension can be used on any structure definition that is a constraint on the resource types Observation and Questionnaire. THe profile specifies which elements are mandatory etc., but any elements in a resource that conforms to the structure definition must also conform to one of the defined data elements.  For Observation: * Observation.code must be associated with a matching Data Element by DataElement.code.  * The structure definition should bind Observation.code to a value set that has the same codes as the collection of data elements (though it can be narrower) * the unit and the quantity value should conform to the rules laid down in the matching Data Element  For Questionnaire: * todo.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension"
          }
        ]
      }
    ]
  },
  "differential": {
    "element": [
      {
        "comments": "The query can select a set of data element resources, or identify a bundle that is a collection of data elements.",
        "path": "Extension",
        "short": "Associates the structure definition with a collection of Data Elements",
        "definition": "This extension associates a structure definition with a data dictionary - a collection of data elements that any instance of data that conforms to the structure definition must also conform to. The value of the extension is a uri the defines a query that identifies the collection of relevant data elements  This extension can be used on any structure definition that is a constraint on the resource types Observation and Questionnaire. THe profile specifies which elements are mandatory etc., but any elements in a resource that conforms to the structure definition must also conform to one of the defined data elements.  For Observation: * Observation.code must be associated with a matching Data Element by DataElement.code.  * The structure definition should bind Observation.code to a value set that has the same codes as the collection of data elements (though it can be narrower) * the unit and the quantity value should conform to the rules laid down in the matching Data Element  For Questionnaire: * todo.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension"
          }
        ]
      },
      {
        "name": "extension",
        "path": "Extension.extension",
        "max": "0"
      },
      {
        "path": "Extension.url",
        "type": [
          {
            "code": "uri"
          }
        ],
        "fixedUri": "http://hl7.org/fhir/StructureDefinition/datadictionary"
      },
      {
        "path": "Extension.value[x]",
        "min": 1,
        "type": [
          {
            "code": "string"
          }
        ]
      }
    ]
  }
}