|
|
Reference Type: Supported, Category: Name Standardization, Integration Agreement: 3065
This extrinsic function converts an HL7 formatted input name to a VistA formatted name.
$$FMNAME^XLFNAME([.]name[,flags][,delim])
| [.]name: |
(required) This is the HL7 name to be converted; it can be passed by reference. If the "C" flag is used, the name components are returned in nodes descendent from this parameter (see "Output"). |
|
| flags: |
(optional) Flags to controls processing. Possible values are:
|
|
| delim: |
(optional) The delimiter used in the HL7 formatted name (default = "^"). |
|
| name: |
If the FLAGS input parameter contains a "C", the component parts of the name are returned in the NAME array: NAME("FAMILY) = Family (Last) Name |
|
If the L# flag is used, and the resulting name is longer than #, the following pruning algorithm is performed to shorten the name:
Convert an HL7 formatted name to a VistA name:
>S X=$$FMNAME^XLFNAME("KRNUSER^SIXTY^K.^JR^MR.^PHD")
>W X
KRNUSER,SIXTY K. JR
>S X=$$FMNAME^XLFNAME("KRNUSER^SIXTY^K.^JR^MR.^PHD","S")
>W X
KRNUSER,SIXTY K JR
>S X=$$FMNAME^XLFNAME("KRNUSER^SIXTY^K.^JR^MR.^PHD","M")
>W X
Krnuser,Sixty K. Jr
>S X=$$FMNAME^XLFNAME("KRNUSER^SIXTY^K.^JR^MR.^PHD","SL12")
>W X
KRNUSER,SI K
Convert an HL7 formatted name where "~" is the delimiter to a standard name:
>S X=$$FMNAME^XLFNAME("KRNUSER~SIXTY~K.~JR~MR","S","~")
>W X
KRNUSER,SIXTY K JR
Convert an HL7 formatted name to a standard name, and return the components of that name in the MYNAME array:
>S MYNAME="KRNUSER^SIXTY^K.^JR^MR.^PHD"
>W $$FMNAME^XLFNAME(.MYNAME,"CS")
KRNUSER,SIXTY K JR
>ZW MYNAME
MYNAME=KRNUSER^SIXTY^K.^JR^MR.^PHD
MYNAME("DEGREE")=PH
MYNAME("FAMILY")=KRNUSER
MYNAME("GIVEN")=SIXTY
MYNAME("MIDDLE")=K.
MYNAME("PREFIX")=MR.
MYNAME("SUFFIX")=JR
|
VA (Internet) / VA (Intranet) / OI / HSD&D / Site Map / Terms of Use / VA Privacy Policy / Accessibility Reviewed/Updated:
December 14, 2005
|