SHAPTH
Use Case
laboratoryCreate

Zugelassene Untersuchungsstelle Niederlassung erstellen

Dieser Use Case beschreibt die GraphQL-Funktion laboratoryCreate für zugelassene Untersuchungsstellen.

Berechtigunglaboratory:manage
Endpoint
POST
/api/graphql/service

Weitere 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

Niederlassungen werden mit derselben Mutation wie reguläre Untersuchungsstellen erstellt. Der Unterschied liegt im gesetzten parent-Wert.

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
TypLaboratoryCreateInput!
Eingabeobjekt für laboratoryCreate.
input
federalState
SchemaNon-null
TypString!
Bundesland beziehungsweise zuständige Landeskennung.
parent
SchemaNullable
TypID
ID des Hauptstandorts. Nur für Nebenstandorte zu setzen.
fields
SchemaNon-null
TypLaboratoryCreateFieldsInput!
Stammdaten der Untersuchungsstelle.
input.fields
name
SchemaNon-null
TypString!
Name.
accreditation
SchemaNon-null
TypString!
Akkreditierungs- oder Zulassungsnummer.
paramsValue
SchemaNon-null
TypString!
In Klärung.
paramsVersion
SchemaNon-null
TypInt!
Version der Parameterkonfiguration.
flags
SchemaNon-null
TypLaboratoryFlagsInput!
Leistungs- und Akkreditierungsmerkmale.
input.fields.flags
officiallyApproved
SchemaNon-null
TypBoolean!
Offizielle Zulassung.
accredPhPhChChTests
SchemaNon-null
TypBoolean!
Akkreditierung für physikalische, physikalisch-chemische und chemische Untersuchungen.
accredPhPhChChSample
SchemaNon-null
TypBoolean!
Akkreditierung für entsprechende Probennahmen.
microbiologicalTests
SchemaNon-null
TypBoolean!
Mikrobiologische Untersuchungen.
microbiologicalSample
SchemaNon-null
TypBoolean!
Mikrobiologische Probennahmen.
radionuclidesTests
SchemaNon-null
TypBoolean!
Untersuchungen auf Radionuklide.
radionuclidesSample
SchemaNon-null
TypBoolean!
Probennahmen für Radionuklide.
onSiteParameterTests
SchemaNon-null
TypBoolean!
Vor-Ort-Parameter-Untersuchungen.
onSiteParameterSample
SchemaNon-null
TypBoolean!
Vor-Ort-Parameter-Probennahmen.
otherTests
SchemaNon-null
TypBoolean!
Weitere Untersuchungsbereiche.
testAreasAdditionalInformation
SchemaNullable
TypString
Ergänzende Angaben zu Untersuchungsbereichen.
supplementaryInformation
SchemaNullable
TypString
Weitere Zusatzinformationen.
input.fields
address
SchemaNon-null
TypCreateAddress!
Adresse des Eintrags.
input.fields.address
street
SchemaNon-null
TypString!
Straße.
house
SchemaNon-null
TypString!
Hausnummer.
zip
SchemaNon-null
TypString!
Postleitzahl.
place
SchemaNon-null
TypString!
Ort.
additional
SchemaNullable
TypString
Adresszusatz.
state
SchemaNon-null
TypString!
Bundesland oder Staat.
input.fields
contact
SchemaNon-null
TypCreateContact!
Kontaktinformationen.
input.fields.contact
mailbox
SchemaNullable
TypString
Funktionspostfach.
email
SchemaNon-null
Typ[String!]!
E-Mail-Adressen.
phone
SchemaNon-null
Typ[String!]!
Telefonnummern.
website
SchemaNon-null
Typ[String!]!
Webseiten.
comment
SchemaNullable
TypString
Kontaktkommentar.
input.fields
comment
SchemaNullable
TypString
Freitextkommentar.
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": "<DUMMY-SHAPTH-ID>",
  "fields": {
    "name": "Muster Labor Niederlassung",
    "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-08BY3",
    "name": "Muster Labor Niederlassung",
    "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": {
      "id": "D-PL-99999-99-08BY2",
      "name": "Muster Labor"
    },
    "branches": 0
  }
}
}

On this page