{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2017-06-20T15:12:01.53+00:00"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode": "fhir"
    }
  ],
  "url": "https://purl.org/elab/fhirStructureDefinition/Instrument",
  "name": "Instrument",
  "status": "draft",
  "date": "2017-06-19T13:00:05.5262823+00:00",
  "description": "References the data collection instrument that was used (i.e. a questionnaire)",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Basic",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Basic",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "path": "Basic.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Basic.extension:implementation",
        "path": "Basic.extension",
        "sliceName": "implementation",
        "short": "Instrument Reference",
        "definition": "Implementation of an data collection instrument, (to be extended if more use cases come forward).",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Questionnaire",
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "Basic.extension:name",
        "path": "Basic.extension",
        "sliceName": "name",
        "short": "Instrument name",
        "definition": "The name of the instrument.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Attachment",
            "profile": "https://purl.org/elab/fhirStructureDefinition/Name"
          }
        ]
      },
      {
        "id": "Basic.extension:specificationFormat",
        "path": "Basic.extension",
        "sliceName": "specificationFormat",
        "short": "Instrument specification",
        "definition": "A description of how the questionnaire/instrument is specified. E.g. is it available as a pdf, is it stored in a machine readable format? This information is intented to be used by the e-Lab team in providing support for describing the questionnaire within the e-lab.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Attachment",
            "profile": "https://purl.org/elab/fhirStructureDefinition/excel/QuestionnaireSpecificationFormat"
          }
        ]
      },
      {
        "id": "Basic.extension:instrumentURL",
        "path": "Basic.extension",
        "sliceName": "instrumentURL",
        "short": "URL",
        "definition": "Digital instrument location. If information about the instrument is availble online then this could be a link. If the instrument is a paper questionnaire then it could be scanned, uploaded to the e-Lab and a link added here.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Attachment",
            "profile": "https://purl.org/elab/fhirStructureDefinition/excel/InstrumentURL"
          }
        ]
      }
    ]
  }
}