Use Case
laboratoryCreate
Zugelassene Untersuchungsstellen erstellen
Dieser Use Case beschreibt die GraphQL-Funktion laboratoryCreate für zugelassene Untersuchungsstellen.
Berechtigung
laboratory:manageEndpoint
POST
/api/graphql/serviceWeitere Informationen zu Basis-URLs und Umgebungen stehen im Kapitel Endpunkte.
Playground(nur GraphQL)
i
Rollenhinweis
Dieser Use Case ist nur für Obere Landesbehörden bzw. Benannte Stellen relevant.
laboratoryCreate
Für das Erstellen wird laboratoryCreate mit Stammdaten, Flags, Adresse und Kontaktinformationen verwendet.
Request-Parameter
Die Badges zeigen die Nullbarkeit aus dem GraphQL-Schema. Non-null bedeutet, dass der Wert im jeweiligen Eingabeobjekt gesetzt sein muss. Nullable bedeutet, dass der Wert optional oder fachlich konditional ist.
FeldDetails
input
SchemaNon-null
Typ
LaboratoryCreateInput!Eingabeobjekt für laboratoryCreate.
inputfederalState
SchemaNon-null
Typ
String!Bundesland beziehungsweise zuständige Landeskennung.
parent
SchemaNullable
Typ
IDID des Hauptstandorts. Nur für Nebenstandorte zu setzen.
fields
SchemaNon-null
Typ
LaboratoryCreateFieldsInput!Stammdaten der Untersuchungsstelle.
input.fieldsname
SchemaNon-null
Typ
String!Name.
accreditation
SchemaNon-null
Typ
String!Akkreditierungs- oder Zulassungsnummer.
paramsValue
SchemaNon-null
Typ
String!In Klärung.
paramsVersion
SchemaNon-null
Typ
Int!Version der Parameterkonfiguration.
flags
SchemaNon-null
Typ
LaboratoryFlagsInput!Leistungs- und Akkreditierungsmerkmale.
input.fields.flagsofficiallyApproved
SchemaNon-null
Typ
Boolean!Offizielle Zulassung.
accredPhPhChChTests
SchemaNon-null
Typ
Boolean!Akkreditierung für physikalische, physikalisch-chemische und chemische Untersuchungen.
accredPhPhChChSample
SchemaNon-null
Typ
Boolean!Akkreditierung für entsprechende Probennahmen.
microbiologicalTests
SchemaNon-null
Typ
Boolean!Mikrobiologische Untersuchungen.
microbiologicalSample
SchemaNon-null
Typ
Boolean!Mikrobiologische Probennahmen.
radionuclidesTests
SchemaNon-null
Typ
Boolean!Untersuchungen auf Radionuklide.
radionuclidesSample
SchemaNon-null
Typ
Boolean!Probennahmen für Radionuklide.
onSiteParameterTests
SchemaNon-null
Typ
Boolean!Vor-Ort-Parameter-Untersuchungen.
onSiteParameterSample
SchemaNon-null
Typ
Boolean!Vor-Ort-Parameter-Probennahmen.
otherTests
SchemaNon-null
Typ
Boolean!Weitere Untersuchungsbereiche.
testAreasAdditionalInformation
SchemaNullable
Typ
StringErgänzende Angaben zu Untersuchungsbereichen.
supplementaryInformation
SchemaNullable
Typ
StringWeitere Zusatzinformationen.
input.fieldsaddress
SchemaNon-null
Typ
CreateAddress!Adresse des Eintrags.
input.fields.addressstreet
SchemaNon-null
Typ
String!Straße.
house
SchemaNon-null
Typ
String!Hausnummer.
zip
SchemaNon-null
Typ
String!Postleitzahl.
place
SchemaNon-null
Typ
String!Ort.
additional
SchemaNullable
Typ
StringAdresszusatz.
state
SchemaNon-null
Typ
String!Bundesland oder Staat.
input.fieldscontact
SchemaNon-null
Typ
CreateContact!Kontaktinformationen.
input.fields.contactmailbox
SchemaNullable
Typ
StringFunktionspostfach.
SchemaNon-null
Typ
[String!]!E-Mail-Adressen.
phone
SchemaNon-null
Typ
[String!]!Telefonnummern.
website
SchemaNon-null
Typ
[String!]!Webseiten.
comment
SchemaNullable
Typ
StringKontaktkommentar.
input.fieldscomment
SchemaNullable
Typ
StringFreitextkommentar.
mutation LaboratoryCreate($input: LaboratoryCreateInput!) {
laboratoryCreate(input: $input) {
id
name
paramsValue
paramsVersion
accreditation
flags {
officiallyApproved
accredPhPhChChTests
accredPhPhChChSample
microbiologicalTests
microbiologicalSample
radionuclidesTests
radionuclidesSample
onSiteParameterTests
onSiteParameterSample
otherTests
testAreasAdditionalInformation
supplementaryInformation
}
address {
street
house
zip
place
additional
state
}
contact {
mailbox
email
phone
website
comment
}
active
editable
parent { id name }
branches
}
}{
"input": {
"federalState": "BY",
"parent": null,
"fields": {
"name": "Muster Labor",
"accreditation": "D-PL-00000-00",
"paramsValue": "<In Klärung>",
"paramsVersion": 1,
"flags": {
"officiallyApproved": true,
"accredPhPhChChTests": true,
"accredPhPhChChSample": true,
"microbiologicalTests": true,
"microbiologicalSample": true,
"radionuclidesTests": false,
"radionuclidesSample": false,
"onSiteParameterTests": true,
"onSiteParameterSample": true,
"otherTests": false,
"testAreasAdditionalInformation": "",
"supplementaryInformation": null
},
"address": {
"street": "Musterstraße",
"house": "1",
"zip": "00000",
"place": "Musterstadt",
"additional": "",
"state": "DE"
},
"contact": {
"mailbox": "Postfach 123",
"email": ["info@example-labor.org"],
"phone": ["+49 89 987654"],
"website": ["https://example-labor.org"],
"comment": "Kontakt nur für API-Tests"
},
"comment": "Beispielkommentar"
}
}
}{
"data": {
"laboratoryCreate": {
"id": "D-PL-99999-99-08BY2",
"name": "Muster Labor",
"paramsValue": "<In Klärung>",
"paramsVersion": 1,
"accreditation": "D-PL-99999-99",
"flags": {
"officiallyApproved": true,
"accredPhPhChChTests": true,
"accredPhPhChChSample": true,
"microbiologicalTests": true,
"microbiologicalSample": true,
"radionuclidesTests": false,
"radionuclidesSample": false,
"onSiteParameterTests": true,
"onSiteParameterSample": true,
"otherTests": false,
"testAreasAdditionalInformation": "",
"supplementaryInformation": null
},
"address": {
"street": "Musterstraße",
"house": "1",
"zip": "00000",
"place": "Musterstadt",
"additional": "",
"state": "DE"
},
"contact": {
"mailbox": "Postfach 123",
"email": ["info@example-labor.org"],
"phone": ["+49 89 987654"],
"website": ["https://example-labor.org"],
"comment": "Kontakt nur für API-Tests"
},
"active": true,
"editable": true,
"parent": null,
"branches": 0
}
}
}