Skip to content

Commit

Permalink
Mapping added for dossier to zaak WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrands02 committed Sep 25, 2024
1 parent 10eefcf commit 49906a4
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Installation/Mapping/vrijbrp.dossierToZaak.mapping.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"title": "DossierToZaak",
"$id": "https://commongateway.nl/mapping/vrijbrp.dossierToZaak.mapping.json",
"$schema": "https://docs.commongateway.nl/schemas/Mapping.schema.json",
"version": "0.0.1",
"passTrough": false,
"mapping": {
"_sourceId": "dossierId",
"identificatie": "dossierId",
"omschrijving": "description",
"zaaktype": "zaaktypeUrl",
"registratiedatum": "entryDateTime",
"startdatum": "startDate",
"statussen": "[{% if status|default %}{% set status = status|merge({'dossierId': dossierId, 'statustypeUrl': statustypeUrl}) %}{{ map('https://commongateway.nl/mapping/vrijbrp.statusToZGWStatus.mapping.json', status)|json_encode }}]"
},
"cast": {
"_sourceId": "unsetIfValue==dossierId",
"identificatie": "unsetIfValue==dossierId",
"omschrijving": "unsetIfValue==description",
"zaaktype": "unsetIfValue==zaaktypeUrl",
"registratiedatum": "unsetIfValue==entryDateTime",
"startdatum": "unsetIfValue==startDate",
"statussen": "jsonToArray"
}
}
18 changes: 18 additions & 0 deletions Installation/Mapping/vrijbrp.statusToZGWStatus.mapping.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"title": "StatusToZGWStatus",
"$id": "https://commongateway.nl/mapping/vrijbrp.statusToZGWStatus.mapping.json",
"$schema": "https://docs.commongateway.nl/schemas/Mapping.schema.json",
"version": "0.0.1",
"passTrough": false,
"mapping": {
"_sourceId": "{{ dossierId~code }} ",
"statustype": "statustypeUrl",
"datumStatusGezet": "entryDateTime",
"indicatieLaatstGezetteStatus": "endStatus"
},
"cast": {
"statustype": "unsetIfValue==statustypeUrl",
"datumStatusGezet": "unsetIfValue==entryDateTime",
"indicatieLaatstGezetteStatus": "bool"
}
}

0 comments on commit 49906a4

Please sign in to comment.