How to retrieve patient identifiers if it is not referenced as a resource inside claim

how to retrieve patient identifiers if it is not referenced as a resource inside claim

please clarify the question some more.

{
“resourceType”: “Claim”,
“id”: “1234567890”,
“patient”:{
“identifier”:[
{
“use”:“usual”,
“system”:“https://abc.com/”,
“value”:“12132143252”
},
{
“use”:“usual”,
“system”:“xxxxxxxxxxx”,
“value”:“442343242354”
},
{
“use”:“usual”,
“system”:“medicaid”,
“value”:“206037178”
}
],
“active”:true,
“gender”:“female”,
“birthDate”:“1951-09-09”,
“deceasedBoolean”:false,
},
“contained”: [
{
“resourceType”: “Patient”,
“id”: “TX1234567890”,
“identifier”: [
{
“system”: “Medicaid_ID”,
“value”: “9995554444”
}
],
“name”: [
{
“family”: [
“Franco”
],
“given”: [
“James”
]
}
],
“gender”: “male”
}
],
“extension”: [
{
“url”: “Request Source”,
“valueString”: “Specialist Staff”
},
{
“url”: “admissionType”,
“valueInteger”: 3
},
{
“url”: “admissionSource”,
“valueInteger”: 1
}
],
“created”: “2017-01-06T12:22:51-06:00”,
“priority”: {
“system”: “Level_Of_Urgency”,
“code”: “C_Standard”
},
“diagnosis”: [
{
“diagnosis”: {
“system”: “ICD10”,
“code”: “SP99”
}
}
]
}

From the above claim request how can i retrieve the patient identifiers. Here patient is not referenced as a resource.

Well, if the Claim doesn’t point to to a patient resource, it’s possible (even likely) that there’s no patient resource you can retrieve by RESTful query. (If there was, the Claim really ought to have had a link directly.) However, presuming there’s a server you can query, the query would look like this:
[base]/Patient?identifier=Medicaid_ID|9995554444

Note that “Medicaid_ID” would actually have to be the URL associated with the Medicaid identifier namespace

I think part of the confusion may be due to trying to understand an invalid instance - there is both a contained Patient resource representing the patient, and a claim.patient element which is providing patient information rather than referring to the provided Patient resource. Please consider the following:

(Why does this tool throw away my formatting?)

{Claim
{Contained
{Patient
id:pat-1
identifier: use=“usual”, system=“xxxx”, value=“442343242354”
name: family=“Franco”, given=“James”
gender: “male”
address: etc}
}
{Contained
{Coverage
id:cov-1
identifier: use=“medicaid”, system=“xxx”, value=“123456”
beneficiary: #pat-1
payor: system=“xxx”, value=“medicaid”}
}

*** body of the claim
identifier: system=“xxx”, “value"456238318”
patient: #pat-1
insurance
focal: true
coverage: #cov-1
line-item 1:
line-item 2
etc
}

In the above the Patient resource is contained within the Claim and the patient.identifers can be harvested from there.

If the Patient was a reference to an external resource such as Patient: url=“http://happyhealth.com/Patient/123986B”, then you would retrieve that resource to harvest the identifiers from it.