{
  "resourceType": "http://hl7.org/fhir/uv/sql-on-fhir/StructureDefinition/ViewDefinition",
  "status": "active",
  "resource": "Bundle",
  "id": "ViewDefinition-Immunization",
  "title": "Vaccinaties",
  "profile": "http://nictiz.nl/fhir/StructureDefinition/zib-Vaccination",
  "constant": [ {
    "name": "sortColumn",
    "value": "date" }
  ],
  "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": "date",
          "name": "Datum",
          "type": "dateTime",
          "tag": [ { "name": "Zib element", "value": "VaccinatieDatum" } ]
        },
        {
          "path": "iif(exists(vaccineCode.text),vaccineCode.text,vaccineCode.coding.display)",
          "name": "Product",
          "type": "string",
          "tag": [ { "name": "Zib element", "value": "ProductCode" } ]
        },
        {
          "path": "note.text",
          "name": "Toelichting",
          "type": "string",
          "tag": [ { "name": "Zib element", "value": "Toelichting" } ]
        }
      ],
      "forEach": "entry.resource.where(resourceType='Immunization')"
    }
  ]
}