# When sending a National Scoped ID in PID-19 (SSN) you receive "AuthorityUuid" missing error

**Issue:** When using the SanteDB dCDR via the HL7 ADT feed, new patients are not registered, rather you receive a NACK indicating a missing argument/parameter for AuthorityUUID

**Applies To:**

* SanteDB dCDR Gateway Kelowna (Version 2.0.22+)
* SanteDB iCDR + SanteMPI (Version 2.0.22+)

**Symptoms:**

* Upon sending a registration using PID-19, you receive a NACK as illustrated below

```
MSH|^~\&|SENDER|LOCAL|MPI_SERVER|NATIONAL_DC|20200806100518|XXXXX|ADT^A04^ADT_A01|117631e6-8866-4d67-be10-4ed64e55b52b|P|2.3.1|||AL
EVN||202008061005+0630
PID|||XXXYYY^^^AUTHORITY^PT||SMITH^JOHN^^^^^U||1978|M|||||||||||403-304-302
NK1|1|^U Hla Shwe|FTH
PV1||I

MSH|^~\&|MPI_SERVER|NATIONAL_DC|SENDER|LOCAL|20200806100051||ACK^A04^ACK|cc103f57-4602-4590-83c8-741c9c834ee9||2.3.1
MSA|AE|117631e6-8866-4d67-be10-4ed64e55b52b|General Error|||207^Insert SanteDB.Core.Model.Collection.Bundle
ERR|^^^&Insert SanteDB.Core.Model.Collection.Bundle||207|E
ERR|^^^&Exception has been thrown by the target of an invocation.||207|E
ERR|^^^&Requires a value\X000d\Parameter name: AuthorityUuid||207|E
```

**Cause:** This rejection is caused because the ssnAuthority has not been configured for the dCDR or iCDR.&#x20;

**Solutions:**

If correcting the iCDR:

1. Open the file C:\Program Files\SanteSuite\SanteDB\Server\SanteDB.config.xml
2. Locate the section HL7Configuration
3. Add the \<ssnAuthority> element (below) with the appropriate configuration of what identifier is being carried in the PID-19 field.
4. Save the file
5. Restart the SanteDB Host Process

If correcting the dCDR:

1. Open the file C:\WINDOWS\SYSWOW64\config\systemprofile\AppData\roaming\santedb\dcg-default\santedb.config
2. Locate the section HL7Configuration
3. Add the \<ssnAuthority> element (below) with the appropriate configuration of what identifier is being carried in the PID-19 field.
4. Save the file
5. Restart the SanteDB Host Process

An appropriate ssnAuthority configuration is illustrated below:

```
<ssnAuthority>
      <domainName xmlns="http://santedb.org/model">SOME_AUTHORITY_NAME</domainName>
</ssnAuthority>
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.santesuite.org/knowledgebase/sdb-kb/when-sending-a-national-scoped-id-in-pid-19-ssn-you-receive-authorityuuid-missing-error.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
