Example

Here, we show an example how our API Pseudonymize is used given a FHIR Bundle.

{
    "resourceType": "Bundle",
    "entry": [
        {
            "resource": {
                "resourceType": "Encounter",
                "identifier": [
                    {
                        "use": "official",
                        "system": "Test",
                        "value": "identifier-value-123",
                        "period": {
                            "start": "2017-01-01T10:46:19+01:00",
                            "end": "2017-02-01T10:46:19+01:00"
                        }
                    }
                ]
            }
        },
        {
            "resource": {
                "resourceType": "Patient",
                "identifier": [
                    {
                        "use": "official",
                        "system": "Test",
                        "value": "ABC123"
                    }
                ],
                "name": [
                    {
                        "use": "official",
                        "family": "Müller"
                    }
                ]
            }
        },
        {
            "resource": {
                "resourceType": "Provenance",
                "id": "1",
                "target": [
                    {
                        "identifier": {
                            "value": "MS_PATIENT:4dab72f1494596d306d870ff9a3dc666d37e4062"
                        }
                    }
                ],
                "recorded": "2019-10-16T15:52:50.160+02:00",
                "activity": {
                    "coding": [
                        {
                            "system": "http://terminology.hl7.org/CodeSystem/v3-DataOperation",
                            "code": "CREATE",
                            "display": "create"
                        }
                    ]
                },
                "agent": [
                    {
                        "who": {
                            "identifier": {
                                "value": "instance-test-ms-v1:0.2.0-SNAPSHOT"
                            }
                        }
                    }
                ]
            }
        }
    ]
}