Skip to content

Commit 871f424

Browse files
authored
Merge pull request #1 from CommonGateway/feature/GW-1737/map-dossier-to-zaak
Dossiers to zaken mapping
2 parents 10eefcf + 2d5a0f1 commit 871f424

5 files changed

+121
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"title": "BSNToRol",
3+
"$id": "https://commongateway.nl/mapping/vrijbrp.bsnToRol.mapping.json",
4+
"$schema": "https://docs.commongateway.nl/schemas/Mapping.schema.json",
5+
"version": "0.0.1",
6+
"passTrough": false,
7+
"mapping": {
8+
"_sourceId": "{% if dossierId|default and bsn|default %}{{ dossierId~' '~bsn }}{% endif %}",
9+
"roltype": "roltypeUrl",
10+
"roltoelichting": "persoon",
11+
"betrokkeneIdentificatie.inpBsn": "bsn",
12+
"betrokkeneType": "natuurlijk_persoon"
13+
},
14+
"cast": {
15+
"_sourceId": "unsetIfValue==",
16+
"roltype": "unsetIfValue==roltypeUrl",
17+
"betrokkeneIdentificatie.inpBsn": "unsetIfValue==bsn",
18+
"betrokkeneIdentificatie": "unsetIfValue=="
19+
}
20+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"title": "DocumentToZaakInformatieObject",
3+
"$id": "https://commongateway.nl/mapping/vrijbrp.documentToZaakInformatieObject.mapping.json",
4+
"$schema": "https://docs.commongateway.nl/schemas/Mapping.schema.json",
5+
"version": "0.0.1",
6+
"passTrough": false,
7+
"mapping": {
8+
"_sourceId": "{% if title|default and id|default %}{{ title~id }}{% endif %}",
9+
"titel": "title",
10+
"informatieobject._sourceId": "id",
11+
"informatieobject.identificatie": "id",
12+
"informatieobject.bronorganisatie": "bronorganisatie",
13+
"informatieobject.creatiedatum": "entryDateTime",
14+
"informatieobject.titel": "title",
15+
"informatieobject.auteur": "bronorganisatie",
16+
"informaiteobject.informatieobjecttype": "informatieobjecttypeUrl",
17+
"informaiteobject.taal": "dut"
18+
},
19+
"cast": {
20+
"_sourceId": "unsetIfValue==",
21+
"titel": "unsetIfValue==code",
22+
"informatieobject._sourceId": "unsetIfValue==id",
23+
"informatieobject.identificatie": "unsetIfValue==id",
24+
"informatieobject.bronorganisatie": "unsetIfValue==bronorganisatie",
25+
"informatieobject.creatiedatum": "unsetIfValue==creatiedatum",
26+
"informatieobject.titel": "unsetIfValue==title",
27+
"informatieobject.auteur": "unsetIfValue==bronorganisatie",
28+
"informatieobject.informatieobjecttype": "unsetIfValue==informatieobjecttypeUrl"
29+
}
30+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"title": "StatusToZGWStatus",
3+
"$id": "https://commongateway.nl/mapping/vrijbrp.statusToZGWStatus.mapping.json",
4+
"$schema": "https://docs.commongateway.nl/schemas/Mapping.schema.json",
5+
"version": "0.0.1",
6+
"passTrough": false,
7+
"mapping": {
8+
"_sourceId": "{% if dossierId|default and code|default %}{{ dossierId~code }}{% endif %}",
9+
"statustype": "statustypeUrl",
10+
"datumStatusGezet": "entryDateTime",
11+
"indicatieLaatstGezetteStatus": "endStatus"
12+
},
13+
"cast": {
14+
"_sourceId": "unsetIfValue==",
15+
"statustype": "unsetIfValue==statustypeUrl",
16+
"datumStatusGezet": "unsetIfValue==entryDateTime",
17+
"indicatieLaatstGezetteStatus": "bool"
18+
}
19+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"title": "WaardeToZaakEigenschap",
3+
"$id": "https://commongateway.nl/mapping/vrijbrp.waardeToZaakEigenschap.mapping.json",
4+
"$schema": "https://docs.commongateway.nl/schemas/Mapping.schema.json",
5+
"version": "0.0.1",
6+
"passTrough": false,
7+
"mapping": {
8+
"_sourceId": "{% if dossierId|default and naam|default %}{{ dossierId~' '~naam }}{% endif %}",
9+
"naam": "naam",
10+
"waarde": "waarde",
11+
"eigenschap": "eigenschapUrl"
12+
},
13+
"cast": {
14+
"_sourceId": "unsetIfValue==",
15+
"naam": "unsetIfValue==naam",
16+
"waarde": "unsetIfValue==waarde",
17+
"eigenschap": "unsetIfValue==eigenschapUrl"
18+
}
19+
}

0 commit comments

Comments
 (0)