Download OpenAPI specification:Download
mainzelliste API
Allows client to create a long running transaction.
tokenId | string addPatients is the ony supported token. Create a valid token using sessions/{sessionId}/tokens endpoint. e.g.:
|
fields | object configured IDAT field |
ids | object list of external Ids. Multiple external ID type must given as an array |
sureness | boolean Default: false This automate the decision, when an unsure match happen, and determine whether the tentative patient should be add or not. If true generate IDs as tentative (field "tentative") and also mark the patient as tentative to signal that a subsequent merge with an existing record is possible. Otherwise the request will be rejected |
ignoreInvalidIDAT | boolean Default: false This allows adding patient with invalid IDAT for subsequent corrections. As the IDAT not suitable for record linkage an external ID would berequired to ensure a feature linkage with existing patients. |
[- {
- "fields": {
- "vorname": "Max",
- "nachname": "Mustermann",
- "geburtstag": "13",
- "geburtsmonat": "01",
- "geburtsjahr": "1891"
}, - "ids": {
- "extId": "464515121",
- "visitExtId": [
- "1215444",
- "1215447"
]
}, - "sureness": false,
- "ignoreInvalidIDAT": false
}
]
jobId required | string use the jobId from the url returned in the location-Header of the response after calling 'POST /jobs'. e.g. http://{Mainzelliste-URL}/jobs/{jobId}/?tokenId={tokenId} |
tokenId | string user the same tokenId used to create the job. |
[- {
- "status": 201,
- "body": [
- {
- "idType": "pid",
- "idString": "0003Y0WZ",
- "tentative": false
}
]
}, - {
- "status": 409,
- "body": {
- "message": "Found existing patient with matching IDAT but conflicting external ID(s)."
}
}
]
Retrieve a list of all patients to whom the provided token grants access. The token specifies which patients and which data (IDAT, IDs) of these patients are retrieved.
tokenId required | string Id of a valid "readPatients" token. |
[- [
- {
- "fields": {
- "geburtstag": "01",
- "vorname": "Lars",
- "geburtsjahr": "1983",
- "nachname": "Rarigausson",
- "geburtsmonat": "11"
}, - "ids": [
- {
- "idType": "pid",
- "idString": "0003Y0WZ",
- "tentative": false
}
]
}
]
]
It is checked whether a patient with the given identifying data already exists in the database. If not, a new patient is created, and the configured IDs are generated and returned or forwarded for this patient. If yes, the existing IDs are used. For the caller, it is not discernible whether the patient already existed or was newly created. Check if a patient with the given identifying data exists in the database. If not sure (true) whether the data corresponds to an existing patient or a new entry, perform the following:
sureness: true
: Create a new patient. Generate the IDs as tentative (field "tentative," see ID section). This signals that a subsequent merge with an existing record is possible.sureness: false
: Check if the patient already exists and use the existing IDs.tokenId required | string Id of a valid "addPatient" token. |
mainzellisteApiVersion | string Version of Mainzelliste API. |
sureness | boolean Default: false |
[- { }
]
The dataset of the patient provided during token creation is modified as follows:
tokenId required | string Id of a valid "editPatient" token. |
mainzellisteApiVersion | string version of mainzelliste api. |
sureness | boolean Default: false |
Retrieve a list of all patients to whom the provided token grants access. The token specifies which patients and which data (IDAT, IDs) of these patients are retrieved.
tokenId required | string Id of a valid "readPatients" token. This can be created using sessions/{sessionId}/tokens endpoint. e.g.:
|
page | integer This is the result page number, if the client decide to return the result in a series of pages. This parameter have to be used together with "limit" query parameter. Both of them must be positive |
limit | integer This limit the number of results per page. This parameter have to be used together with "page" query parameter. Both of them must be positive |
object using a configured field name instead of |
[- [
- {
- "fields": {
- "geburtstag": "01",
- "vorname": "Lars",
- "geburtsjahr": "1983",
- "nachname": "Rarigausson",
- "geburtsmonat": "11"
}, - "ids": [
- {
- "idType": "pid",
- "idString": "0003Y0WZ",
- "tentative": false
}
]
}
]
]
It is checked whether a patient with the given identifying data already exists in the database. If not, a new patient is created, and the configured IDs are generated and returned or forwarded for this patient. If yes, the existing IDs are used. For the caller, it is not discernible whether the patient already existed or was newly created. Check if a patient with the given identifying data exists in the database. If not sure (true) whether the data corresponds to an existing patient or a new entry, perform the following:
sureness: true
: Create a new patient. Generate the IDs as tentative (field "tentative," see ID section). This signals that a subsequent merge with an existing record is possible.sureness: false
: Check if the patient already exists and use the existing IDs.tokenId required | string Id of a valid "addPatient" token. This can be created using sessions/{sessionId}/tokens endpoint. e.g.:
|
mainzellisteApiVersion | string Version of Mainzelliste API. |
fields | object configured IDAT field |
ids | object list of external Ids. Multiple external ID type must given as an array |
sureness | boolean Default: false This automate the decision, when an unsure match happen, and determine whether the tentative patient should be add or not. If true generate IDs as tentative (field "tentative") and also mark the patient as tentative to signal that a subsequent merge with an existing record is possible. Otherwise the request will be rejected |
ignoreInvalidIDAT | boolean Default: false This allows adding patient with invalid IDAT for subsequent corrections. As the IDAT not suitable for record linkage an external ID would berequired to ensure a feature linkage with existing patients. |
{- "fields": {
- "vorname": "Max",
- "nachname": "Mustermann",
- "geburtstag": "13",
- "geburtsmonat": "01",
- "geburtsjahr": "1891"
}, - "ids": {
- "extId": "464515121",
- "visitExtId": [
- "1215444",
- "1215447"
]
}, - "sureness": false,
- "ignoreInvalidIDAT": false
}
[- {
- "idType": "pid",
- "idString": "0003Y0WZ",
- "tentative": false
}
]
The dataset of the patient provided during token creation is modified as follows:
tokenId required | string Id of a valid "editPatient" token. This can be created using sessions/{sessionId}/tokens endpoint. e.g.:
|
mainzellisteApiVersion | string version of mainzelliste api. |
field | string |
externalId | string |
{- "vorname": "Max",
- "nachname": "Mustermann",
- "geburtstag": "13",
- "geburtsmonat": "01",
- "geburtsjahr": "1891",
- "edcExtId": "154521114"
}
delete a patient and anonymize entries in IDRequest database table.
tokenId required | string Id of a valid deletePatient token containing a valid "idType" and "idString" of the patient to be deleted. This can be created using sessions/{sessionId}/tokens endpoint. e.g.:
|
{- "sessionId": "57c4a68d-a113-4b52-a391-3f3fc2157344",
}
sessionId required | string Id of a valid session. |
mainzellisteApiKey | string Key of mainzelliste API. |
type | string Type of the token. |
allowedUses | integer Number of allowed uses of the token. |
data | object Further data about the token. |
{- "type": "integer",
- "allowedUses": 10,
}
{ }