Resolves a FHIR Patient reference to extract the DID
Patient reference in format "patient/did:nil:..." or "Patient/did:nil:..."
The DID string
Error if not a valid patient reference
Resolves a FHIR Patient reference to extract the DID