{ "description": "A derived profile from the nl-core-Patient resource to exchange information on patients who received a vaccination", "_filename": "nl-vzvz-rivm-Patient.json", "package_name": "vzvz.covid-vaccinations", "date": "2022-03-01T10:44:32.8672038+00:00", "derivation": "constraint", "publisher": "VZVZ", "fhirVersion": "4.0.1", "name": "NlVzvzRivmPatient", "abstract": false, "type": "Patient", "experimental": null, "resourceType": "StructureDefinition", "title": "nl vzvz rivm Patient", "package_version": "0.4.0-beta", "status": "draft", "id": "c8efe0bf-ae31-4f7d-abf1-24b9b05f6126", "kind": "resource", "url": "http://vzvz.nl/fhir/StructureDefinition/nl-vzvz-rivm-Patient", "version": null, "differential": { "element": [ { "id": "Patient", "path": "Patient", "condition": [ "pat-1" ], "constraint": [ { "key": "pat-1", "human": "A patient has either a BSN identifier or a COA identifier", "xpath": "(/Patient//identifier[system = 'http://fhir.nl/fhir/NamingSystem/bsn'] or /Patient//identifier[system = 'urn:oid:2.16.840.1.113883.2.4.3.111.6']) and not(/Patient//identifier[system = 'http://fhir.nl/fhir/NamingSystem/bsn'] and /Patient//identifier[system = 'urn:oid:2.16.840.1.113883.2.4.3.111.6'])", "source": "http://vzvz.nl/fhir/StructureDefinition/nl-vzvz-rivm-Patient", "severity": "error", "expression": "Patient.identifier.exists(system = 'http://fhir.nl/fhir/NamingSystem/bsn') xor Patient.identifier.exists(system = 'urn:oid:2.16.840.1.113883.2.4.3.111.6')" } ] }, { "id": "Patient.identifier", "path": "Patient.identifier", "slicing": { "rules": "open", "discriminator": [ { "path": "system", "type": "pattern" } ] }, "constraint": [ { "key": "ide-1", "human": "A BSN identifier has 9 positions", "xpath": "string-length(//f:identifier[f:system/f:@value = 'http://fhir.nl/fhir/NamingSystem/bsn']/f:value/f:@value) = 9", "source": "http://vzvz.nl/fhir/StructureDefinition/nl-vzvz-rivm-Patient", "severity": "error", "expression": "where(system = 'http://fhir.nl/fhir/NamingSystem/bsn').value.toString().length() = 9" }, { "key": "ide-2", "human": "A COA identifier has 10 positions", "xpath": "string-length(//f:identifier[f:system/f:@value = 'urn:oid:2.16.840.1.113883.2.4.3.111.6']/f:value/f:@value) = 10", "source": "http://vzvz.nl/fhir/StructureDefinition/nl-vzvz-rivm-Patient", "severity": "error", "expression": "where(system = 'urn:oid:2.16.840.1.113883.2.4.3.111.6').value.toString().length() = 10" } ] }, { "id": "Patient.identifier:bsn", "path": "Patient.identifier", "sliceName": "bsn" }, { "id": "Patient.identifier:bsn.system", "path": "Patient.identifier.system", "patternUri": "http://fhir.nl/fhir/NamingSystem/bsn" }, { "id": "Patient.identifier:coa", "max": "1", "path": "Patient.identifier", "sliceName": "coa" }, { "id": "Patient.identifier:coa.system", "path": "Patient.identifier.system", "patternUri": "urn:oid:2.16.840.1.113883.2.4.3.111.6" }, { "id": "Patient.birthDate", "path": "Patient.birthDate", "condition": [ "dob-1" ], "constraint": [ { "key": "dob-1", "human": "BirthDate must be before today", "source": "http://vzvz.nl/fhir/StructureDefinition/nl-vzvz-rivm-Patient", "severity": "error", "expression": "$this < now()" } ] } ] }, "contact": [ { "name": "VZVZ", "telecom": [ { "value": "standaardisatie@vzvz.nl", "system": "email" } ] } ], "baseDefinition": "http://nictiz.nl/fhir/StructureDefinition/nl-core-Patient" }