Versions Compared

Key

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

...

Hvis kaldene til backend ikke kan udføres, så returneres statuskode 500.

Auditlogning

Hvert servicekald medfører en ny indgang i auditloggen, som er udfyldt som følger:

 * Component: DROS/<operation>, hvor <operation> er navnet på den operation der kaldes, f.eks. ProvideAndRegisterDocumentSetB.

 * Context: Udfyldes med DocumentId. Hvis requestet indeholder flere dokumenter, oprettes en context for hvert dokument.

For hver context skrives følgende informationer

FeltTypeIndhold
DocumentIdRegularPersonalInformationDokumentId'et.
DocumentTypeRegularPersonalInformationDokumentets TypeCode
CitizenIdRegularPersonalInformationPatientId, som dokumentet omhandler.
FormatCodeRegularPersonalInformationFormatCode

Audit-loggens indhold kan f.eks. se således ud:

Wiki Markup
{
  "time": "2021-04-22T09:19:17.849Z",
  "category": "dk.sds.nsp.audit.log.dros/provideandregisterdocumentsetb",
  "audit": {
    "timestamp": "2021-04-22T11:19:17.349+02:00",
    "components": [
      {
        "component": "DROS/ProvideAndRegisterDocumentSetB",
        "contexts": [
          {
            "context": "4782730166889980929.642387763907611323.1619083157334",
            "information": [
              {
                "key": "DocumentId",
                "type": "RPI",
                "value": "4782730166889980929.642387763907611323.1619083157334"
              },
              {
                "key": "DocumentType",
                "type": "RPI",
                "value": "39289-4"
              },
              {
                "key": "CitizenId",
                "type": "RPI",
                "value": "ABCDE"
              },
              {
                "key": "FormatCode",
                "type": "RPI",
                "value": "urn:ad:dk:medcom:appointment"
              }
            ]
          }
        ]
      }
    ]
  },
  "access": {
    "code": 200,
    "duration": 466,
    "httpHeaders": {
      "Content-Type": "multipart/related; type=\"application/xop+xml\"; boundary=\"uuid:574b00c3-614c-480e-8e53-fabf30483826\"; start=\"<root.message@cxf.apache.org>\"; start-info=\"application/soap+xml\""
    },
    "httpHost": "localhost",
    "idCardAttributes": {
      "medcom:CareProviderID": "25450442",
      "medcom:CareProviderName": "LAKESIDE A/S",
      "medcom:ITSystemName": "Test",
      "medcom:UserAuthorizationCode": "CBNH1",
      "medcom:UserOccupation": "Læge",
      "medcom:UserRole": "7170",
      "sosi:AuthenticationLevel": "4",
      "sosi:IDCardID": "AIeHms5lTO3yjiA6nyYZ/A==",
      "sosi:IDCardType": "user",
      "sosi:IDCardVersion": "1.0.1"
    },
    "method": "POST",
    "path": "/dros/iti41",
    "query": "",
    "port": 8060,
    "protocol": "http",
    "reqSize": 25897,
    "resSize": 699,
    "soapHeaders": {
      "Issuer": "TEST2-NSP-STS",
      "MessageID": "AAABePjgX2EQDhOrnwEA8FNPU0k=",
      "NameID": "SubjectDN={CN=Casper Rasmussen + SERIALNUMBER=CVR:25450442-RID:40252666, O=LAKESIDE A/S // CVR:25450442, C=DK},IssuerDN={CN=TRUST2408 Systemtest XXII CA, O=TRUST2408, C=DK},CertSerial={1495058808}",
      "w3Action": "urn:ihe:iti:2007:ProvideAndRegisterDocumentSet-b",
      "w3MessageID": "urn:uuid:11c90b96-41c9-464e-99c4-82e0bcac3937",
      "w3To": "http://localhost:8060/dros/iti41"
    },
    "threadId": "default task-22",
    "time": "2021-04-22T11:19:17.349+02:00",
    "stats": {
      "handlerDuration": 30,
      "RequestContentDuration": 2,
      "ResponseContentDuration": 0,
      "SecurityProtocolRequestDuration": 22,
      "SecurityProtocolResponseDuration": 0,
      "bufferAllocated": false,
      "usedBuffers": 4,
      "activeBuffersInPool": 4,
      "idleBuffersInPool": 4
    }
  }
}