Input
Detection mode:
Code Snippet
import { PrivaiShield } from '@privaishield/sdk';
const client = new PrivaiShield({
apiKey: process.env.PRIVAISHIELD_API_KEY,
});
const result = await client.redact({
text: "Patient John Smith (DOB: 03/15/1985, MRN: 847293) was seen at 123 Oak Street, Boston MA. Contact: john.smith@email.com, (617) 555-0142. SSN: 123-45-6789. Diagnosis: Type 2 Diabetes.",
mode: "enhanced", // or "standard"
});
console.log(result.redacted);
console.log(result.entities);Redacted Output
Click "Run Redaction" to see results
Detected Entities
Entities will appear here
API Response
application/json{
"redacted": "...",
"entities": [],
"mode": "enhanced",
"processingTime": "..."
}