Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: SDS-5897

...

Hvis CPR validering kører i WARNING mode, så vil ugyldige (ifølge CPRExits service) CPR numre give anledning til en linje i auditloggen. Logninger af denne type ser således ud:

...

Valideringsfejlene logges under contexten '5313439413729618055.1497722748872510081.1633347017540', som er entryuuid på requestets SubmissionSet. Dette er valgt, fordi valideringslibrary'et pt. ikke giver mulighed for relatere de individuelle dokumenter til deres valideringsfejl.

Logning når fejl

Hvis servicesvaret indeholder fejl, logges de på følgende måde. Hvis et RequestId mangler, genereres et nyt RequestId.

Følgende er et eksempel på et ITI-42 kald med, fejl. 

Code Block
collapsetrue
{
  "time": "2022-12-08T14:33:33.324Z",
  "category": "dk.sds.nsp.audit.log.dros/registerdocumentsetb",
  "audit": {
    "timestamp": "2022-12-08T15:33:33.198+01:00",
    "components": [
      {
        "component": "DROS/ProvideAndRegisterDocumentSetB",
        "contexts": [
          {
            "context": "urn:uuid:8faac1dc-3ead-40d9-acb4-0f10787fc355",
            "information": [
              {
                "key": "StatusCode",
                "type": "RPI",
                "value": "urn:oasis:names:tc:ebxml-regrep:ResponseStatusType:Success"
              },
              {
                "key": "Errors",
                "type": "RPI",
                "value": "{\"errorCode\":\"XDSRegistryMetadataError\", \"errorMessage\":null, \"codeContext\":\"Source patient info skal være angivet i documententry\", \"location\":\"\", \"severity\":\"urn:oasis:names:tc:ebxml-regrep:ErrorSeverityType:Warning\"}{\"errorCode\":\"XDSRegistryMetadataError\", \"errorMessage\":null, \"codeContext\":\"Author.Person skal være angivet i documententry\", \"location\":\"\", \"severity\":\"urn:oasis:names:tc:ebxml-regrep:ErrorSeverityType:Warning\"}"
              }
            ]
          }
        ]
      },
      {
        "component": "DROS/RegisterDocumentSetB",
        "contexts": [
          {
            "context": "7831078698889553189.8282922085690226173.1670510013030",
            "information": [
              {
                "key": "CitizenId",
                "type": "RPI",
                "value": "010101010101"
              },
              {
                "key": "Warning",
                "type": "RPI",
                "value": "ErrorInfo[errorCode=REGISTRY_METADATA_ERROR,codeContext=Source patient info skal være angivet i documententry,severity=WARNING,location=,customErrorCode=]"
              },
              {
                "key": "Warning",
                "type": "RPI",
                "value": "ErrorInfo[errorCode=REGISTRY_METADATA_ERROR,codeContext=Author.Person skal være angivet i documententry,severity=WARNING,location=,customErrorCode=]"
              }
            ]
          },
          {
            "context": "urn:uuid:29a1fdc8-4c50-4ed9-bcfb-7ff56d850949",
            "information": [
              {
                "key": "DocumentId",
                "type": "RPI",
                "value": "5632855048974108089.4444134248678574172.1670510013029"
              },
              {
                "key": "DocumentType",
                "type": "RPI",
                "value": "39289-4"
              },
              {
                "key": "CitizenId",
                "type": "RPI",
                "value": "010101010101"
              },
              {
                "key": "FormatCode",
                "type": "RPI",
                "value": "urn:ad:dk:medcom:appointmentsummary:full"
              },
              {
                "key": "SubmissionSetId",
                "type": "RPI",
                "value": "7831078698889553189.8282922085690226173.1670510013030"
              },
              {
                "key": "AuthorInstitutionAssigningAuthority",
                "type": "RPI",
                "value": "1.2.208.176.1.1"
              },
              {
                "key": "AuthorInstitutionId",
                "type": "RPI",
                "value": "123456789"
              }
            ]
          }
        ]
      }
    ]
  },
  "access": {
    "code": 200,
    "duration": 95,
    "httpHeaders": {
      "Content-Type": "application/soap+xml; charset=UTF-8"
    },
    "httpHost": "localhost",
    "idCardAttributes": {
      "medcom:CareProviderID": "46837428",
      "medcom:CareProviderName": "Statens Serum Institut",
      "medcom:ITSystemName": "Test",
      "sosi:AuthenticationLevel": "3",
      "sosi:IDCardID": "wWHr3uU9j7SAnD+ux+RS2Q==",
      "sosi:IDCardType": "system",
      "sosi:IDCardVersion": "1.0.1"
    },
    "method": "POST",
    "path": "/dros/iti42",
    "query": "",
    "port": 8060,
    "protocol": "http",
    "reqSize": 14558,
    "resSize": 1398,
    "soapHeaders": {
      "Issuer": "TEST2-NSP-STS",
      "MessageID": "AAABhPIn6pjCqc93hiEXnlNPU0k=",
      "NameID": "SubjectDN={SERIALNUMBER=CVR:46837428-UID:27910135 + CN=Statens Serum Institut - Test VOCES, O=Statens Serum Institut // CVR:46837428, C=DK},IssuerDN={CN=TRUST2408 Systemtest XXXIV CA, O=TRUST2408, C=DK},CertSerial={1604144225}",
      "w3Action": "urn:ihe:iti:2007:RegisterDocumentSet-b",
      "w3MessageID": "urn:uuid:edc32c07-45d9-40f2-b58c-5147f230a0bf",
      "w3To": "http://localhost:8060/dros/iti42"
    },
    "threadId": "default task-7",
    "time": "2022-12-08T15:33:33.198+01:00",
    "stats": {
      "handlerDuration": 26,
      "RequestContentDuration": 1,
      "ResponseContentDuration": 0,
      "SecurityProtocolRequestDuration": 21,
      "SecurityProtocolResponseDuration": 0,
      "bufferAllocated": false,
      "usedBuffers": 2,
      "activeBuffersInPool": 2,
      "idleBuffersInPool": 6
    }
  }
}


4. Whitelisting af anvendere

...