FHIR © HL7.org  |  Server Home  |  XIG Home  |  Server Source  |  FHIR  

FHIR IG Statistics: StructureDefinition/sdc-question-library

Packagehl7.fhir.uv.sdc.r4b
TypeStructureDefinition
Idsdc-question-library
FHIR VersionR4B
Sourcehttp://hl7.org/fhir/uv/sdc/http://hl7.org/fhir/uv/sdc/STU3/StructureDefinition-sdc-question-library.html
URLhttp://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-question-library
Version3.0.0
Statusdraft
Date2022-03-08T18:37:19+00:00
NameSDCQuestionLibrary
TitleSDC Question Library
Realmuv
Authorityhl7
DescriptionAn example library of questions showing how questions can be compiled into a library for use by modular questionnaires
TypeDemographics
Kindlogical

Resources that use this resource

No resources found


Resources that this resource uses

ValueSet
sdc-question-library-statesAustralian States - example value set
sdc-question-library-statesAustralian States - example value set

Narrative

Note: links and images are rebased to the (stated) source


Source

{
  "resourceType": "StructureDefinition",
  "id": "sdc-question-library",
  "text": {
    "status": "extensions",
    "div": "<!-- snip (see above) -->"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
      "valueCode": "informative",
      "_valueCode": {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
            "valueCanonical": "http://hl7.org/fhir/uv/sdc/ImplementationGuide/hl7.fhir.uv.sdc"
          }
        ]
      }
    }
  ],
  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-question-library",
  "version": "3.0.0",
  "name": "SDCQuestionLibrary",
  "title": "SDC Question Library",
  "status": "draft",
  "experimental": true,
  "date": "2022-03-08T18:37:19+00:00",
  "publisher": "HL7 International - FHIR Infrastructure Work Group",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://hl7.org/Special/committees/fiwg"
        }
      ]
    }
  ],
  "description": "An example library of questions showing how questions can be compiled into a library for use by modular questionnaires",
  "jurisdiction": [
    {
      "coding": [
        {
          "system": "http://unstats.un.org/unsd/methods/m49/m49.htm",
          "code": "001"
        }
      ]
    }
  ],
  "fhirVersion": "4.3.0",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    }
  ],
  "kind": "logical",
  "abstract": true,
  "type": "Demographics",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Resource",
  "derivation": "specialization",
  "snapshot": {
    "element": [
      {
        "id": "Demographics",
        "path": "Demographics",
        "short": "Base Resource",
        "definition": "A set of questions related to demographics",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Resource",
          "min": 0,
          "max": "*"
        },
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "Entity. Role, or Act"
          }
        ]
      },
      {
        "id": "Demographics.id",
        "path": "Demographics.id",
        "short": "Logical id of this artifact",
        "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
        "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.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Resource.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Demographics.meta",
        "path": "Demographics.meta",
        "short": "Metadata about the resource",
        "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.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Resource.meta",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Meta"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Demographics.implicitRules",
        "path": "Demographics.implicitRules",
        "short": "A set of rules under which this content was created",
        "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.",
        "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.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Resource.implicitRules",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "uri"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": true,
        "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
      },
      {
        "id": "Demographics.language",
        "path": "Demographics.language",
        "short": "Language of the resource content",
        "definition": "The base language in which the resource is written.",
        "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).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Resource.language",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "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
            }
          ],
          "strength": "preferred",
          "description": "A human language.",
          "valueSet": "http://hl7.org/fhir/ValueSet/languages"
        }
      },
      {
        "id": "Demographics.dob",
        "extension": [
          {
            "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
            "valueExpression": {
              "name": "name",
              "language": "text/fhirpath",
              "expression": "%patient.birthdate"
            }
          }
        ],
        "path": "Demographics.dob",
        "label": "What is this person's date of birth?",
        "definition": "n/a",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Demographics.dob",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "date"
          }
        ],
        "minValueDate": "1900-01-01",
        "_maxValueDate": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression",
              "valueExpression": {
                "language": "text/fhirpath",
                "expression": "now() as date + 1 day"
              }
            }
          ]
        }
      },
      {
        "id": "Demographics.sex",
        "extension": [
          {
            "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
            "valueExpression": {
              "name": "name",
              "language": "text/fhirpath",
              "expression": "iif(%patient.gender='male','M', iif(%patient.gender='female','F'))"
            }
          }
        ],
        "path": "Demographics.sex",
        "label": "What is this person's gender?",
        "definition": "n/a",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Demographics.sex",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "http://hl7.org/fhir/ValueSet/administrative-gender"
        }
      },
      {
        "id": "Demographics.address",
        "path": "Demographics.address",
        "label": "What is this person's current mailing address?",
        "definition": "n/a",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Demographics.address",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Element"
          }
        ]
      },
      {
        "id": "Demographics.address.street",
        "path": "Demographics.address.street",
        "label": "Street address",
        "definition": "n/a",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Demographics.address.street",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Demographics.address.city",
        "path": "Demographics.address.city",
        "label": "City/Town",
        "definition": "n/a",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Demographics.address.city",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Demographics.address.state",
        "path": "Demographics.address.state",
        "label": "State",
        "definition": "n/a",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Demographics.address.state",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "http://hl7.org/fhir/uv/sdc/ValueSet/sdc-question-library-states"
        }
      },
      {
        "id": "Demographics.address.postalCode",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/entryFormat",
            "valueString": "9999"
          }
        ],
        "path": "Demographics.address.postalCode",
        "label": "Postal Code",
        "definition": "n/a",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Demographics.address.postalCode",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/regex",
                "valueString": "[\\d]{4}"
              }
            ],
            "code": "string"
          }
        ]
      },
      {
        "id": "Demographics.name",
        "path": "Demographics.name",
        "label": "What is the person's official name?",
        "definition": "n/a",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Demographics.name",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Element"
          }
        ]
      },
      {
        "id": "Demographics.name.prefix",
        "path": "Demographics.name.prefix",
        "label": "Prefix",
        "definition": "n/a",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Demographics.name.prefix",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Demographics.name.first",
        "path": "Demographics.name.first",
        "label": "First",
        "definition": "n/a",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Demographics.name.first",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "maxLength": 100
      },
      {
        "id": "Demographics.name.last",
        "path": "Demographics.name.last",
        "label": "Last",
        "definition": "n/a",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Demographics.name.last",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "maxLength": 100
      }
    ]
  },
  "differential": {
    "element": [
      {
        "id": "Demographics",
        "path": "Demographics",
        "definition": "A set of questions related to demographics"
      },
      {
        "id": "Demographics.dob",
        "extension": [
          {
            "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
            "valueExpression": {
              "name": "name",
              "language": "text/fhirpath",
              "expression": "%patient.birthdate"
            }
          }
        ],
        "path": "Demographics.dob",
        "label": "What is this person's date of birth?",
        "definition": "n/a",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "date"
          }
        ],
        "minValueDate": "1900-01-01",
        "_maxValueDate": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression",
              "valueExpression": {
                "language": "text/fhirpath",
                "expression": "now() as date + 1 day"
              }
            }
          ]
        }
      },
      {
        "id": "Demographics.sex",
        "extension": [
          {
            "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
            "valueExpression": {
              "name": "name",
              "language": "text/fhirpath",
              "expression": "iif(%patient.gender='male','M', iif(%patient.gender='female','F'))"
            }
          }
        ],
        "path": "Demographics.sex",
        "label": "What is this person's gender?",
        "definition": "n/a",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "http://hl7.org/fhir/ValueSet/administrative-gender"
        }
      },
      {
        "id": "Demographics.address",
        "path": "Demographics.address",
        "label": "What is this person's current mailing address?",
        "definition": "n/a",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Element"
          }
        ]
      },
      {
        "id": "Demographics.address.street",
        "path": "Demographics.address.street",
        "label": "Street address",
        "definition": "n/a",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Demographics.address.city",
        "path": "Demographics.address.city",
        "label": "City/Town",
        "definition": "n/a",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Demographics.address.state",
        "path": "Demographics.address.state",
        "label": "State",
        "definition": "n/a",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "http://hl7.org/fhir/uv/sdc/ValueSet/sdc-question-library-states"
        }
      },
      {
        "id": "Demographics.address.postalCode",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/entryFormat",
            "valueString": "9999"
          }
        ],
        "path": "Demographics.address.postalCode",
        "label": "Postal Code",
        "definition": "n/a",
        "min": 1,
        "max": "1",
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/regex",
                "valueString": "[\\d]{4}"
              }
            ],
            "code": "string"
          }
        ]
      },
      {
        "id": "Demographics.name",
        "path": "Demographics.name",
        "label": "What is the person's official name?",
        "definition": "n/a",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Element"
          }
        ]
      },
      {
        "id": "Demographics.name.prefix",
        "path": "Demographics.name.prefix",
        "label": "Prefix",
        "definition": "n/a",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Demographics.name.first",
        "path": "Demographics.name.first",
        "label": "First",
        "definition": "n/a",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "maxLength": 100
      },
      {
        "id": "Demographics.name.last",
        "path": "Demographics.name.last",
        "label": "Last",
        "definition": "n/a",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "maxLength": 100
      }
    ]
  }
}