Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Kafka proxy kan konfigueres med følgende properties:



bootstrap.servers=localhost:9092

Se https://kafka.apache.org/documentation/#producerconfigs

client.id=MinLog2-producer

Se https://kafka.apache.org/documentation/#producerconfigs

key.serializer=org.apache.kafka.common.serialization.StringSerializer

Se https://kafka.apache.org/documentation/#producerconfigs

value.serializer=org.apache.kafka.common.serialization.StringSerializer

Se https://kafka.apache.org/documentation/#producerconfigs

kafka.topic=MinLog2-Topic

Se https://kafka.apache.org/documentation/#producerconfigs

nsp.kafka.producer.component.name=MinLog2-registration-producer

Se Den Gode Brug af Kafka

nsp.kafka.producer.component.abbreviation=MinLog2-producer

Se Den Gode Brug af Kafka

nsp.kafka.producer.component.version=1.0.0

Se Den Gode Brug af Kafka

nsp.kafka.producer.service.name=produce

Se Den Gode Brug af Kafka


Eksempel på kald

Kald

curl -v -X POST \
  http://<server>:<port>/kafkaproxy/minlog2-kafka-proxy/2026/02/11/registrations \
  -H "Content-Type: application/json" \
  -d '[
    {
      "destinationForRegistration": {
        "fromDateTime": "2019-11-11T05:50:47.705Z",
        "toDateTime": "2019-11-11T07:50:47.705Z",
        "dateTime": "2019-10-11T03:50:47.705Z",
        "systemName": "system name1",
        "activity": "activity1",
        "criticality": "criticality1",
        "addition": "addition1",
        "role": "role1",
        "reason": "reason1",
        "correlationId": "correlation id1",
        "sequenceNumber": "sequence number1",
        "personIdentifier": { "value": "0101017890", "source": "CPR" },
        "personName": "person name1",
        "userPersonIdentifier": { "value": "DK123abc", "source": "EUROPEANHEALTHCAREPROFESSIONAL" },
        "userPersonName": "user person name1",
        "onBehalfOfPersonIdentifier": { "value": "BBBBB", "source": "AUTORISATION" },
        "onBehalfOfPersonName": "on behalf person name1",
        "onBehalfOfUserRole": "on be half user role1",
        "organisationId": { "value": "organisation id1", "source": "org id src1" },
        "organisationName": "organisation name1"

      },
      "sourceForRegistration": {
        "systemName": "parent",
        "correlationId": "correlation source id1",
        "source": {
          "systemName": "child1"
        }
      }
    }
  ]'



Svar

{
   "failedLogDataEntries":[
      
   ],
   "addedPersonIdentifiers":[
      "0101017890"
   ],
   "failedPersonIdentifiers":[
      
   ],
   "numberAdded":1,
   "numberFailed":0
}