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

Diagnosticorder.questionnaire.json

Raw JSON (canonical form)

Generated Questionnaire for DiagnosticOrder

{
  "resourceType": "Questionnaire",
  "id": "qs1",
  "contained": [
    {
      "resourceType": "ValueSet",
      "id": "vs2",
      "url": "urn:uuid:cbcee4f7-bfe4-471d-b943-e255b14136c6",
      "name": "Type options for DiagnosticOrder.subject",
      "description": "Type options for DiagnosticOrder.subject",
      "status": "active",
      "expansion": {
        "timestamp": "2015-02-23T09:20:03+11:00",
        "contains": [
          {
            "system": "http://hl7.org/fhir/resource-types",
            "code": "Patient",
            "display": "Patient"
          },
          {
            "system": "http://hl7.org/fhir/resource-types",
            "code": "Group",
            "display": "Group"
          },
          {
            "system": "http://hl7.org/fhir/resource-types",
            "code": "Location",
            "display": "Location"
          },
          {
            "system": "http://hl7.org/fhir/resource-types",
            "code": "Device",
            "display": "Device"
          }
        ]
      }
    },
    {
      "resourceType": "ValueSet",
      "id": "vs3",
      "url": "urn:uuid:945cca83-3eb7-4005-aef5-90d7ccb14543",
      "name": "Type options for DiagnosticOrder.supportingInformation",
      "description": "Type options for DiagnosticOrder.supportingInformation",
      "status": "active",
      "expansion": {
        "timestamp": "2015-02-23T09:20:03+11:00",
        "contains": [
          {
            "system": "http://hl7.org/fhir/resource-types",
            "code": "Observation",
            "display": "Observation"
          },
          {
            "system": "http://hl7.org/fhir/resource-types",
            "code": "Condition",
            "display": "Condition"
          },
          {
            "system": "http://hl7.org/fhir/resource-types",
            "code": "DocumentReference",
            "display": "DocumentReference"
          }
        ]
      }
    },
    {
      "resourceType": "ValueSet",
      "id": "vs4",
      "url": "urn:uuid:aae343b9-6326-416c-8a4e-edb35d70eed6",
      "name": "Type options for DiagnosticOrder.event.actor",
      "description": "Type options for DiagnosticOrder.event.actor",
      "status": "active",
      "expansion": {
        "timestamp": "2015-02-23T09:20:03+11:00",
        "contains": [
          {
            "system": "http://hl7.org/fhir/resource-types",
            "code": "Practitioner",
            "display": "Practitioner"
          },
          {
            "system": "http://hl7.org/fhir/resource-types",
            "code": "Device",
            "display": "Device"
          }
        ]
      }
    },
    {
      "resourceType": "ValueSet",
      "id": "vs5",
      "url": "urn:uuid:4a7aa4df-095c-4284-9792-964fe0fbcaa5",
      "name": "Type options for DiagnosticOrder.item.bodySite[x]",
      "description": "Type options for DiagnosticOrder.item.bodySite[x]",
      "status": "active",
      "expansion": {
        "timestamp": "2015-02-23T09:20:03+11:00",
        "contains": [
          {
            "system": "http://hl7.org/fhir/data-types",
            "code": "CodeableConcept",
            "display": "CodeableConcept"
          },
          {
            "system": "http://hl7.org/fhir/resource-types",
            "code": "BodySite",
            "display": "BodySite"
          }
        ]
      }
    }
  ],
  "identifier": [
    {
      "system": "urn:ietf:rfc:3986"
    }
  ],
  "status": "draft",
  "date": "2015-02-23T09:07:27+11:00",
  "publisher": "HL7 FHIR Project (Orders and Observations)",
  "group": {
    "extension": [
      {
        "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
        "valueString": "A record of a request for a diagnostic investigation service to be performed."
      }
    ],
    "linkId": "DiagnosticOrder",
    "title": "A request for a diagnostic service",
    "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": "DiagnosticOrder.id",
        "required": false,
        "repeats": true,
        "question": [
          {
            "linkId": "DiagnosticOrder.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": "DiagnosticOrder.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": "DiagnosticOrder.implicitRules",
        "required": false,
        "repeats": true,
        "question": [
          {
            "linkId": "DiagnosticOrder.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": "DiagnosticOrder.language",
        "required": false,
        "repeats": true,
        "question": [
          {
            "linkId": "DiagnosticOrder.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": "DiagnosticOrder.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": "DiagnosticOrder.contained",
        "text": "Contained, inline Resources",
        "required": false,
        "repeats": true
      },
      {
        "extension": [
          {
            "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
            "valueString": "Who or what the investigation is to be performed on. This is usually a human patient, but diagnostic tests can also be requested on animals, groups of humans or animals, devices such as dialysis machines, or even locations (typically for environmental scans)."
          }
        ],
        "linkId": "DiagnosticOrder.subject",
        "text": "Who and/or what test is about",
        "required": true,
        "repeats": true,
        "question": [
          {
            "linkId": "DiagnosticOrder.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": "DiagnosticOrder.subject._Patient",
                "question": [
                  {
                    "extension": [
                      {
                        "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#reference",
                        "valueString": "/Patient?subject=$subj&patient=$subj&encounter=$encounter"
                      }
                    ],
                    "linkId": "DiagnosticOrder.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": "DiagnosticOrder.subject._Group",
                "question": [
                  {
                    "extension": [
                      {
                        "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#reference",
                        "valueString": "/Group?subject=$subj&patient=$subj&encounter=$encounter"
                      }
                    ],
                    "linkId": "DiagnosticOrder.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": "DiagnosticOrder.subject._Location",
                "question": [
                  {
                    "extension": [
                      {
                        "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#reference",
                        "valueString": "/Location?subject=$subj&patient=$subj&encounter=$encounter"
                      }
                    ],
                    "linkId": "DiagnosticOrder.subject._Location.value",
                    "text": "Location",
                    "type": "reference",
                    "required": false,
                    "repeats": false
                  }
                ]
              },
              {
                "extension": [
                  {
                    "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
                    "valueString": "Reference"
                  }
                ],
                "linkId": "DiagnosticOrder.subject._Device",
                "question": [
                  {
                    "extension": [
                      {
                        "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#reference",
                        "valueString": "/Device?subject=$subj&patient=$subj&encounter=$encounter"
                      }
                    ],
                    "linkId": "DiagnosticOrder.subject._Device.value",
                    "text": "Device",
                    "type": "reference",
                    "required": false,
                    "repeats": false
                  }
                ]
              }
            ]
          }
        ]
      },
      {
        "extension": [
          {
            "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
            "valueString": "The practitioner that holds legal responsibility for ordering the investigation."
          },
          {
            "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
            "valueString": "Reference"
          }
        ],
        "linkId": "DiagnosticOrder.orderer",
        "required": false,
        "repeats": true,
        "question": [
          {
            "extension": [
              {
                "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#reference",
                "valueString": "/Practitioner?subject=$subj&patient=$subj&encounter=$encounter"
              }
            ],
            "linkId": "DiagnosticOrder.orderer.value",
            "text": "Who ordered the test",
            "type": "reference",
            "required": false,
            "repeats": false
          }
        ]
      },
      {
        "extension": [
          {
            "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
            "valueString": "Identifiers assigned to this order by the order or by the receiver."
          },
          {
            "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
            "valueString": "Identifier"
          }
        ],
        "linkId": "DiagnosticOrder.identifier",
        "text": "Identifiers assigned to this order",
        "required": false,
        "repeats": true,
        "question": [
          {
            "linkId": "DiagnosticOrder.identifier.label",
            "text": "label:",
            "type": "string",
            "required": false,
            "repeats": false
          },
          {
            "linkId": "DiagnosticOrder.identifier.system",
            "text": "system:",
            "type": "string",
            "required": false,
            "repeats": false
          },
          {
            "linkId": "DiagnosticOrder.identifier.value",
            "text": "value:",
            "type": "string",
            "required": false,
            "repeats": false
          }
        ]
      },
      {
        "extension": [
          {
            "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
            "valueString": "An encounter that provides additional information about the healthcare context in which this request is made."
          },
          {
            "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
            "valueString": "Reference"
          }
        ],
        "linkId": "DiagnosticOrder.encounter",
        "required": false,
        "repeats": true,
        "question": [
          {
            "extension": [
              {
                "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#reference",
                "valueString": "/Encounter?subject=$subj&patient=$subj&encounter=$encounter"
              }
            ],
            "linkId": "DiagnosticOrder.encounter.value",
            "text": "The encounter that this diagnostic order is associated with",
            "type": "reference",
            "required": false,
            "repeats": false
          }
        ]
      },
      {
        "extension": [
          {
            "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
            "valueString": "An explanation or justification for why this diagnostic investigation is being requested. This may be used to decide how the diagnostic investigation will be performed, or even if it will be performed at all."
          },
          {
            "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
            "valueString": "string"
          }
        ],
        "linkId": "DiagnosticOrder.clinicalNotes",
        "required": false,
        "repeats": true,
        "question": [
          {
            "linkId": "DiagnosticOrder.clinicalNotes.value",
            "text": "Explanation/Justification for test",
            "type": "string",
            "required": false,
            "repeats": false
          }
        ]
      },
      {
        "extension": [
          {
            "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
            "valueString": "Additional clinical information about the patient or specimen that may influence test interpretations. This information includes diagnosis, clinical findings and other observations.  Examples include reporting the amount of inspired carbon dioxide for blood gasses, the point in the menstrual cycle for cervical pap tests, and other conditions that influence test interpretations."
          }
        ],
        "linkId": "DiagnosticOrder.supportingInformation",
        "text": "Additional clinical information",
        "required": false,
        "repeats": true,
        "question": [
          {
            "linkId": "DiagnosticOrder.supportingInformation._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": "DiagnosticOrder.supportingInformation._Observation",
                "question": [
                  {
                    "extension": [
                      {
                        "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#reference",
                        "valueString": "/Observation?subject=$subj&patient=$subj&encounter=$encounter"
                      }
                    ],
                    "linkId": "DiagnosticOrder.supportingInformation._Observation.value",
                    "text": "Observation",
                    "type": "reference",
                    "required": false,
                    "repeats": false
                  }
                ]
              },
              {
                "extension": [
                  {
                    "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
                    "valueString": "Reference"
                  }
                ],
                "linkId": "DiagnosticOrder.supportingInformation._Condition",
                "question": [
                  {
                    "extension": [
                      {
                        "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#reference",
                        "valueString": "/Condition?subject=$subj&patient=$subj&encounter=$encounter"
                      }
                    ],
                    "linkId": "DiagnosticOrder.supportingInformation._Condition.value",
                    "text": "Condition",
                    "type": "reference",
                    "required": false,
                    "repeats": false
                  }
                ]
              },
              {
                "extension": [
                  {
                    "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
                    "valueString": "Reference"
                  }
                ],
                "linkId": "DiagnosticOrder.supportingInformation._DocumentReference",
                "question": [
                  {
                    "extension": [
                      {
                        "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#reference",
                        "valueString": "/DocumentReference?subject=$subj&patient=$subj&encounter=$encounter"
                      }
                    ],
                    "linkId": "DiagnosticOrder.supportingInformation._DocumentReference.value",
                    "text": "DocumentReference",
                    "type": "reference",
                    "required": false,
                    "repeats": false
                  }
                ]
              }
            ]
          }
        ]
      },
      {
        "extension": [
          {
            "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
            "valueString": "One or more specimens that the diagnostic investigation is about. Many investigation requests will create a need for specimens, but the request itself is not actually about the specimens. This is provided for when the diagnostic investigation is requested on already existing specimens."
          },
          {
            "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
            "valueString": "Reference"
          }
        ],
        "linkId": "DiagnosticOrder.specimen",
        "required": false,
        "repeats": true,
        "question": [
          {
            "extension": [
              {
                "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#reference",
                "valueString": "/Specimen?subject=$subj&patient=$subj&encounter=$encounter"
              }
            ],
            "linkId": "DiagnosticOrder.specimen.value",
            "text": "If the whole order relates to specific specimens",
            "type": "reference",
            "required": false,
            "repeats": false
          }
        ]
      },
      {
        "extension": [
          {
            "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
            "valueString": "The status of the order. Typically the system placing the order sets the status to requested. Thereafter, the order is maintained by the receiver that updates the status as the request is handled."
          },
          {
            "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
            "valueString": "code"
          }
        ],
        "linkId": "DiagnosticOrder.status",
        "required": false,
        "repeats": true,
        "question": [
          {
            "linkId": "DiagnosticOrder.status.value",
            "text": "status",
            "type": "choice",
            "required": false,
            "repeats": false
          }
        ]
      },
      {
        "extension": [
          {
            "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
            "valueString": "The clinical priority associated with this order. The Order resource also has a priority. Generally, these should be the same, but they can be different, for instance in the case where the clinician indicates that the order is urgent, but the subsequent workflow process overrule this priority for some reason. The effective default value is \"normal\"."
          },
          {
            "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
            "valueString": "code"
          }
        ],
        "linkId": "DiagnosticOrder.priority",
        "required": false,
        "repeats": true,
        "question": [
          {
            "linkId": "DiagnosticOrder.priority.value",
            "text": "priority",
            "type": "choice",
            "required": false,
            "repeats": false
          }
        ]
      },
      {
        "extension": [
          {
            "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
            "valueString": "A summary of the events of interest that have occurred as the request is processed. E.g. when the order was made, various processing steps (specimens received), when it was completed."
          }
        ],
        "linkId": "DiagnosticOrder.event",
        "title": "A list of events of interest in the lifecycle",
        "text": "This is not the same as an audit trail - it is a view of the important things that happened in the past. Typically, there would only be one entry for any given status, and systems may not record all the status events.",
        "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": "DiagnosticOrder.event.id",
            "required": false,
            "repeats": true,
            "question": [
              {
                "linkId": "DiagnosticOrder.event.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 status for the event."
              },
              {
                "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
                "valueString": "code"
              }
            ],
            "linkId": "DiagnosticOrder.event.status",
            "required": true,
            "repeats": true,
            "question": [
              {
                "linkId": "DiagnosticOrder.event.status.value",
                "text": "status",
                "type": "choice",
                "required": false,
                "repeats": false
              }
            ]
          },
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
                "valueString": "Additional information about the event that occurred - e.g. if the status remained unchanged."
              },
              {
                "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
                "valueString": "CodeableConcept"
              }
            ],
            "linkId": "DiagnosticOrder.event.description",
            "text": "More information about the event and its context",
            "required": false,
            "repeats": true,
            "question": [
              {
                "linkId": "DiagnosticOrder.event.description.coding",
                "text": "code:",
                "type": "open-choice",
                "required": false,
                "repeats": false
              },
              {
                "linkId": "DiagnosticOrder.event.description.text",
                "text": "text:",
                "type": "string",
                "required": false,
                "repeats": false
              }
            ]
          },
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
                "valueString": "The date/time at which the event occurred."
              },
              {
                "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
                "valueString": "datetime"
              }
            ],
            "linkId": "DiagnosticOrder.event.dateTime",
            "required": true,
            "repeats": true,
            "question": [
              {
                "linkId": "DiagnosticOrder.event.dateTime.value",
                "text": "The date at which the event happened",
                "type": "dateTime",
                "required": false,
                "repeats": false
              }
            ]
          },
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
                "valueString": "The person who was responsible for performing or recording the action."
              }
            ],
            "linkId": "DiagnosticOrder.event.actor",
            "text": "Who recorded or did this",
            "required": false,
            "repeats": true,
            "question": [
              {
                "linkId": "DiagnosticOrder.event.actor._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": "DiagnosticOrder.event.actor._Practitioner",
                    "question": [
                      {
                        "extension": [
                          {
                            "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#reference",
                            "valueString": "/Practitioner?subject=$subj&patient=$subj&encounter=$encounter"
                          }
                        ],
                        "linkId": "DiagnosticOrder.event.actor._Practitioner.value",
                        "text": "Practitioner",
                        "type": "reference",
                        "required": false,
                        "repeats": false
                      }
                    ]
                  },
                  {
                    "extension": [
                      {
                        "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
                        "valueString": "Reference"
                      }
                    ],
                    "linkId": "DiagnosticOrder.event.actor._Device",
                    "question": [
                      {
                        "extension": [
                          {
                            "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#reference",
                            "valueString": "/Device?subject=$subj&patient=$subj&encounter=$encounter"
                          }
                        ],
                        "linkId": "DiagnosticOrder.event.actor._Device.value",
                        "text": "Device",
                        "type": "reference",
                        "required": false,
                        "repeats": false
                      }
                    ]
                  }
                ]
              }
            ]
          }
        ]
      },
      {
        "extension": [
          {
            "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
            "valueString": "The specific diagnostic investigations that are requested as part of this request. Sometimes, there can only be one item per request, but in most contexts, more than one investigation can be requested."
          }
        ],
        "linkId": "DiagnosticOrder.item",
        "title": "The items the orderer requested",
        "text": "There would always be at least one item in normal usage, but this is optional so that a workflow can quote order details without having to list the items.",
        "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": "DiagnosticOrder.item.id",
            "required": false,
            "repeats": true,
            "question": [
              {
                "linkId": "DiagnosticOrder.item.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": "A code that identifies a particular diagnostic investigation, or panel of investigations, that have been requested. Many laboratory tests and radiology tests embed the specimen/organ system in the test name, for example,  serum or serum/plasma glucose, or a chest xray. The specimen may not be recorded separately from the test code."
              },
              {
                "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
                "valueString": "CodeableConcept"
              }
            ],
            "linkId": "DiagnosticOrder.item.code",
            "text": "Code to indicate the item (test or panel) being ordered",
            "required": true,
            "repeats": true,
            "question": [
              {
                "linkId": "DiagnosticOrder.item.code.coding",
                "text": "code:",
                "type": "open-choice",
                "required": false,
                "repeats": false
              },
              {
                "linkId": "DiagnosticOrder.item.code.text",
                "text": "text:",
                "type": "string",
                "required": false,
                "repeats": false
              }
            ]
          },
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
                "valueString": "If the item is related to a specific specimen. A single specimen should not appear in both DiagnosticOrder.specimen and DiagnosticOrder.item.specimen."
              },
              {
                "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
                "valueString": "Reference"
              }
            ],
            "linkId": "DiagnosticOrder.item.specimen",
            "required": false,
            "repeats": true,
            "question": [
              {
                "extension": [
                  {
                    "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#reference",
                    "valueString": "/Specimen?subject=$subj&patient=$subj&encounter=$encounter"
                  }
                ],
                "linkId": "DiagnosticOrder.item.specimen.value",
                "text": "If this item relates to specific specimens",
                "type": "reference",
                "required": false,
                "repeats": false
              }
            ]
          },
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
                "valueString": "Anatomical location where the request test should be performed."
              }
            ],
            "linkId": "DiagnosticOrder.item.bodySite[x]",
            "text": "Location of requested test (if applicable)",
            "required": false,
            "repeats": true,
            "question": [
              {
                "linkId": "DiagnosticOrder.item.bodySite[x]._type",
                "text": "type",
                "type": "choice",
                "required": false,
                "repeats": false,
                "options": {
                  "reference": "#vs5"
                },
                "group": [
                  {
                    "extension": [
                      {
                        "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
                        "valueString": "CodeableConcept"
                      }
                    ],
                    "linkId": "DiagnosticOrder.item.bodySite[x]._CodeableConcept",
                    "text": "CodeableConcept",
                    "question": [
                      {
                        "linkId": "DiagnosticOrder.item.bodySite[x]._CodeableConcept.coding",
                        "text": "code:",
                        "type": "open-choice",
                        "required": false,
                        "repeats": false
                      },
                      {
                        "linkId": "DiagnosticOrder.item.bodySite[x]._CodeableConcept.text",
                        "text": "text:",
                        "type": "string",
                        "required": false,
                        "repeats": false
                      }
                    ]
                  },
                  {
                    "extension": [
                      {
                        "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
                        "valueString": "Reference"
                      }
                    ],
                    "linkId": "DiagnosticOrder.item.bodySite[x]._BodySite",
                    "question": [
                      {
                        "extension": [
                          {
                            "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#reference",
                            "valueString": "/BodySite?subject=$subj&patient=$subj&encounter=$encounter"
                          }
                        ],
                        "linkId": "DiagnosticOrder.item.bodySite[x]._BodySite.value",
                        "text": "BodySite",
                        "type": "reference",
                        "required": false,
                        "repeats": false
                      }
                    ]
                  }
                ]
              }
            ]
          },
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
                "valueString": "The status of this individual item within the order. If the request has multiple items that have their own life cycles, then the items will have their own status while the overall diagnostic order is (usually) \"in-progress\"."
              },
              {
                "url": "http://www.healthintersections.com.au/fhir/Profile/metadata#type",
                "valueString": "code"
              }
            ],
            "linkId": "DiagnosticOrder.item.status",
            "required": false,
            "repeats": true,
            "question": [
              {
                "linkId": "DiagnosticOrder.item.status.value",
                "text": "status",
                "type": "choice",
                "required": false,
                "repeats": false
              }
            ]
          },
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/Profile/questionnaire-extensions#flyover",
                "valueString": "A summary of the events of interest that have occurred as this item of the request is processed."
              }
            ],
            "linkId": "DiagnosticOrder.item.event",
            "title": "Events specific to this item",
            "required": false,
            "repeats": true
          }
        ]
      }
    ]
  }
}

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.