{
  "resourceType": "http://hl7.org/fhir/uv/sql-on-fhir/StructureDefinition/ViewDefinition",
  "resource": "Bundle",
  "id": "ViewDefinition-Wilsbeschikkingen",
  "title": "Wilsbeschikkingen",
  "select": [
    {
      "column": [
        {
          "path": "meta.extension('http://hl7.org/fhir/4.0/StructureDefinition/extension-Meta.source').valueUri",
          "name": "Bron",
          "description": "Lookup adhv uri (AGB-Z of OID) <code>&lt;adressering-base&gt;/Organization?identifier=&lt;.meta.tag.code&gt;</code> en gebruik dan <code>Organization.name</code>",
          "type": "string",
          "tag": [ { "name": "Zib element", "value": "nvt" } ]
        },
        {
          "path": "dateTime",
          "name": "Datum",
          "description": "Kunnen vage datums zijn",
          "type": "dateTime",
          "tag": [ { "name": "Zib element", "value": "WilsverklaringDatum" } ]
        },
        {
          "path": "category[1].text | category[1].coding.display",
          "name": "Type",
          "type": "string",
          "tag": [ { "name": "Zib element", "value": "WilsverklaringType" } ]
        },
        {
          "path": "extension('http://nictiz.nl/fhir/StructureDefinition/Comment').valueString",
          "name": "Toelichting",
          "type": "string",
          "tag": [ { "name": "Zib element", "value": "Toelichting" } ]
        },
        {
          "path": "sourceAttachement.data",
          "name": "+Document",
          "type": "base64Binary",
          "tag": [ { "name": "Zib element", "value": "WilsverklaringDocument" } ]
        }
      ],
      "forEach": "entry.resource.where(resourceType='Consent' and category.coding.where(code='11341000146107'))"
    }
  ]
}