Skip to content

Endpoint in LRZA with different addresses in history not processed correctly #409

@Dirklectisch

Description

@Dirklectisch

An Endpoint in the LRZA has a history in which the address changed but this is not picked up correctly by the sync.

https://knooppunt-test.nuts-services.nl/lrza/mcsd/Endpoint/35f685d5-2556-4322-a36c-cc9497ca2461/_history

History:

{
  "resourceType": "Bundle",
  "id": "192bdf2a-8fe0-4f53-862f-964695cecb1e",
  "meta": {
    "lastUpdated": "2026-02-25T12:33:03.945+00:00"
  },
  "type": "history",
  "total": 4,
  "link": [ {
    "relation": "self",
    "url": ["https://knooppunt-test.nuts-services.nl/lrza-admin/Endpoint/35f685d5-2556-4322-a36c-cc9497ca2461/_history"](https://knooppunt-test.nuts-services.nl/lrza-admin/Endpoint/35f685d5-2556-4322-a36c-cc9497ca2461/_history)
  } ],
  "entry": [ {
    "fullUrl": ["https://knooppunt-test.nuts-services.nl/lrza-admin/Endpoint/35f685d5-2556-4322-a36c-cc9497ca2461"](https://knooppunt-test.nuts-services.nl/lrza-admin/Endpoint/35f685d5-2556-4322-a36c-cc9497ca2461),
    "resource": {
      "resourceType": "Endpoint",
      "id": "35f685d5-2556-4322-a36c-cc9497ca2461",
      "meta": {
        "versionId": "4",
        "lastUpdated": "2026-02-04T12:03:30.127+00:00"
      },
      "status": "active",
      "connectionType": {
        "system": ["http://terminology.hl7.org/CodeSystem/endpoint-connection-type"](http://terminology.hl7.org/CodeSystem/endpoint-connection-type),
        "code": "hl7-fhir-rest",
        "display": "HL7 FHIR"
      },
      "managingOrganization": {
        "reference": "Organization/Org-69599084",
        "display": "Org-69599084"
      },
      "payloadType": [ {
        "coding": [ {
          "system": ["http://nuts-foundation.github.io/nl-generic-functions-ig/CodeSystem/nl-gf-data-exchange-capabilities"](http://nuts-foundation.github.io/nl-generic-functions-ig/CodeSystem/nl-gf-data-exchange-capabilities),
          "code": ["http://nuts-foundation.github.io/nl-generic-functions-ig/CapabilityStatement/nl-gf-admin-directory-update-client"](http://nuts-foundation.github.io/nl-generic-functions-ig/CapabilityStatement/nl-gf-admin-directory-update-client),
          "display": "mCSD update client directory"
        } ],
        "text": "mCSD update client directory"
      } ],
      "address": ["https://proxy.matrix.ozo.headease.nl/mcsd/00005098"](https://proxy.matrix.ozo.headease.nl/mcsd/00005098)
    },
    "request": {
      "method": "PUT",
      "url": "Endpoint/35f685d5-2556-4322-a36c-cc9497ca2461/_history/4"
    },
    "response": {
      "status": "200 OK",
      "etag": "W/\"4\""
    }
  }, {
    "fullUrl": ["https://knooppunt-test.nuts-services.nl/lrza-admin/Endpoint/35f685d5-2556-4322-a36c-cc9497ca2461"](https://knooppunt-test.nuts-services.nl/lrza-admin/Endpoint/35f685d5-2556-4322-a36c-cc9497ca2461),
    "resource": {
      "resourceType": "Endpoint",
      "id": "35f685d5-2556-4322-a36c-cc9497ca2461",
      "meta": {
        "versionId": "3",
        "lastUpdated": "2026-01-21T13:01:25.748+00:00"
      },
      "status": "active",
      "connectionType": {
        "system": ["http://terminology.hl7.org/CodeSystem/endpoint-connection-type"](http://terminology.hl7.org/CodeSystem/endpoint-connection-type),
        "code": "hl7-fhir-rest",
        "display": "HL7 FHIR"
      },
      "managingOrganization": {
        "reference": "Organization/Org-69599084",
        "display": "Org-69599084"
      },
      "payloadType": [ {
        "coding": [ {
          "system": ["http://nuts-foundation.github.io/nl-generic-functions-ig/CodeSystem/nl-gf-data-exchange-capabilities"](http://nuts-foundation.github.io/nl-generic-functions-ig/CodeSystem/nl-gf-data-exchange-capabilities),
          "code": ["http://nuts-foundation.github.io/nl-generic-functions-ig/CapabilityStatement/nl-gf-admin-directory-update-client"](http://nuts-foundation.github.io/nl-generic-functions-ig/CapabilityStatement/nl-gf-admin-directory-update-client),
          "display": "mCSD update client directory"
        } ],
        "text": "mCSD update client directory"
      } ],
      "address": ["https://nuts-poc.healthexchange.nl/admindir/fhir/r4/"](https://nuts-poc.healthexchange.nl/admindir/fhir/r4/)
    },
    "request": {
      "method": "PUT",
      "url": "Endpoint/35f685d5-2556-4322-a36c-cc9497ca2461/_history/3"
    },
    "response": {
      "status": "200 OK",
      "etag": "W/\"3\""
    }
  }, {
    "fullUrl": ["https://knooppunt-test.nuts-services.nl/lrza-admin/Endpoint/35f685d5-2556-4322-a36c-cc9497ca2461"](https://knooppunt-test.nuts-services.nl/lrza-admin/Endpoint/35f685d5-2556-4322-a36c-cc9497ca2461),
    "resource": {
      "resourceType": "Endpoint",
      "id": "35f685d5-2556-4322-a36c-cc9497ca2461",
      "meta": {
        "versionId": "2",
        "lastUpdated": "2026-01-21T11:42:25.069+00:00"
      },
      "status": "active",
      "connectionType": {
        "system": ["http://terminology.hl7.org/CodeSystem/endpoint-connection-type"](http://terminology.hl7.org/CodeSystem/endpoint-connection-type),
        "code": "hl7-fhir-rest",
        "display": "HL7 FHIR"
      },
      "managingOrganization": {
        "reference": "Organization/Org-69599084",
        "display": "Org-69599084"
      },
      "payloadType": [ {
        "coding": [ {
          "system": ["http://nuts-foundation.github.io/nl-generic-functions-ig/CodeSystem/nl-gf-data-exchange-capabilities"](http://nuts-foundation.github.io/nl-generic-functions-ig/CodeSystem/nl-gf-data-exchange-capabilities),
          "code": ["http://nuts-foundation.github.io/nl-generic-functions-ig/CapabilityStatement/nl-gf-admin-directory-update-client"](http://nuts-foundation.github.io/nl-generic-functions-ig/CapabilityStatement/nl-gf-admin-directory-update-client),
          "display": "mCSD update client directory"
        } ],
        "text": "mCSD update client directory"
      } ],
      "address": ["https://hex-gf-o.1b42cf244732f1bdfada.kpnappfactory.nl/admindir/fhir/r4"](https://hex-gf-o.1b42cf244732f1bdfada.kpnappfactory.nl/admindir/fhir/r4)
    },
    "request": {
      "method": "PUT",
      "url": "Endpoint/35f685d5-2556-4322-a36c-cc9497ca2461/_history/2"
    },
    "response": {
      "status": "200 OK",
      "etag": "W/\"2\""
    }
  }, {
    "fullUrl": ["https://knooppunt-test.nuts-services.nl/lrza-admin/Endpoint/35f685d5-2556-4322-a36c-cc9497ca2461"](https://knooppunt-test.nuts-services.nl/lrza-admin/Endpoint/35f685d5-2556-4322-a36c-cc9497ca2461),
    "resource": {
      "resourceType": "Endpoint",
      "id": "35f685d5-2556-4322-a36c-cc9497ca2461",
      "meta": {
        "versionId": "1",
        "lastUpdated": "2025-12-16T16:27:39.453+00:00"
      },
      "status": "active",
      "connectionType": {
        "system": ["http://terminology.hl7.org/CodeSystem/endpoint-connection-type"](http://terminology.hl7.org/CodeSystem/endpoint-connection-type),
        "code": "hl7-fhir-rest",
        "display": "HL7 FHIR"
      },
      "managingOrganization": {
        "reference": "Organization/Org-69599084",
        "display": "Org-69599084"
      },
      "payloadType": [ {
        "coding": [ {
          "system": ["http://nuts-foundation.github.io/nl-generic-functions-ig/CodeSystem/nl-gf-data-exchange-capabilities"](http://nuts-foundation.github.io/nl-generic-functions-ig/CodeSystem/nl-gf-data-exchange-capabilities),
          "code": ["http://nuts-foundation.github.io/nl-generic-functions-ig/CapabilityStatement/nl-gf-admin-directory-update-client"](http://nuts-foundation.github.io/nl-generic-functions-ig/CapabilityStatement/nl-gf-admin-directory-update-client),
          "display": "mCSD update client directory"
        } ],
        "text": "mCSD update client directory"
      } ],
      "address": ["https://proxy.matrix.ozo.headease.nl/mcsd/81831321"](https://proxy.matrix.ozo.headease.nl/mcsd/81831321)
    },
    "request": {
      "method": "POST",
      "url": "Endpoint/35f685d5-2556-4322-a36c-cc9497ca2461/_history/1"
    },
    "response": {
      "status": "20[1](https://knooppunt-test.nuts-services.nl/lrza/mcsd/Endpoint/35f685d5-2556-4322-a36c-cc9497ca2461/_history#L1) Created",
      "etag": "W/\"1\""
    }
  } ]
}

For this endpoint the update client is incorrectly trying to sync the wrong address:

  "https://proxy.matrix.ozo.headease.nl/mcsd/81831321|00005098": {
    "created": 0,
    "updated": 0,
    "deleted": 0,
    "warnings": [
      "entry #0: organization's URA identifier must match one of the authoritative parent organizations",
      "entry #1: endpoint must be referenced in at least one organization's or valid healthcare service's endpoint field (endpoint ID: 578525ad-94d5-441b-8e84-9b5b46dde8f1)",
      "entry #2: location.managingOrganization must reference a valid organization (got 71548e09-8219-4b49-9819-5d2438db36eb)",
      "entry #3: healthcareService.providedBy must reference a valid organization (got 71548e09-8219-4b49-9819-5d2438db36eb)"
    ],
    "errors": []
  },

I would expect it to sync from:

https://proxy.matrix.ozo.headease.nl/mcsd/00005098"](https://proxy.matrix.ozo.headease.nl/mcsd/00005098

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions