Release 4 R5 Final QA

This page is part of the FHIR Specification (v4.0.1: R4 (v5.0.0-draft-final: Final QA Preview for R5 - Mixed Normative and STU see ballot notes ) in it's permanent home (it will always be available at this URL). ). The current version which supercedes this version is 5.0.0 . For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3

Extension-questionnaire-fhirtype.json

Example CodeSystem/nhin-purposeofuse (JSON)

FHIR Terminology Infrastructure Work Group Maturity Level : N/A Standards Status : Informative Compartments : Not linked to any defined compartments

Raw JSON ( canonical form + also see JSON Format Specification )

fhirType NHIN Purpose of Use

{
  "resourceType" : "StructureDefinition",
  "id" : "questionnaire-fhirType",
  "extension" : [{
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
    "valueCode" : "fhir"

  "resourceType" : "CodeSystem",
  "id" : "nhin-purposeofuse",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n      <p>This code system \n        <code>http://healthit.gov/nhin/purposeofuse</code> defines the following codes:\n      </p>\n      <table class=\"codes\">\n        <tr>\n          <td style=\"white-space:nowrap\">\n            <b>Code</b>\n          </td>\n          <td>\n            <b>Display</b>\n          </td>\n          <td>\n            <b>Definition</b>\n          </td>\n        </tr>\n        <tr>\n          <td style=\"white-space:nowrap\">TREATMENT\n            <a name=\"nhin-purposeofuse-TREATMENT\"> </a>\n          </td>\n          <td>Treatment</td>\n          <td>Treatment</td>\n        </tr>\n        <tr>\n          <td style=\"white-space:nowrap\">PAYMENT\n            <a name=\"nhin-purposeofuse-PAYMENT\"> </a>\n          </td>\n          <td>Payment</td>\n          <td>Payment</td>\n        </tr>\n        <tr>\n          <td style=\"white-space:nowrap\">OPERATIONS\n            <a name=\"nhin-purposeofuse-OPERATIONS\"> </a>\n          </td>\n          <td>Operations</td>\n          <td>Healthcare Operations</td>\n        </tr>\n        <tr>\n          <td style=\"white-space:nowrap\">SYSADMIN\n            <a name=\"nhin-purposeofuse-SYSADMIN\"> </a>\n          </td>\n          <td>Sysadmin</td>\n          <td>System Administration</td>\n        </tr>\n        <tr>\n          <td style=\"white-space:nowrap\">FRAUD\n            <a name=\"nhin-purposeofuse-FRAUD\"> </a>\n          </td>\n          <td>Fraud</td>\n          <td>Fraud detection</td>\n        </tr>\n        <tr>\n          <td style=\"white-space:nowrap\">PSYCHOTHERAPY\n            <a name=\"nhin-purposeofuse-PSYCHOTHERAPY\"> </a>\n          </td>\n          <td>Psychotherapy</td>\n          <td>Use or disclosure of Psychotherapy Notes</td>\n        </tr>\n        <tr>\n          <td style=\"white-space:nowrap\">TRAINING\n            <a name=\"nhin-purposeofuse-TRAINING\"> </a>\n          </td>\n          <td>Training</td>\n          <td>Use or disclosure by the covered entity for its own training programs</td>\n        </tr>\n        <tr>\n          <td style=\"white-space:nowrap\">LEGAL\n            <a name=\"nhin-purposeofuse-LEGAL\"> </a>\n          </td>\n          <td>Legal</td>\n          <td>Use or disclosure by the covered entity to defend itself in a legal action</td>\n        </tr>\n        <tr>\n          <td style=\"white-space:nowrap\">MARKETING\n            <a name=\"nhin-purposeofuse-MARKETING\"> </a>\n          </td>\n          <td>Marketing</td>\n          <td>Marketing</td>\n        </tr>\n        <tr>\n          <td style=\"white-space:nowrap\">DIRECTORY\n            <a name=\"nhin-purposeofuse-DIRECTORY\"> </a>\n          </td>\n          <td>Directory</td>\n          <td>Use and disclosure for facility directories</td>\n        </tr>\n        <tr>\n          <td style=\"white-space:nowrap\">FAMILY\n            <a name=\"nhin-purposeofuse-FAMILY\"> </a>\n          </td>\n          <td>Family</td>\n          <td>Disclose to a family member, other relative, or a close personal friend of the individual</td>\n        </tr>\n        <tr>\n          <td style=\"white-space:nowrap\">PRESENT\n            <a name=\"nhin-purposeofuse-PRESENT\"> </a>\n          </td>\n          <td>Present</td>\n          <td>Uses and disclosures with the individual present.</td>\n        </tr>\n        <tr>\n          <td style=\"white-space:nowrap\">EMERGENCY\n            <a name=\"nhin-purposeofuse-EMERGENCY\"> </a>\n          </td>\n          <td>Emergency</td>\n          <td>Permission cannot practicably be provided because of the individual's incapacity or an emergency.</td>\n        </tr>\n        <tr>\n          <td style=\"white-space:nowrap\">DISASTER\n            <a name=\"nhin-purposeofuse-DISASTER\"> </a>\n          </td>\n          <td>Disaster</td>\n          <td>Use and disclosures for disaster relief purposes.</td>\n        </tr>\n        <tr>\n          <td style=\"white-space:nowrap\">PUBLICHEALTH\n            <a name=\"nhin-purposeofuse-PUBLICHEALTH\"> </a>\n          </td>\n          <td>Public Health</td>\n          <td>Uses and disclosures for public health activities.</td>\n        </tr>\n        <tr>\n          <td style=\"white-space:nowrap\">ABUSE\n            <a name=\"nhin-purposeofuse-ABUSE\"> </a>\n          </td>\n          <td>Abuse</td>\n          <td>Disclosures about victims of abuse, neglect or domestic violence.</td>\n        </tr>\n        <tr>\n          <td style=\"white-space:nowrap\">OVERSIGHT\n            <a name=\"nhin-purposeofuse-OVERSIGHT\"> </a>\n          </td>\n          <td>Oversight</td>\n          <td>Uses and disclosures for health oversight activities.</td>\n        </tr>\n        <tr>\n          <td style=\"white-space:nowrap\">JUDICIAL\n            <a name=\"nhin-purposeofuse-JUDICIAL\"> </a>\n          </td>\n          <td>Judicial</td>\n          <td>Disclosures for judicial and administrative proceedings.</td>\n        </tr>\n        <tr>\n          <td style=\"white-space:nowrap\">LAW\n            <a name=\"nhin-purposeofuse-LAW\"> </a>\n          </td>\n          <td>Law Enforcement</td>\n          <td>Disclosures for law enforcement purposes.</td>\n        </tr>\n        <tr>\n          <td style=\"white-space:nowrap\">DECEASED\n            <a name=\"nhin-purposeofuse-DECEASED\"> </a>\n          </td>\n          <td>Deceased</td>\n          <td>Uses and disclosures about decedents.</td>\n        </tr>\n        <tr>\n          <td style=\"white-space:nowrap\">DONATION\n            <a name=\"nhin-purposeofuse-DONATION\"> </a>\n          </td>\n          <td>Donation</td>\n          <td>Uses and disclosures for cadaveric organ,  eye or tissue donation purposes</td>\n        </tr>\n        <tr>\n          <td style=\"white-space:nowrap\">RESEARCH\n            <a name=\"nhin-purposeofuse-RESEARCH\"> </a>\n          </td>\n          <td>Research</td>\n          <td>Uses and disclosures for research purposes.</td>\n        </tr>\n        <tr>\n          <td style=\"white-space:nowrap\">THREAT\n            <a name=\"nhin-purposeofuse-THREAT\"> </a>\n          </td>\n          <td>Threat</td>\n          <td>Uses and disclosures to avert a serious threat to health or safety.</td>\n        </tr>\n        <tr>\n          <td style=\"white-space:nowrap\">GOVERNMENT\n            <a name=\"nhin-purposeofuse-GOVERNMENT\"> </a>\n          </td>\n          <td>Government</td>\n          <td>Uses and disclosures for specialized government functions.</td>\n        </tr>\n        <tr>\n          <td style=\"white-space:nowrap\">WORKERSCOMP\n            <a name=\"nhin-purposeofuse-WORKERSCOMP\"> </a>\n          </td>\n          <td>Worker's Comp</td>\n          <td>Disclosures for workers' compensation.</td>\n        </tr>\n        <tr>\n          <td style=\"white-space:nowrap\">COVERAGE\n            <a name=\"nhin-purposeofuse-COVERAGE\"> </a>\n          </td>\n          <td>Coverage</td>\n          <td>Disclosures for insurance or disability coverage determination</td>\n        </tr>\n        <tr>\n          <td style=\"white-space:nowrap\">REQUEST\n            <a name=\"nhin-purposeofuse-REQUEST\"> </a>\n          </td>\n          <td>Request</td>\n          <td>Request of the Individual</td>\n        </tr>\n      </table>\n    </div>"

  },
  {
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
    "valueInteger" : 1

  "url" : "http://healthit.gov/nhin/purposeofuse",
  "identifier" : [{
    "system" : "urn:ietf:rfc:3986",
    "value" : "urn:oid:2.16.840.1.113883.4.642.4.1825"

  }],
  "url" : "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
  "version" : "4.0.1",
  "name" : "fhirType",
  "status" : "draft",
  "date" : "2013-07-04",
  "publisher" : "HL7",

  "version" : "2.0",
  "name" : "NHINPurposeOfUse",
  "title" : "NHIN PurposeOfUse",
  "status" : "active",
  "experimental" : false,
  "date" : "2010-01-29",
  "publisher" : "Nationwide Health Information Network (NHIN)",

  "contact" : [{
    "telecom" : [{
      "system" : "url",
      "value" : "http://www.hl7.org"

      "value" : "https://www.healthit.gov/sites/default/files/nhin-authorization-framework-production-specification-v2.0-1.pdf"

    }]
  }],
  "description" : "For questionnaires generated from FHIR profiles, indicates the FHIR data type or resource type that corresponds to this node.",
  "fhirVersion" : "4.0.1",
  "mapping" : [{
    "identity" : "v2",
    "uri" : "http://hl7.org/v2",
    "name" : "HL7 v2 Mapping"

  "description" : "This value set is suitable for use with the provenance resource. It is derived from, but not compatible with, the HL7 v3 Purpose of use Code system.",
  "caseSensitive" : true,
  "valueSet" : "http://hl7.org/fhir/ValueSet/nhin-purposeofuse",
  "content" : "complete",
  "concept" : [{
    "code" : "TREATMENT",
    "display" : "Treatment",
    "definition" : "Treatment"

  },
  {
    "identity" : "rim",
    "uri" : "http://hl7.org/v3",
    "name" : "RIM Mapping"
  }],
  "kind" : "complex-type",
  "abstract" : false,
  "context" : [{
    "type" : "element",
    "expression" : "Questionnaire.item"

    "code" : "PAYMENT",
    "display" : "Payment",
    "definition" : "Payment"

  },
  {
    "type" : "element",
    "expression" : "Questionnaire.item.item"
  }],
  "contextInvariant" : ["type!='display'"],
  "type" : "Extension",
  "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation" : "constraint",
  "snapshot" : {
    "element" : [{
      "id" : "Extension",
      "path" : "Extension",
      "short" : "The underlying FHIR data type",
      "definition" : "For questionnaires generated from FHIR profiles, indicates the FHIR data type or resource type that corresponds to this node.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Extension",
        "min" : 0,
        "max" : "*"
      },
      "condition" : ["ele-1"],
      "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"
      },
      {
        "key" : "ext-1",
        "severity" : "error",
        "human" : "Must have either extensions or value[x], not both",
        "expression" : "extension.exists() != value.exists()",
        "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
        "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
      }],
      "isModifier" : false,
      "mapping" : [{
        "identity" : "v2",
        "map" : "N/A"
      },
      {
        "identity" : "rim",
        "map" : "N/A (MIF-level)"
      }]
    },
    {
      "id" : "Extension.id",
      "path" : "Extension.id",
      "representation" : ["xmlAttr"],
      "short" : "Unique id for inter-element referencing",
      "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Element.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" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "Extension.extension",
      "path" : "Extension.extension",
      "slicing" : {
        "discriminator" : [{
          "type" : "value",
          "path" : "url"
        }],
        "description" : "Extensions are always sliced by (at least) url",
        "rules" : "open"
      },
      "short" : "Extension",
      "definition" : "An Extension",
      "min" : 0,
      "max" : "0",
      "base" : {
        "path" : "Element.extension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "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"
      },
      {
        "key" : "ext-1",
        "severity" : "error",
        "human" : "Must have either extensions or value[x], not both",
        "expression" : "extension.exists() != value.exists()",
        "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
      }],
      "isModifier" : false,
      "isSummary" : false
    },
    {
      "id" : "Extension.url",
      "path" : "Extension.url",
      "representation" : ["xmlAttr"],
      "short" : "identifies the meaning of the extension",
      "definition" : "Source of the definition for the extension code - a logical name or a URL.",
      "comment" : "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.",
      "min" : 1,
      "max" : "1",
      "base" : {
        "path" : "Extension.url",
        "min" : 1,
        "max" : "1"
      },
      "type" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl" : "uri"
        }],
        "code" : "http://hl7.org/fhirpath/System.String"
      }],
      "fixedUri" : "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType",
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "Extension.value[x]",
      "path" : "Extension.value[x]",
      "short" : "Value of extension",
      "definition" : "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/extensibility.html) for a list).",
      "min" : 1,
      "max" : "1",
      "base" : {
        "path" : "Extension.value[x]",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "string"
      }],
      "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,
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    }]

    "code" : "OPERATIONS",
    "display" : "Operations",
    "definition" : "Healthcare Operations"

  },
  "differential" : {
    "element" : [{
      "id" : "Extension",
      "path" : "Extension",
      "short" : "The underlying FHIR data type",
      "definition" : "For questionnaires generated from FHIR profiles, indicates the FHIR data type or resource type that corresponds to this node.",
      "min" : 0,
      "max" : "1",
      "mapping" : [{
        "identity" : "v2",
        "map" : "N/A"
      },
      {
        "identity" : "rim",
        "map" : "N/A (MIF-level)"
      }]
    },
    {
      "id" : "Extension.extension",
      "path" : "Extension.extension",
      "max" : "0"
    },
    {
      "id" : "Extension.url",
      "path" : "Extension.url",
      "fixedUri" : "http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType"
    },
    {
      "id" : "Extension.value[x]",
      "path" : "Extension.value[x]",
      "min" : 1,
      "type" : [{
        "code" : "string"
      }]
    }]
  }

  {
    "code" : "SYSADMIN",
    "display" : "Sysadmin",
    "definition" : "System Administration"
  },
  {
    "code" : "FRAUD",
    "display" : "Fraud",
    "definition" : "Fraud detection"
  },
  {
    "code" : "PSYCHOTHERAPY",
    "display" : "Psychotherapy",
    "definition" : "Use or disclosure of Psychotherapy Notes"
  },
  {
    "code" : "TRAINING",
    "display" : "Training",
    "definition" : "Use or disclosure by the covered entity for its own training programs"
  },
  {
    "code" : "LEGAL",
    "display" : "Legal",
    "definition" : "Use or disclosure by the covered entity to defend itself in a legal action"
  },
  {
    "code" : "MARKETING",
    "display" : "Marketing",
    "definition" : "Marketing"
  },
  {
    "code" : "DIRECTORY",
    "display" : "Directory",
    "definition" : "Use and disclosure for facility directories"
  },
  {
    "code" : "FAMILY",
    "display" : "Family",
    "definition" : "Disclose to a family member, other relative, or a close personal friend of the individual"
  },
  {
    "code" : "PRESENT",
    "display" : "Present",
    "definition" : "Uses and disclosures with the individual present."
  },
  {
    "code" : "EMERGENCY",
    "display" : "Emergency",
    "definition" : "Permission cannot practicably be provided because of the individual's incapacity or an emergency."
  },
  {
    "code" : "DISASTER",
    "display" : "Disaster",
    "definition" : "Use and disclosures for disaster relief purposes."
  },
  {
    "code" : "PUBLICHEALTH",
    "display" : "Public Health",
    "definition" : "Uses and disclosures for public health activities."
  },
  {
    "code" : "ABUSE",
    "display" : "Abuse",
    "definition" : "Disclosures about victims of abuse, neglect or domestic violence."
  },
  {
    "code" : "OVERSIGHT",
    "display" : "Oversight",
    "definition" : "Uses and disclosures for health oversight activities."
  },
  {
    "code" : "JUDICIAL",
    "display" : "Judicial",
    "definition" : "Disclosures for judicial and administrative proceedings."
  },
  {
    "code" : "LAW",
    "display" : "Law Enforcement",
    "definition" : "Disclosures for law enforcement purposes."
  },
  {
    "code" : "DECEASED",
    "display" : "Deceased",
    "definition" : "Uses and disclosures about decedents."
  },
  {
    "code" : "DONATION",
    "display" : "Donation",
    "definition" : "Uses and disclosures for cadaveric organ,  eye or tissue donation purposes"
  },
  {
    "code" : "RESEARCH",
    "display" : "Research",
    "definition" : "Uses and disclosures for research purposes."
  },
  {
    "code" : "THREAT",
    "display" : "Threat",
    "definition" : "Uses and disclosures to avert a serious threat to health or safety."
  },
  {
    "code" : "GOVERNMENT",
    "display" : "Government",
    "definition" : "Uses and disclosures for specialized government functions."
  },
  {
    "code" : "WORKERSCOMP",
    "display" : "Worker's Comp",
    "definition" : "Disclosures for workers' compensation."
  },
  {
    "code" : "COVERAGE",
    "display" : "Coverage",
    "definition" : "Disclosures for insurance or disability coverage determination"
  },
  {
    "code" : "REQUEST",
    "display" : "Request",
    "definition" : "Request of the Individual"
  }]

}

Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.