![]() ![]() |
Reference Type: Supported, Category: Name Standardization, ICR#: 3065
The $$CLEANC^XLFNAME extrinsic function takes a single name component and returns that name in standard format.
$$CLEANC^XLFNAME(comp[,flags])
comp: |
(required) The name component to be converted to standard format. |
flags: |
(optional) Flag to control processing. Possible values are:
|
returns: |
Returns the standard formatted name. |
Standardize family (last) name:
>Set X=$$CLEANC^XLFNAME("KRNUSER-XU U SER","F") >W X KRNUSER-XUUSER >Set X=$$CLEANC^XLFNAME("KRNUSER-XU U SER 2ND","F") >W X KRNUSER-XUUSERII >Set X=$$CLEANC^XLFNAME("KRNUSER-XU U SER") >W X KRNUSER-XU U SER >Set X=$$CLEANC^XLFNAME("ST. USER","F") >W X STUSER |
Standardize other (non-family) name components:
>S X=$$CLEANC^XLFNAME("F.O.") >W X F O >S X=$$CLEANC^XLFNAME("FORTY'") >W X FORTY >S X=$$CLEANC^XLFNAME("FORTY ONE") >W X FORTY ONE >S X=$$CLEANC^XLFNAME("FORTY-ONE") >W X FORTY-ONE |