I'm trying to write a statement that returns a list of encounters that all 
share the same diagnosis codes. But it appears to be returning accounts 
that match at least one of shared codes. The account referenced below has 
three ICD9DX codes associated with it. I'm wanting p2 to only return 
accounts that have those same three codes. It would be nice to know how to 
return accounts that only have those same three codes and also how to write 
it to return accounts with at least the same three codes.

MATCH (p1:Encounter {PatientAccount: '1002844934'})-[r:HasICD9Dx]-(i:ICD9DX
)-[r2:HasICD9Dx]-(p2:Encounter) RETURN p2


-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to