|
| 1 | +{ |
| 2 | + "title": "DossierToZaak", |
| 3 | + "$id": "https://commongateway.nl/mapping/vrijbrp.dossierToZaak.mapping.json", |
| 4 | + "$schema": "https://docs.commongateway.nl/schemas/Mapping.schema.json", |
| 5 | + "version": "0.0.1", |
| 6 | + "passTrough": false, |
| 7 | + "mapping": { |
| 8 | + "_sourceId": "dossierId", |
| 9 | + "identificatie": "dossierId", |
| 10 | + "omschrijving": "description", |
| 11 | + "bronorganisatie": "bronorganisatie", |
| 12 | + "verantwoordelijkeOrganisatie": "bronorganisatie", |
| 13 | + "zaaktype": "zaaktypeUrl", |
| 14 | + "registratiedatum": "entryDateTime", |
| 15 | + "startdatum": "startDate", |
| 16 | + "eigenschappen": "[{% for eigenschap in eigenschappen %}{% if index > 0 %}, {% endif %}{% set eigenschap = eigenschap|merge({'dossierId': dossierId}) %}{{ map('https://commongateway.nl/mapping/vrijbrp.waardeToZaakEigenschap.mapping.json', eigenschap)|json_encode }}{% endfor %}]", |
| 17 | + "rollen": "[{% if declarant.bsn|default %}{% set bsnArray = {'bsn': declarant.bsn, 'dossierId': dossierId} %}{% if roltypeUrl|default %}{% set bsnArray = bsnArray|merge({'roltypeUrl': roltypeUrl}) %}{% endif %}{{ map('https://commongateway.nl/mapping/vrijbrp.bsnToRol.mapping.json', bsnArray)|json_encode }}{% endif %}]", |
| 18 | + "zaakinformatieobjecten": "[{% if documents|default %}{% set index = 0 %}{% for document in documents %}{% if index > 0 %}, {% endif %}{% if bronorganisatie|default %}{% set document = document|merge({'bronorganisatie': bronorganisatie}) %}{% endif %}{% if informatieobjecttypeUrl|default %}{% set document = document|merge({'informatieobjecttypeUrl': informatieobjecttypeUrl}) %}{% endif %}{{ map('https://commongateway.nl/mapping/vrijbrp.documentToZaakInformatieObject.mapping.json', document)|json_encode }}{% index = index + 1 %}{% endfor %}{% endif %}]" |
| 19 | + "statussen": "[{% if status|default %}{% if dossierId|default and statustypeUrl|default %}{% set status = status|merge({'dossierId': dossierId, 'statustypeUrl': statustypeUrl}) %}{% endif %}{{ map('https://commongateway.nl/mapping/vrijbrp.statusToZGWStatus.mapping.json', status)|json_encode }}]", |
| 20 | + "cast": { |
| 21 | + "_sourceId": "unsetIfValue==dossierId", |
| 22 | + "identificatie": "unsetIfValue==dossierId", |
| 23 | + "omschrijving": "unsetIfValue==description", |
| 24 | + "bronorganisatie": "unsetIfValue==bronorganisatie", |
| 25 | + "verantwoordelijkeOrganisatie": "unsetIfValue==bronorganisatie", |
| 26 | + "zaaktype": "unsetIfValue==zaaktypeUrl", |
| 27 | + "registratiedatum": "unsetIfValue==entryDateTime", |
| 28 | + "startdatum": "unsetIfValue==startDate", |
| 29 | + "rollen": "jsonToArray", |
| 30 | + "statussen": "jsonToArray", |
| 31 | + "zaakinformatieobjecten": "jsonToArray" |
| 32 | + } |
| 33 | +} |
0 commit comments