public class HomeHealthRecordUtil
extends java.lang.Object
Constructor and Description |
---|
HomeHealthRecordUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
buildTransformerNode(javax.xml.transform.sax.TransformerHandler transformerHandler,
java.lang.String name,
java.lang.String value) |
static HomeHealthRecord_B_IF |
convertToHomeHealthRecord_OasisB(HomeHealthRecord_C_IF record_C,
boolean mapValues)
This takes a HomeHealthRecord_C_IF object and converts it to a basic
HomeHealthRecord_IF, mapping any values from the C to the basic where
needed.
|
static org.w3c.dom.Node |
createHomeHealthNode(org.w3c.dom.Document document,
java.lang.String name,
java.lang.String value) |
static java.lang.String |
formatDiagnosisCodeI9(DiagnosisCodeIF dxcode)
Ensures that a diagnosis code is 7 character long, padded with spaces
where necessary
|
static java.lang.String |
formatDxCode_C1(DiagnosisCodeIF dxCode) |
static java.lang.String |
formatDxCode_C1(DiagnosisCodeIF dxCode,
int codeLength) |
static java.lang.String |
formatTherapyNeedNum(int needNum) |
static java.lang.String |
getNormalizedIntValue(java.lang.String str) |
static java.lang.StringBuilder |
justifyLeft(java.lang.StringBuilder buffer,
java.lang.String str,
int length,
char fillchar)
This method adds to a StringBuidler a String that is left justified for
the given length and padded with the given fill character; Nulls are
treated as empty strings.
|
static void |
justifyOasisCValues(Oasis_C_Record oasisRecord)
due to edit -3100 of spec If the value of the field is not '^', then this
normalizes some fields that may not actually be the valid length but are
valid values.
|
static java.lang.String |
justifyRight(java.lang.String str,
int length,
char fillchar)
This method returns a String that is right justified for the given
length.
|
static DiagnosisCodeIF |
parseDxCode(java.lang.String strDx)
HH-PPS will not fail a DX code based on a pattern because it uses a valid
code set.
|
static int |
parseTherapyNeedNumber_C1(java.lang.String strInt,
int defaultValue)
For C 2.10 and C1 2.11, the Therapy Need Number can have a '^' as the
only character, or be 1 to 3 characters long.
|
static java.lang.String |
trimWithCarets(java.lang.String strOrig)
The OASIS-C/C1 spec published in 2013 for use starting in Oct 2014 states
that the blank values can be identified with a single caret '^' and any
value that has leading or trailing spaces, such as a DX code, in these
record formats are replaced with the caret character as well.
|
public static org.w3c.dom.Node createHomeHealthNode(org.w3c.dom.Document document, java.lang.String name, java.lang.String value)
public static void buildTransformerNode(javax.xml.transform.sax.TransformerHandler transformerHandler, java.lang.String name, java.lang.String value) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public static HomeHealthRecord_B_IF convertToHomeHealthRecord_OasisB(HomeHealthRecord_C_IF record_C, boolean mapValues)
record_C
- public static DiagnosisCodeIF parseDxCode(java.lang.String strDx)
strDx
- public static java.lang.String trimWithCarets(java.lang.String strOrig)
strOrig
- public static int parseTherapyNeedNumber_C1(java.lang.String strInt, int defaultValue)
strInt
- defaultValue
- public static java.lang.String justifyRight(java.lang.String str, int length, char fillchar)
str
- length
- public static void justifyOasisCValues(Oasis_C_Record oasisRecord)
oasisRecord
- public static java.lang.String getNormalizedIntValue(java.lang.String str)
public static java.lang.String formatDiagnosisCodeI9(DiagnosisCodeIF dxcode)
dxcode
- public static java.lang.String formatDxCode_C1(DiagnosisCodeIF dxCode)
public static java.lang.String formatDxCode_C1(DiagnosisCodeIF dxCode, int codeLength)
public static java.lang.String formatTherapyNeedNum(int needNum)
public static java.lang.StringBuilder justifyLeft(java.lang.StringBuilder buffer, java.lang.String str, int length, char fillchar)
buffer
- str
- length
- fillchar
-