I'm taking a look in Caristix HL7 v2.5 - Segment PV1:
And when I click PV1.9 DataType it shows DataType fields:
In XCN.2 shows FN as DataType, and FN is not just a string:
So, how can I make an example of HL7 with PV1.9 having datatype XCN that has FN inside too? I don't get it
Trying to make an example
MSH|^~\&|SA|SF||R|201802201803^450||ADT^A01^ADT_A01|2018022018035210|P|2.2||||||
EVN|A01|201802201803|||SHE7|
PV1|1|E|||||||1^Surname&Own Surname Prefix&Own Surname&Surname Prefix From Partner/Spouse&Surname From Partner/Spouse^||||
But it seems like is not right :(
After testing the message with different parsers, the way HL7 works for subcomponents are like this:
MSH|^~\&|SA|SF||R|201802201803^450||ADT^A01^ADT_A01|2018022018035210|P|2.2||||||
EVN|A01|201802201803|||SHE7|
PV1|1|E|||||||1^Surname&Own Surname Prefix&Own Surname&Surname Prefix From Partner/Spouse&Surname From Partner/Spouse^||||
Using Subcomponent separator character (&)
Then, parsed items will be like this
PV1
|- PV1.1
| |- SI
| |- 1
|- PV1.2
| |- IS
| |- E
|- PV1.9
| |- PV1.9.1
| |- ST
| |- 1
| |- PV1.9.2
| |- XCN
| |- Surname
| |- Own Surname Prefix
| |- Surname Prefix From Partner/Spouse
| |- Surname Form Partner/Spouse
That's right.