Reltio Connect

 View Only

Filter use in Survivorship rules

  • 1.  Filter use in Survivorship rules

    Posted 4 hours ago

    Hello Community members,

    I have a tough time to understand the Filter functionality in Survivorship Rules. I have a below rule for Gender, Gender is a look up entry 

                           {
                                "attribute": "configuration/entityTypes/Patient/attributes/gender",
                                "primaryAttributeUri": "configuration/entityTypes/Patient/attributes/canContribute",
                                "filter": {
                                    "notIn": [
                                        {
                                            "uri": "configuration/entityTypes/Patient/attributes/gender",
                                            "value": "NI,No Information"
                                        }
                                    ]
                                },
                                "fallbackStrategies": [
                                    {
                                        "attribute": "configuration/entityTypes/Patient/attributes/gender",
                                        "survivorshipStrategy": "LUD"
                                    }
                                ],
                                "fallbackUsingCriteria": "MORE_THAN_ONE",
                                "survivorshipStrategy": "OtherAttributeWinnerCrosswalk"
                            }

    It is dependent on otherAttributeWinnerCrosswalk , below is the code snippet. 

                            {
                                "attribute": "configuration/entityTypes/Patient/attributes/canContribute",
                                "valuesPriorityOrder": [
                                    "Y"
                                ],
                                "survivorshipStrategy": "ValueBasedPriority"
                            },

    Now i have to two records and both are canContribute = Y  and Record 1 has Female Gender which is loaded on Day1 and Record 2 has NI/No Information gender which is loaded on Day10 .

    Since i added the filter for NI/No Information then i am expecting Female gender to be survived. but it is surviving No Information.

    Below is the response from explain API 

           "gender": [
                {
                    "type": "configuration/entityTypes/Patient/attributes/gender",
                    "ov": true,
                    "ovDetails": {
                        "matchedFilters": [
                            {
                                "notIn": [
                                    {
                                        "uri": "configuration/entityTypes/Patient/attributes/gender",
                                        "value": "NI,No Information"
                                    }
                                ]
                            }
                        ],
                        "unmatchedFilters": [],
                        "winnerCrosswalks": [
                            "configuration/sources/RMT"
                        ],
                        "appliedSurvivorshipRules": {
                            "fallbackCriteria": "MORE_THAN_ONE",
                            "appliedSurvivorshipRule": "OtherAttributeWinnerCrosswalk",
                            "winningSources": [
                                "configuration/sources/RMT",
                                "configuration/sources/Cerner"
                            ],
                            "sourcesForOv": [],
                            "fallbacks": [
                                {
                                    "fallbackCriteria": "MORE_THAN_ONE",
                                    "appliedSurvivorshipRule": "LUD",
                                    "winningSources": [
                                        "configuration/sources/RMT"
                                    ],
                                    "sourcesForOv": [],
                                    "fallbacks": []
                                }
                            ]
                        },
                        "appliedSurvivorshipGroup": "5561IlGEvg",
                        "participationStatus": "strategy"
                    },
                    "value": "No Information",
                    "lookupCode": "NI",
                    "lookupValue": "No Information",
                    "lookupAttributes": [
                        {
                            "name": "OID",
                            "value": "urn:oid:2.16.840.1.113883.5.1008"
                        }
                    ],
                    "uri": "entities/0a0czKt/attributes/gender/2HyxHKVQ"
                },
                {
                    "type": "configuration/entityTypes/Patient/attributes/gender",
                    "ov": false,
                    "ovDetails": {
                        "matchedFilters": [
                            {
                                "notIn": [
                                    {
                                        "uri": "configuration/entityTypes/Patient/attributes/gender",
                                        "value": "NI,No Information"
                                    }
                                ]
                            }
                        ],
                        "unmatchedFilters": [],
                        "winnerCrosswalks": [
                            "configuration/sources/RMT",
                            "configuration/sources/Cerner"
                        ],
                        "appliedSurvivorshipRules": {
                            "fallbackCriteria": "MORE_THAN_ONE",
                            "appliedSurvivorshipRule": "OtherAttributeWinnerCrosswalk",
                            "winningSources": [
                                "configuration/sources/RMT",
                                "configuration/sources/Cerner"
                            ],
                            "sourcesForOv": [],
                            "fallbacks": [
                                {
                                    "fallbackCriteria": "MORE_THAN_ONE",
                                    "appliedSurvivorshipRule": "LUD",
                                    "winningSources": [
                                        "configuration/sources/RMT"
                                    ],
                                    "sourcesForOv": [],
                                    "fallbacks": []
                                }
                            ]
                        },
                        "appliedSurvivorshipGroup": "5561IlGEvg",
                        "participationStatus": "strategy"
                    },
                    "value": "Female",
                    "lookupCode": "female",
                    "lookupValue": "Female",
                    "lookupAttributes": [
                        {
                            "name": "OID",
                            "value": "urn:oid:2.16.840.1.113883.4.642.3.1"
                        }
                    ],
                    "uri": "entities/0a0czKt/attributes/gender/2nJsIQ55"
                }
            ]

    can some one explain why this filter is not working?



    ------------------------------
    Vasu M
    TechLead - MDM
    ------------------------------