2nd DSTU Draft For Comment

This page is part of the FHIR Specification (v0.4.0: DSTU 2 Draft). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions

Documentreference.questionnaire.json

Raw JSON (canonical form)

Generated Questionnaire for DocumentReference

{
  "resourceType": "Questionnaire",
  "id": "qs1",
  "contained": [
    {
      "resourceType": "ValueSet",
      "id": "vs2",
      "url": "urn:uuid:d26eabd9-286a-45c7-ba5b-b94180ed1f05",
      "name": "Type options for DocumentReference.subject",
      "description": "Type options for DocumentReference.subject",
      "status": "active",
      "expansion": {
        "timestamp": "2015-02-23T09:20:23+11:00",
        "contains": [
          {
            "system": "http://hl7.org/fhir/resource-types",
            "code": "Patient",
            "display": "Patient"
          },
          {
            "system": "http://hl7.org/fhir/resource-types",
            "code": "Practitioner",
            "display": "Practitioner"
          },
          {
            "system": "http://hl7.org/fhir/resource-types",
            "code": "Group",
            "display": "Group"
          },
          {
            "system": "http://hl7.org/fhir/resource-types",
            "code": "Device",
            "display": "Device"
          }
        ]
      }
    },
    {
      "resourceType": "ValueSet",
      "id": "vs3",
      "url": "urn:uuid:b285ef8e-c082-409c-bff8-ecf6b81cbf76",
      "name": "Type options for DocumentReference.author",
      "description": "Type options for DocumentReference.author",
      "status": "active",
      "expansion": {
        "timestamp": "2015-02-23T09:20:23+11:00",
        "contains": [
          {
            "system": "http://hl7.org/fhir/resource-types",
            "code": "Practitioner",
            "display": "Practitioner"
          },
          {
            "system": "http://hl7.org/fhir/resource-types",
            "code": "Organization",
            "display": "Organization"
          },
          {
            "system": "http://hl7.org/fhir/resource-types",
            "code": "Device",
            "display": "Device"
          },
          {
            "system": "http://hl7.org/fhir/resource-types",
            "code": "Patient",
            "display": "Patient"
          },
          {
            "system": "http://hl7.org/fhir/resource-types",
            "code": "RelatedPerson",
            "display": "RelatedPerson"
          }
        ]
      }
    },
    {
      "resourceType": "ValueSet",
      "id": "vs4",
      "url": "urn:uuid:d254fc53-0a84-46b8-a242-f59193a3d496",
      "name": "Type options for DocumentReference.authenticator",
      "description": "Type options for DocumentReference.authenticator",
      "status": "active",
      "expansion": {
        "timestamp": "2015-02-23T09:20:23+11:00",
        "contains": [
          {
            "system": "http://hl7.org/fhir/resource-types",
            "code": "Practitioner",
            "display": "Practitioner"
          },
          {
            "system": "http://hl7.org/fhir/resource-types",
            "code": "Organization",
            "display": "Organization"
          }
        ]
      }
    }
  ],
  "identifier": [
    {
      "system": "urn:ietf:rfc:3986"
    }
  ],
  "status": "draft",
  "date": "2015-02-23T09:07:27+11:00",
  "publisher": "HL7 FHIR Project (FHIR Management Group)",
  "group": {
    "extension": [
      {
        "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
        "valueString": "A reference to a document."
      }
    ],
    "linkId": "DocumentReference",
    "title": "A reference to a document",
    "text": "Usually, this is used for documents other than those defined by FHIR.",
    "required": true,
    "repeats": false,
    "group": [
      {
        "extension": [
          {
            "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
            "valueString": "The logical id of the resource, as used in the url for the resoure. Once assigned, this value never changes. The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID."
          },
          {
            "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
            "valueString": "string"
          }
        ],
        "linkId": "DocumentReference.id",
        "required": false,
        "repeats": true,
        "question": [
          {
            "linkId": "DocumentReference.id.value",
            "text": "Logical id of this artefact",
            "type": "string",
            "required": false,
            "repeats": false
          }
        ]
      },
      {
        "extension": [
          {
            "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
            "valueString": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource."
          }
        ],
        "linkId": "DocumentReference.meta",
        "text": "Metadata about the resource",
        "required": false,
        "repeats": true
      },
      {
        "extension": [
          {
            "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
            "valueString": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. 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 as much as possible."
          },
          {
            "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
            "valueString": "uri"
          }
        ],
        "linkId": "DocumentReference.implicitRules",
        "required": false,
        "repeats": true,
        "question": [
          {
            "linkId": "DocumentReference.implicitRules.value",
            "text": "A set of rules under which this content was created",
            "type": "string",
            "required": false,
            "repeats": false
          }
        ]
      },
      {
        "extension": [
          {
            "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
            "valueString": "The base language in which the resource is written. 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\n\nNot 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)."
          },
          {
            "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
            "valueString": "code"
          }
        ],
        "linkId": "DocumentReference.language",
        "required": false,
        "repeats": true,
        "question": [
          {
            "linkId": "DocumentReference.language.value",
            "text": "language",
            "type": "choice",
            "required": false,
            "repeats": false
          }
        ]
      },
      {
        "extension": [
          {
            "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
            "valueString": "A human-readable narrative that contains a summary of the resource, and may 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. Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative."
          }
        ],
        "linkId": "DocumentReference.text",
        "text": "Text summary of the resource, for human interpretation",
        "required": false,
        "repeats": true
      },
      {
        "extension": [
          {
            "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
            "valueString": "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. 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."
          }
        ],
        "linkId": "DocumentReference.contained",
        "text": "Contained, inline Resources",
        "required": false,
        "repeats": true
      },
      {
        "extension": [
          {
            "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
            "valueString": "Document identifier as assigned by the source of the document. This identifier is specific to this version of the document. This unique identifier may be used elsewhere to identify this version of the document. CDA Document Id extension and root."
          },
          {
            "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
            "valueString": "Identifier"
          }
        ],
        "linkId": "DocumentReference.masterIdentifier",
        "text": "Master Version Specific Identifier",
        "required": false,
        "repeats": true,
        "question": [
          {
            "linkId": "DocumentReference.masterIdentifier.label",
            "text": "label:",
            "type": "string",
            "required": false,
            "repeats": false
          },
          {
            "linkId": "DocumentReference.masterIdentifier.system",
            "text": "system:",
            "type": "string",
            "required": false,
            "repeats": false
          },
          {
            "linkId": "DocumentReference.masterIdentifier.value",
            "text": "value:",
            "type": "string",
            "required": false,
            "repeats": false
          }
        ]
      },
      {
        "extension": [
          {
            "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
            "valueString": "Other identifiers associated with the document, including version independent, source record and workflow related identifiers. Other identifiers can also include Identifiers may be Accession Numbers, Order Numbers, Referral Request \nIdentifiers, XDS Workflow Instance Identifiers."
          },
          {
            "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
            "valueString": "Identifier"
          }
        ],
        "linkId": "DocumentReference.identifier",
        "text": "Other identifiers for the document",
        "required": false,
        "repeats": true,
        "question": [
          {
            "linkId": "DocumentReference.identifier.label",
            "text": "label:",
            "type": "string",
            "required": false,
            "repeats": false
          },
          {
            "linkId": "DocumentReference.identifier.system",
            "text": "system:",
            "type": "string",
            "required": false,
            "repeats": false
          },
          {
            "linkId": "DocumentReference.identifier.value",
            "text": "value:",
            "type": "string",
            "required": false,
            "repeats": false
          }
        ]
      },
      {
        "extension": [
          {
            "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
            "valueString": "Who or what the document is about. The document can be about a person, (patient or healthcare practitioner), a device (I.e. machine) or even a group of subjects (such as a document about a herd of farm animals, or a set of patients that share a common exposure)."
          }
        ],
        "linkId": "DocumentReference.subject",
        "text": "Who|what is the subject of the document",
        "required": false,
        "repeats": true,
        "question": [
          {
            "linkId": "DocumentReference.subject._type",
            "text": "type",
            "type": "choice",
            "required": false,
            "repeats": false,
            "options": {
              "reference": "#vs2"
            },
            "group": [
              {
                "extension": [
                  {
                    "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
                    "valueString": "Reference"
                  }
                ],
                "linkId": "DocumentReference.subject._Patient",
                "question": [
                  {
                    "extension": [
                      {
                        "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#reference",
                        "valueString": "/Patient?subject=$subj&patient=$subj&encounter=$encounter"
                      }
                    ],
                    "linkId": "DocumentReference.subject._Patient.value",
                    "text": "Patient",
                    "type": "reference",
                    "required": false,
                    "repeats": false
                  }
                ]
              },
              {
                "extension": [
                  {
                    "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
                    "valueString": "Reference"
                  }
                ],
                "linkId": "DocumentReference.subject._Practitioner",
                "question": [
                  {
                    "extension": [
                      {
                        "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#reference",
                        "valueString": "/Practitioner?subject=$subj&patient=$subj&encounter=$encounter"
                      }
                    ],
                    "linkId": "DocumentReference.subject._Practitioner.value",
                    "text": "Practitioner",
                    "type": "reference",
                    "required": false,
                    "repeats": false
                  }
                ]
              },
              {
                "extension": [
                  {
                    "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
                    "valueString": "Reference"
                  }
                ],
                "linkId": "DocumentReference.subject._Group",
                "question": [
                  {
                    "extension": [
                      {
                        "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#reference",
                        "valueString": "/Group?subject=$subj&patient=$subj&encounter=$encounter"
                      }
                    ],
                    "linkId": "DocumentReference.subject._Group.value",
                    "text": "Group",
                    "type": "reference",
                    "required": false,
                    "repeats": false
                  }
                ]
              },
              {
                "extension": [
                  {
                    "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
                    "valueString": "Reference"
                  }
                ],
                "linkId": "DocumentReference.subject._Device",
                "question": [
                  {
                    "extension": [
                      {
                        "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#reference",
                        "valueString": "/Device?subject=$subj&patient=$subj&encounter=$encounter"
                      }
                    ],
                    "linkId": "DocumentReference.subject._Device.value",
                    "text": "Device",
                    "type": "reference",
                    "required": false,
                    "repeats": false
                  }
                ]
              }
            ]
          }
        ]
      },
      {
        "extension": [
          {
            "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
            "valueString": "The type code specifies the precise type of document from the user perspective. It is recommended that the value Set be drawn from a coding scheme providing a fine level of granularity such as LOINC.  (e.g. Patient Summary, Discharge Summary, Prescription, etc.). Key metadata element describing the document, used in searching/filtering."
          },
          {
            "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
            "valueString": "CodeableConcept"
          }
        ],
        "linkId": "DocumentReference.type",
        "text": "Precice type of document",
        "required": true,
        "repeats": true,
        "question": [
          {
            "linkId": "DocumentReference.type.coding",
            "text": "code:",
            "type": "open-choice",
            "required": false,
            "repeats": false
          },
          {
            "linkId": "DocumentReference.type.text",
            "text": "text:",
            "type": "string",
            "required": false,
            "repeats": false
          }
        ]
      },
      {
        "extension": [
          {
            "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
            "valueString": "The class code specifying the high-level use classification of the document type (e.g., Report, Summary, Images, Treatment Plan, Patient Preferences, Workflow). Helps humans to assess whether the document is of interest when viewing an list of documents."
          },
          {
            "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
            "valueString": "CodeableConcept"
          }
        ],
        "linkId": "DocumentReference.class",
        "text": "High-level classification of document",
        "required": false,
        "repeats": true,
        "question": [
          {
            "linkId": "DocumentReference.class.coding",
            "text": "code:",
            "type": "open-choice",
            "required": false,
            "repeats": false
          },
          {
            "linkId": "DocumentReference.class.text",
            "text": "text:",
            "type": "string",
            "required": false,
            "repeats": false
          }
        ]
      },
      {
        "extension": [
          {
            "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
            "valueString": "An identifier that identifies the the document encoding, structure and template that the document conforms to beyond the base format indicated in the mimeType. Helps the processing. Usually is a URN that identifies. For IHE defined Document Content profiles this is a urn issued by IHE."
          },
          {
            "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
            "valueString": "uri"
          }
        ],
        "linkId": "DocumentReference.format",
        "required": false,
        "repeats": true,
        "question": [
          {
            "linkId": "DocumentReference.format.value",
            "text": "Format/content rules for the document",
            "type": "string",
            "required": false,
            "repeats": false
          }
        ]
      },
      {
        "extension": [
          {
            "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
            "valueString": "Identifies who is responsible for adding the information to the document. Not necessarily who did the actual data entry (i.e. typist) it in or who was the source (informant)."
          }
        ],
        "linkId": "DocumentReference.author",
        "text": "Who and/or what authored the document",
        "required": true,
        "repeats": true,
        "question": [
          {
            "linkId": "DocumentReference.author._type",
            "text": "type",
            "type": "choice",
            "required": false,
            "repeats": false,
            "options": {
              "reference": "#vs3"
            },
            "group": [
              {
                "extension": [
                  {
                    "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
                    "valueString": "Reference"
                  }
                ],
                "linkId": "DocumentReference.author._Practitioner",
                "question": [
                  {
                    "extension": [
                      {
                        "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#reference",
                        "valueString": "/Practitioner?subject=$subj&patient=$subj&encounter=$encounter"
                      }
                    ],
                    "linkId": "DocumentReference.author._Practitioner.value",
                    "text": "Practitioner",
                    "type": "reference",
                    "required": false,
                    "repeats": false
                  }
                ]
              },
              {
                "extension": [
                  {
                    "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
                    "valueString": "Reference"
                  }
                ],
                "linkId": "DocumentReference.author._Organization",
                "question": [
                  {
                    "extension": [
                      {
                        "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#reference",
                        "valueString": "/Organization?subject=$subj&patient=$subj&encounter=$encounter"
                      }
                    ],
                    "linkId": "DocumentReference.author._Organization.value",
                    "text": "Organization",
                    "type": "reference",
                    "required": false,
                    "repeats": false
                  }
                ]
              },
              {
                "extension": [
                  {
                    "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
                    "valueString": "Reference"
                  }
                ],
                "linkId": "DocumentReference.author._Device",
                "question": [
                  {
                    "extension": [
                      {
                        "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#reference",
                        "valueString": "/Device?subject=$subj&patient=$subj&encounter=$encounter"
                      }
                    ],
                    "linkId": "DocumentReference.author._Device.value",
                    "text": "Device",
                    "type": "reference",
                    "required": false,
                    "repeats": false
                  }
                ]
              },
              {
                "extension": [
                  {
                    "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
                    "valueString": "Reference"
                  }
                ],
                "linkId": "DocumentReference.author._Patient",
                "question": [
                  {
                    "extension": [
                      {
                        "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#reference",
                        "valueString": "/Patient?subject=$subj&patient=$subj&encounter=$encounter"
                      }
                    ],
                    "linkId": "DocumentReference.author._Patient.value",
                    "text": "Patient",
                    "type": "reference",
                    "required": false,
                    "repeats": false
                  }
                ]
              },
              {
                "extension": [
                  {
                    "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
                    "valueString": "Reference"
                  }
                ],
                "linkId": "DocumentReference.author._RelatedPerson",
                "question": [
                  {
                    "extension": [
                      {
                        "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#reference",
                        "valueString": "/RelatedPerson?subject=$subj&patient=$subj&encounter=$encounter"
                      }
                    ],
                    "linkId": "DocumentReference.author._RelatedPerson.value",
                    "text": "RelatedPerson",
                    "type": "reference",
                    "required": false,
                    "repeats": false
                  }
                ]
              }
            ]
          }
        ]
      },
      {
        "extension": [
          {
            "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
            "valueString": "Identifies the organization or group who is responsible for ongoing maintenance of and access to the document. Identifies the logical organization to go to find the current version, where to report issues, etc. This is different from the physical location of the document, which is the technical location of the document, which host may be delegated to the management of some other organization."
          },
          {
            "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
            "valueString": "Reference"
          }
        ],
        "linkId": "DocumentReference.custodian",
        "required": false,
        "repeats": true,
        "question": [
          {
            "extension": [
              {
                "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#reference",
                "valueString": "/Organization?subject=$subj&patient=$subj&encounter=$encounter"
              }
            ],
            "linkId": "DocumentReference.custodian.value",
            "text": "Org which maintains the document",
            "type": "reference",
            "required": false,
            "repeats": false
          }
        ]
      },
      {
        "extension": [
          {
            "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
            "valueString": "A reference to a domain or server that manages policies under which the document is accessed and/or made available."
          },
          {
            "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
            "valueString": "uri"
          }
        ],
        "linkId": "DocumentReference.policyManager",
        "required": false,
        "repeats": true,
        "question": [
          {
            "linkId": "DocumentReference.policyManager.value",
            "text": "Manages access policies for the document",
            "type": "string",
            "required": false,
            "repeats": false
          }
        ]
      },
      {
        "extension": [
          {
            "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
            "valueString": "Which person or organization authenticates that this document is valid. Represents a participant within the author institution who has legally authenticated or attested the document. Legal authentication implies that a document has been signed manually or electronically by the legal Authenticator."
          }
        ],
        "linkId": "DocumentReference.authenticator",
        "text": "Who/What authenticated the document",
        "required": false,
        "repeats": true,
        "question": [
          {
            "linkId": "DocumentReference.authenticator._type",
            "text": "type",
            "type": "choice",
            "required": false,
            "repeats": false,
            "options": {
              "reference": "#vs4"
            },
            "group": [
              {
                "extension": [
                  {
                    "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
                    "valueString": "Reference"
                  }
                ],
                "linkId": "DocumentReference.authenticator._Practitioner",
                "question": [
                  {
                    "extension": [
                      {
                        "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#reference",
                        "valueString": "/Practitioner?subject=$subj&patient=$subj&encounter=$encounter"
                      }
                    ],
                    "linkId": "DocumentReference.authenticator._Practitioner.value",
                    "text": "Practitioner",
                    "type": "reference",
                    "required": false,
                    "repeats": false
                  }
                ]
              },
              {
                "extension": [
                  {
                    "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
                    "valueString": "Reference"
                  }
                ],
                "linkId": "DocumentReference.authenticator._Organization",
                "question": [
                  {
                    "extension": [
                      {
                        "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#reference",
                        "valueString": "/Organization?subject=$subj&patient=$subj&encounter=$encounter"
                      }
                    ],
                    "linkId": "DocumentReference.authenticator._Organization.value",
                    "text": "Organization",
                    "type": "reference",
                    "required": false,
                    "repeats": false
                  }
                ]
              }
            ]
          }
        ]
      },
      {
        "extension": [
          {
            "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
            "valueString": "When the document was created. Creation time is used for tracking, organizing versions and searching. This is the creation time of the document, not the source material on which it is based."
          },
          {
            "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
            "valueString": "datetime"
          }
        ],
        "linkId": "DocumentReference.created",
        "required": false,
        "repeats": true,
        "question": [
          {
            "linkId": "DocumentReference.created.value",
            "text": "Document creation time",
            "type": "dateTime",
            "required": false,
            "repeats": false
          }
        ]
      },
      {
        "extension": [
          {
            "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
            "valueString": "When the document reference was created. Referencing/indexing time is used for tracking, organizing versions and searching."
          },
          {
            "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
            "valueString": "instant"
          }
        ],
        "linkId": "DocumentReference.indexed",
        "required": true,
        "repeats": true,
        "question": [
          {
            "linkId": "DocumentReference.indexed.value",
            "text": "When this document reference created",
            "type": "instant",
            "required": false,
            "repeats": false
          }
        ]
      },
      {
        "extension": [
          {
            "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
            "valueString": "The status of this document reference. This is the status of the DocumentReference object, which might be independent from the docStatus."
          },
          {
            "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
            "valueString": "code"
          }
        ],
        "linkId": "DocumentReference.status",
        "required": true,
        "repeats": true,
        "question": [
          {
            "linkId": "DocumentReference.status.value",
            "text": "status",
            "type": "choice",
            "required": false,
            "repeats": false
          }
        ]
      },
      {
        "extension": [
          {
            "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
            "valueString": "The status of the underlying document. The document that is pointed to might be in various lifecycle states."
          },
          {
            "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
            "valueString": "CodeableConcept"
          }
        ],
        "linkId": "DocumentReference.docStatus",
        "text": "preliminary | final | appended | amended | entered-in-error",
        "required": false,
        "repeats": true,
        "question": [
          {
            "linkId": "DocumentReference.docStatus.coding",
            "text": "code:",
            "type": "open-choice",
            "required": false,
            "repeats": false
          },
          {
            "linkId": "DocumentReference.docStatus.text",
            "text": "text:",
            "type": "string",
            "required": false,
            "repeats": false
          }
        ]
      },
      {
        "extension": [
          {
            "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
            "valueString": "Relationships that this document has with other document references that already exist."
          }
        ],
        "linkId": "DocumentReference.relatesTo",
        "title": "Relationships to other documents",
        "required": false,
        "repeats": true,
        "group": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
                "valueString": "unique id for the element within a resource (for internal references)."
              },
              {
                "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
                "valueString": "string"
              }
            ],
            "linkId": "DocumentReference.relatesTo.id",
            "required": false,
            "repeats": true,
            "question": [
              {
                "linkId": "DocumentReference.relatesTo.id.value",
                "text": "xml:id (or equivalent in JSON)",
                "type": "string",
                "required": false,
                "repeats": false
              }
            ]
          },
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
                "valueString": "The type of relationship that this document has with anther document. If this document appends another document, then the document cannot be fully understood without also accessing the referenced document."
              },
              {
                "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
                "valueString": "code"
              }
            ],
            "linkId": "DocumentReference.relatesTo.code",
            "required": true,
            "repeats": true,
            "question": [
              {
                "linkId": "DocumentReference.relatesTo.code.value",
                "text": "code",
                "type": "choice",
                "required": false,
                "repeats": false
              }
            ]
          },
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
                "valueString": "The target document of this relationship."
              },
              {
                "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
                "valueString": "Reference"
              }
            ],
            "linkId": "DocumentReference.relatesTo.target",
            "required": true,
            "repeats": true,
            "question": [
              {
                "extension": [
                  {
                    "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#reference",
                    "valueString": "/DocumentReference?subject=$subj&patient=$subj&encounter=$encounter"
                  }
                ],
                "linkId": "DocumentReference.relatesTo.target.value",
                "text": "Target of the relationship",
                "type": "reference",
                "required": false,
                "repeats": false
              }
            ]
          }
        ]
      },
      {
        "extension": [
          {
            "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
            "valueString": "Human-readable description of the source document. This is sometimes known as the \"title\". What the document is about, rather than a terse summary of the document. It is commonly the case that records do not have a title and are collectively referred to by the display name of Record code (e.g. a \"consultation\" or \"progress note\")."
          },
          {
            "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
            "valueString": "string"
          }
        ],
        "linkId": "DocumentReference.description",
        "required": false,
        "repeats": true,
        "question": [
          {
            "linkId": "DocumentReference.description.value",
            "text": "Human-readable description (title)",
            "type": "string",
            "required": false,
            "repeats": false
          }
        ]
      },
      {
        "extension": [
          {
            "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
            "valueString": "A set of Security-Tag codes specifying the level of privacy/security of the Document. The confidentiality codes can carry multiple vocabulary items. HL7 has developed an understanding of security and privacy tags that might be desirable in a Document Sharing environment, called HL7 Healthcare Privacy and Security Classification System (HCS). The following specification is recommended but not mandated, as the vocabulary bindings are an administrative domain responsibility. The use of this method is up to the policy domain such as the XDS Affinity Domain or other Trust Domain where all parties including sender and recipients are trusted to appropriately tag and enforce. \n• [1…1] Confidentiality Security Classification Label Field\n• [0…*] Sensitivity Security Category Label Field\n• [0…*] Compartment Security Category Label Field\n• [0…*] Integrity Security Category Label Field\n• [0…*] Handling Caveat Security Category Field\nIn the HL7 Healthcare Privacy and Security Classification System In the HL7 Healthcare Privacy and Security Classification (HCS) there are code systems specific to Confidentiality, Sensitivity, Integrity, and Handling Caveats. Some values would come from a local vocabulary as they are related to workflow roles and special projects."
          },
          {
            "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
            "valueString": "CodeableConcept"
          }
        ],
        "linkId": "DocumentReference.confidentiality",
        "text": "Sensitivity of source document",
        "required": false,
        "repeats": true,
        "question": [
          {
            "linkId": "DocumentReference.confidentiality.coding",
            "text": "code:",
            "type": "open-choice",
            "required": false,
            "repeats": false
          },
          {
            "linkId": "DocumentReference.confidentiality.text",
            "text": "text:",
            "type": "string",
            "required": false,
            "repeats": false
          }
        ]
      },
      {
        "extension": [
          {
            "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
            "valueString": "The document or url to the document along with critical metadata to prove content has integrity."
          },
          {
            "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
            "valueString": "Attachment"
          }
        ],
        "linkId": "DocumentReference.content",
        "text": "Where to access the document",
        "required": true,
        "repeats": true
      },
      {
        "extension": [
          {
            "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
            "valueString": "The clinical context in which the document was prepared."
          }
        ],
        "linkId": "DocumentReference.context",
        "title": "Clinical context of document",
        "text": "These values are primarily added to help with searching for interesting/relevant documents.",
        "required": false,
        "repeats": false,
        "group": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
                "valueString": "unique id for the element within a resource (for internal references)."
              },
              {
                "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
                "valueString": "string"
              }
            ],
            "linkId": "DocumentReference.context.id",
            "required": false,
            "repeats": true,
            "question": [
              {
                "linkId": "DocumentReference.context.id.value",
                "text": "xml:id (or equivalent in JSON)",
                "type": "string",
                "required": false,
                "repeats": false
              }
            ]
          },
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
                "valueString": "This list of codes represents the main clinical acts, such as a colonoscopy or an appendectomy, being documented. In some cases, the event is inherent in the typeCode, such as a \"History and Physical Report\" in which the procedure being documented is necessarily a \"History and Physical\" act. An event can further specialize the act inherent in the type, such as \nwhere it is simply \"Procedure Report\" and the procedure was a \"colonoscopy\". If one or more event codes are included, they shall not conflict with the values inherent in the class or type elements as such a conflict would create an ambiguous situation."
              },
              {
                "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
                "valueString": "CodeableConcept"
              }
            ],
            "linkId": "DocumentReference.context.event",
            "text": "Main Clinical Acts Documented",
            "required": false,
            "repeats": true,
            "question": [
              {
                "linkId": "DocumentReference.context.event.coding",
                "text": "code:",
                "type": "open-choice",
                "required": false,
                "repeats": false
              },
              {
                "linkId": "DocumentReference.context.event.text",
                "text": "text:",
                "type": "string",
                "required": false,
                "repeats": false
              }
            ]
          },
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
                "valueString": "The time period over which the service that is described by the document was provided."
              },
              {
                "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
                "valueString": "Period"
              }
            ],
            "linkId": "DocumentReference.context.period",
            "text": "Time of service that is being documented",
            "required": false,
            "repeats": true,
            "question": [
              {
                "linkId": "DocumentReference.context.period.low",
                "text": "start:",
                "type": "dateTime",
                "required": false,
                "repeats": false
              },
              {
                "linkId": "DocumentReference.context.period.end",
                "text": "end:",
                "type": "dateTime",
                "required": false,
                "repeats": false
              }
            ]
          },
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
                "valueString": "The kind of facility where the patient was seen."
              },
              {
                "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
                "valueString": "CodeableConcept"
              }
            ],
            "linkId": "DocumentReference.context.facilityType",
            "text": "Kind of facility where patient was seen",
            "required": false,
            "repeats": true,
            "question": [
              {
                "linkId": "DocumentReference.context.facilityType.coding",
                "text": "code:",
                "type": "open-choice",
                "required": false,
                "repeats": false
              },
              {
                "linkId": "DocumentReference.context.facilityType.text",
                "text": "text:",
                "type": "string",
                "required": false,
                "repeats": false
              }
            ]
          }
        ]
      }
    ]
  }
}

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.