{
  "resourceType": "StructureDefinition",
  "url": "https://purl.org/elab/fhir/StructureDefinition/DataSource",
  "name": "DataSource",
  "status": "draft",
  "date": "2017-06-13T09:15:31.025801+00:00",
  "description": "Details of the data source.",
  "fhirVersion": "3.0.0",
  "kind": "complex-type",
  "abstract": false,
  "type": "Attachment",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Attachment",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "path": "Attachment.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Attachment.extension:dataSourceDescription",
        "path": "Attachment.extension",
        "sliceName": "dataSourceDescription",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Attachment",
            "profile": "https://purl.org/elab/fhir/StructureDefinition/DataSourceDescription"
          }
        ]
      },
      {
        "id": "Attachment.extension:custodian",
        "path": "Attachment.extension",
        "sliceName": "custodian",
        "short": "Custodian",
        "definition": "Data custodian, can have differing roles depending on custodian role.",
        "min": 1,
        "type": [
          {
            "code": "Attachment",
            "profile": "https://purl.org/elab/fhir/StructureDefinition/Custodian"
          }
        ]
      },
      {
        "id": "Attachment.extension:dataSourceType",
        "path": "Attachment.extension",
        "sliceName": "dataSourceType",
        "short": "Data Source Type",
        "definition": "The type of data source, a code from a ValueSet.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Attachment",
            "profile": "https://purl.org/elab/fhir/StructureDefinition/DataSourceType"
          }
        ]
      },
      {
        "id": "Basic.extension:dataCollection",
        "path": "Basic.extension",
        "sliceName": "dataCollection",
        "short": "Data Collection",
        "definition": "Holds information about the individual data collections in a sweep",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "https://purl.org/elab/fhir/StructureDefinition/DataCollectionRef"
          }
        ]
      },
      {
        "id": "Attachment.contentType",
        "path": "Attachment.contentType",
        "min": 1
      },
      {
        "id": "Attachment.url",
        "path": "Attachment.url",
        "min": 1
      },
      {
        "id": "Attachment.title",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Attachment.title",
        "min": 1
      }
    ]
  }
}