fix(pfs): lineage — 'replacing X with' names successors
This commit is contained in:
@@ -146,7 +146,7 @@ _CODE = r"(?:[A-Z]\d{4}|\d{5})"
|
||||
_SUCCESSOR = re.compile(
|
||||
r"\b(into)\b(?!\s+(?:account|consideration|effect))"
|
||||
r"|\bmerg\w*\b[^.]{0,120}?\b(with|into)\b"
|
||||
r"|\breplaced\s+(?:it\s+)?(by|with)\b"
|
||||
r"|\brepl(?:aced|acing)\b[^.]{0,80}?\b(by|with)\b"
|
||||
r"|\bcrosswalk(?:ed)?\s+(to)\b"
|
||||
r"|\b(with)\s+the\b[^.]{0,60}\bremaining\b"
|
||||
r"|(?<!reference )\b(to)\s+(?:CPT\s+)?codes?\b"
|
||||
|
||||
@@ -437,6 +437,17 @@ class TestNewKinds:
|
||||
"establish a family of codes and bundle imaging into the three CPT "
|
||||
"codes, and the deletion of CPT codes 77385, 77386 and 77014.",
|
||||
)
|
||||
_add_para(
|
||||
store,
|
||||
"JCWARTJD",
|
||||
330,
|
||||
"We will be replacing deleted CPT code 92507 with CPT codes 92654, "
|
||||
"92655, and 92663.",
|
||||
)
|
||||
assert "deleted" in {e.kind for e in fr_events(store, "92507")}
|
||||
for code in ("92654", "92655", "92663"):
|
||||
assert "deleted" not in {e.kind for e in fr_events(store, code)}, code
|
||||
assert fr_events_bucketed(store, [code])[code] == fr_events(store, code)
|
||||
for code in ("15732", "27370", "50395", "77385", "77386", "77014"):
|
||||
assert "deleted" in {e.kind for e in fr_events(store, code)}, code
|
||||
assert fr_events_bucketed(store, [code])[code] == fr_events(store, code)
|
||||
|
||||
Reference in New Issue
Block a user