ABSCODE
This function is used to handle any type of specialty (abstract) codes that are used by providers.
The ABSCODE function has a length limitation of 384 alphanumeric characters. If the value of the length of the ABSCODE field is over 384 alphanumeric characters, the operational server truncates the input value to the first 384 alphanumeric characters of the value.
- Output Type
- any
- Fldargs
- attrval
- MinFldArgs, MaxFldArgs
- 1,1
- Number of standard roles
- 1
- Strequi table
- mpi_strequi (SA<N>-ABS, SA0-ABS) where <N> = 0,1,2...
- Database tables
- mpi_strequi, mpi_dvdxstd, mpi_strhead
- The attribute characters are first checked to see if they are alphanumeric and are converted to uppercase.
- All special characters are eliminated.
- If there is a missing attribute (length of 0), it is treated as an ANON value.
- A lookup is performed for the attribute value in the mpi_strequi table by using SA<n>-ABS (where n is the source RecNo) and SA0-ABS values. If the value is found in the SA<n>-ABS or SA0-ABS tables, the equivalent code is replaced for the attribute. If matches are found in both tables, the <n> match is given preference. If it is not found, the attribute is treated as ANON.
- The value that is returned as a result of step 3 is added to the compare string.
- Since each source can have a different meaning for its specialty codes, it is essential to retain the source identity in the EQUI table.
ABSCODE example:
mpi_strequi table has the
following entries:
SA0-ABS PSY 19
SA0-ABS NUR RNFU
…
SA7-ABS PSY 19
If you have an attribute value of 19, a lookup in the mpi_strequi table is performed and the specialty code of PSY is returned.
If you have
an attribute value of R n f u
, all spaces are eliminated
and the characters are converted to uppercase. Thus, R n f
u
becomes RNFU
. A lookup for RNFU
in
the mpi_strequi table is performed and the code of NUR
is
returned.