{
  "openapi" : "3.1.0",
  "info" : {
    "title" : "DHG-API",
    "version" : "",
    "description" : "All endpoints require authorization, either with HelseID token (with DPoP proof), or Helsenorge token. Use authorize button or click lock-symbol to enter helsenorge bearer token (helseid / dpop is not supported in swagger). "
  },
  "components" : {
    "securitySchemes" : {
      "BearerAuth" : {
        "scheme" : "bearer",
        "type" : "http"
      }
    },
    "schemas" : {
      "LastUpdatedBy" : {
        "type" : "object",
        "properties" : {
          "userType" : {
            "$ref" : "#/components/schemas/LastUpdatedByType"
          },
          "orgNr" : {
            "type" : [ "string", "null" ]
          },
          "orgName" : {
            "type" : [ "string", "null" ]
          },
          "treatmentFacilityName" : {
            "type" : [ "string", "null" ]
          },
          "hprNr" : {
            "type" : [ "string", "null" ]
          },
          "hprRole" : {
            "type" : [ "string", "null" ]
          },
          "name" : {
            "type" : [ "string", "null" ]
          }
        },
        "required" : [ "userType" ]
      },
      "LastUpdatedByType" : {
        "type" : "string",
        "enum" : [ "HEALTH_CARE_PROFESSIONAL", "PATIENT" ]
      },
      "MetaAndUpdaterData" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "example" : "6473a401-37b7-4084-a3e2-cfbffb16ad4a"
          },
          "version" : {
            "type" : "integer",
            "format" : "int32",
            "example" : "1"
          },
          "lastUpdated" : {
            "type" : "string",
            "format" : "date-time",
            "example" : "2024-10-29T11:45:06.866Z"
          },
          "lastUpdatedBy" : {
            "$ref" : "#/components/schemas/LastUpdatedBy"
          }
        },
        "required" : [ "id", "version", "lastUpdated", "lastUpdatedBy" ]
      },
      "MetaAndUpdaterEnteredInErrorData" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "example" : "6473a401-37b7-4084-a3e2-cfbffb16ad4a"
          },
          "version" : {
            "type" : "integer",
            "format" : "int32",
            "example" : "1"
          },
          "lastUpdated" : {
            "type" : "string",
            "format" : "date-time",
            "example" : "2024-10-29T11:45:06.866Z"
          },
          "enteredInError" : {
            "example" : "false",
            "type" : [ "boolean", "null" ]
          },
          "lastUpdatedBy" : {
            "$ref" : "#/components/schemas/LastUpdatedBy"
          }
        },
        "required" : [ "id", "version", "lastUpdated", "lastUpdatedBy" ]
      },
      "RecordMetadata" : {
        "type" : "object",
        "properties" : {
          "recordId" : {
            "type" : "string"
          },
          "recordStatus" : {
            "$ref" : "#/components/schemas/RecordStatus"
          },
          "version" : {
            "type" : "integer",
            "format" : "int32"
          },
          "recordLastUpdated" : {
            "type" : "string",
            "format" : "date-time"
          },
          "lastUpdated" : {
            "type" : "string",
            "format" : "date-time"
          },
          "lastUpdatedBy" : {
            "$ref" : "#/components/schemas/LastUpdatedBy"
          }
        },
        "required" : [ "recordId", "recordStatus", "version", "recordLastUpdated", "lastUpdated", "lastUpdatedBy" ]
      },
      "RecordStatus" : {
        "type" : "object",
        "properties" : {
          "status" : {
            "$ref" : "#/components/schemas/RecordStatusEnum"
          }
        },
        "required" : [ "status" ]
      },
      "RecordStatusEnum" : {
        "type" : "string",
        "enum" : [ "ACTIVE", "TERMINATED", "DELIVERED", "ENTERED_IN_ERROR" ]
      },
      "UpdateRecordStatusDTO" : {
        "type" : "object",
        "properties" : {
          "recordStatus" : {
            "$ref" : "#/components/schemas/RecordStatus"
          },
          "version" : {
            "type" : "integer",
            "format" : "int32"
          }
        },
        "required" : [ "recordStatus", "version" ]
      },
      "VersionMetadata" : {
        "type" : "object",
        "properties" : {
          "version" : {
            "type" : "integer",
            "format" : "int32",
            "example" : "1"
          }
        },
        "required" : [ "version" ]
      },
      "ABOType" : {
        "type" : "string",
        "enum" : [ "A", "B", "AB", "O" ]
      },
      "CodeAndSystem" : {
        "type" : "object",
        "properties" : {
          "code" : {
            "type" : "string"
          },
          "display" : {
            "type" : [ "string", "null" ]
          },
          "codeSystem" : {
            "type" : [ "string", "null" ]
          }
        },
        "required" : [ "code" ]
      },
      "RhesusDType" : {
        "type" : "string",
        "enum" : [ "POSITIVE", "NEGATIVE" ]
      },
      "CreatePointsOfContactDTO" : {
        "type" : "object",
        "properties" : {
          "generalPractitioner" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/PersonAndOrganization"
            }, {
              "type" : "null"
            } ]
          },
          "midwife" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/PersonAndOrganizationName"
            }, {
              "type" : "null"
            } ]
          },
          "birthInstitute" : {
            "type" : [ "string", "null" ]
          },
          "maternityHealthcareCentre" : {
            "type" : [ "string", "null" ]
          }
        }
      },
      "PatchPointsOfContactDTO" : {
        "type" : "object",
        "properties" : {
          "metadata" : {
            "$ref" : "#/components/schemas/VersionMetadata"
          },
          "generalPractitioner" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "midwife" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "birthInstitute" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "maternityHealthcareCentre" : {
            "$ref" : "#/components/schemas/Patchable"
          }
        },
        "required" : [ "metadata", "generalPractitioner", "midwife", "birthInstitute", "maternityHealthcareCentre" ]
      },
      "PersonAndOrganization" : {
        "type" : "object",
        "properties" : {
          "name" : {
            "type" : [ "string", "null" ]
          },
          "organizationName" : {
            "type" : [ "string", "null" ]
          },
          "organizationId" : {
            "type" : [ "string", "null" ]
          },
          "hprNr" : {
            "type" : [ "string", "null" ]
          }
        }
      },
      "PersonAndOrganizationName" : {
        "type" : "object",
        "properties" : {
          "name" : {
            "type" : [ "string", "null" ]
          },
          "organizationName" : {
            "type" : [ "string", "null" ]
          },
          "hprNr" : {
            "type" : [ "string", "null" ]
          }
        }
      },
      "ReadPointsOfContactDTO" : {
        "type" : "object",
        "properties" : {
          "metadata" : {
            "$ref" : "#/components/schemas/MetaAndUpdaterData"
          },
          "generalPractitioner" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/PersonAndOrganization"
            }, {
              "type" : "null"
            } ]
          },
          "midwife" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/PersonAndOrganizationName"
            }, {
              "type" : "null"
            } ]
          },
          "birthInstitute" : {
            "type" : [ "string", "null" ]
          },
          "maternityHealthcareCentre" : {
            "type" : [ "string", "null" ]
          }
        },
        "required" : [ "metadata" ]
      },
      "UpdatePointsOfContactDTO" : {
        "type" : "object",
        "properties" : {
          "metadata" : {
            "$ref" : "#/components/schemas/VersionMetadata"
          },
          "generalPractitioner" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/PersonAndOrganization"
            }, {
              "type" : "null"
            } ]
          },
          "midwife" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/PersonAndOrganizationName"
            }, {
              "type" : "null"
            } ]
          },
          "birthInstitute" : {
            "type" : [ "string", "null" ]
          },
          "maternityHealthcareCentre" : {
            "type" : [ "string", "null" ]
          }
        },
        "required" : [ "metadata" ]
      },
      "StatusResponse" : {
        "type" : "object",
        "properties" : {
          "hasGivenConsent" : {
            "type" : "boolean"
          },
          "hasActiveMaternityRecord" : {
            "type" : "boolean"
          },
          "latestRecordId" : {
            "type" : [ "string", "null" ]
          },
          "lastChangedDateTime" : {
            "format" : "date-time",
            "type" : [ "string", "null" ]
          },
          "deceased" : {
            "type" : "boolean"
          },
          "hasConfidentialAddress" : {
            "type" : "boolean"
          }
        },
        "required" : [ "hasGivenConsent", "hasActiveMaternityRecord", "deceased", "hasConfidentialAddress" ]
      },
      "ErrorResponse" : {
        "type" : "object",
        "properties" : {
          "errorCode" : {
            "type" : "string"
          },
          "errorMessage" : {
            "type" : "string"
          },
          "eventId" : {
            "type" : "string"
          }
        },
        "required" : [ "errorCode", "errorMessage", "eventId" ]
      },
      "CreateMaternityRecordDTO" : {
        "type" : "object",
        "properties" : {
          "mother" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/CreateMotherDTO"
            }, {
              "type" : "null"
            } ]
          },
          "birthStatus" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/CreateBirthStatusDTO"
            }, {
              "type" : "null"
            } ]
          },
          "currentPregnancy" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/CreateCurrentPregnancyDTO"
            }, {
              "type" : "null"
            } ]
          },
          "previousPregnancies" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/CreatePreviousPregnanciesDTO"
            }, {
              "type" : "null"
            } ]
          },
          "pointsOfContact" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/CreatePointsOfContactDTO"
            }, {
              "type" : "null"
            } ]
          },
          "geneticDisorders" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/CreateGeneticDisordersDTO"
            }, {
              "type" : "null"
            } ]
          },
          "lifestyleFactors" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/CreateLifestyleFactorsDTO"
            }, {
              "type" : "null"
            } ]
          },
          "medicalConditions" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/CreateMedicalConditionsDTO"
            }, {
              "type" : "null"
            } ]
          },
          "medication" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/CreateMedicationDTO"
            }, {
              "type" : "null"
            } ]
          },
          "clinicalTests" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/CreateClinicalTestsDTO"
            }, {
              "type" : "null"
            } ]
          },
          "rhesusDNegative" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/CreateRhesusDNegativeDTO"
            }, {
              "type" : "null"
            } ]
          },
          "vitalMeasurementsBeforePregnancy" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/CreateVitalMeasurementsBeforePregnancyDTO"
            }, {
              "type" : "null"
            } ]
          },
          "symphysisFundalHeights" : {
            "items" : {
              "$ref" : "#/components/schemas/CreateSymphysisFundalHeightDTO"
            },
            "type" : [ "array", "null" ]
          },
          "antenatalAppointments" : {
            "items" : {
              "$ref" : "#/components/schemas/CreateAntenatalAppointmentDTO"
            },
            "type" : [ "array", "null" ]
          }
        }
      },
      "PatchMaternityRecordDTO" : {
        "type" : "object",
        "properties" : {
          "mother" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/PatchMotherDTO"
            }, {
              "type" : "null"
            } ]
          },
          "geneticDisorders" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/PatchGeneticDisordersDTO"
            }, {
              "type" : "null"
            } ]
          },
          "lifestyleFactors" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/PatchLifestyleFactorsDTO"
            }, {
              "type" : "null"
            } ]
          },
          "medicalConditions" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/PatchMedicalConditionsDTO"
            }, {
              "type" : "null"
            } ]
          },
          "medication" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/PatchMedicationDTO"
            }, {
              "type" : "null"
            } ]
          },
          "clinicalTests" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/PatchClinicalTestsDTO"
            }, {
              "type" : "null"
            } ]
          },
          "currentPregnancy" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/PatchCurrentPregnancyDTO"
            }, {
              "type" : "null"
            } ]
          },
          "previousPregnancies" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/PatchPreviousPregnanciesDTO"
            }, {
              "type" : "null"
            } ]
          },
          "pointsOfContact" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/PatchPointsOfContactDTO"
            }, {
              "type" : "null"
            } ]
          },
          "rhesusDNegative" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/PatchRhesusDNegativeDTO"
            }, {
              "type" : "null"
            } ]
          },
          "vitalMeasurementsBeforePregnancy" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/PatchVitalMeasurementsBeforePregnancyDTO"
            }, {
              "type" : "null"
            } ]
          }
        }
      },
      "ReadMaternityRecordDTO" : {
        "type" : "object",
        "properties" : {
          "metadata" : {
            "$ref" : "#/components/schemas/RecordMetadata"
          },
          "mother" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/ReadMotherDTO"
            }, {
              "type" : "null"
            } ]
          },
          "birthStatus" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/ReadBirthStatusDTO"
            }, {
              "type" : "null"
            } ]
          },
          "currentPregnancy" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/ReadCurrentPregnancyDTO"
            }, {
              "type" : "null"
            } ]
          },
          "previousPregnancies" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/ReadPreviousPregnanciesDTO"
            }, {
              "type" : "null"
            } ]
          },
          "pointsOfContact" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/ReadPointsOfContactDTO"
            }, {
              "type" : "null"
            } ]
          },
          "geneticDisorders" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/ReadGeneticDisordersDTO"
            }, {
              "type" : "null"
            } ]
          },
          "lifestyleFactors" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/ReadLifestyleFactorsDTO"
            }, {
              "type" : "null"
            } ]
          },
          "medicalConditions" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/ReadMedicalConditionsDTO"
            }, {
              "type" : "null"
            } ]
          },
          "medication" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/ReadMedicationDTO"
            }, {
              "type" : "null"
            } ]
          },
          "clinicalTests" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/ReadClinicalTestsDTO"
            }, {
              "type" : "null"
            } ]
          },
          "rhesusDNegative" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/ReadRhesusDNegativeDTO"
            }, {
              "type" : "null"
            } ]
          },
          "vitalMeasurementsBeforePregnancy" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/ReadVitalMeasurementsBeforePregnancyDTO"
            }, {
              "type" : "null"
            } ]
          },
          "symphysisFundalHeights" : {
            "items" : {
              "$ref" : "#/components/schemas/ReadSymphysisFundalHeightDTO"
            },
            "type" : [ "array", "null" ]
          },
          "antenatalAppointments" : {
            "items" : {
              "$ref" : "#/components/schemas/ReadAntenatalAppointmentDTO"
            },
            "type" : [ "array", "null" ]
          }
        },
        "required" : [ "metadata" ]
      },
      "CreateAntenatalAppointmentDTO" : {
        "type" : "object",
        "properties" : {
          "appointmentDate" : {
            "format" : "date",
            "example" : "2024-10-29",
            "type" : [ "string", "null" ]
          },
          "pregnancyWeek" : {
            "format" : "int32",
            "type" : [ "integer", "null" ]
          },
          "daysAfterFullPregnancyWeek" : {
            "format" : "int32",
            "type" : [ "integer", "null" ]
          },
          "fetusesVitalSigns" : {
            "items" : {
              "$ref" : "#/components/schemas/FetusVitalSignsDTO"
            },
            "type" : [ "array", "null" ]
          },
          "motherWeight" : {
            "format" : "double",
            "type" : [ "number", "null" ]
          },
          "bloodPressure" : {
            "example" : "120/80",
            "type" : [ "string", "null" ]
          },
          "proteinInUrineTestResult" : {
            "example" : "Neg",
            "type" : [ "string", "null" ]
          },
          "edema" : {
            "format" : "int32",
            "type" : [ "integer", "null" ]
          },
          "medication" : {
            "type" : [ "boolean", "null" ]
          },
          "employmentRate" : {
            "format" : "int32",
            "type" : [ "integer", "null" ]
          },
          "note" : {
            "type" : [ "string", "null" ]
          }
        },
        "required" : [ "appointmentDate" ]
      },
      "FetusVitalSignsDTO" : {
        "type" : "object",
        "properties" : {
          "fosterId" : {
            "format" : "int32",
            "type" : [ "integer", "null" ]
          },
          "fetalHeartRate" : {
            "format" : "int32",
            "type" : [ "integer", "null" ]
          },
          "fetalPresentationLie" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/CodeAndSystem"
            }, {
              "type" : "null"
            } ]
          },
          "motherFeelsBabyMovements" : {
            "type" : [ "boolean", "null" ]
          },
          "note" : {
            "type" : [ "string", "null" ]
          }
        }
      },
      "ReadAntenatalAppointmentDTO" : {
        "type" : "object",
        "properties" : {
          "metadata" : {
            "$ref" : "#/components/schemas/MetaAndUpdaterEnteredInErrorData"
          },
          "appointmentDate" : {
            "format" : "date",
            "example" : "2024-10-29",
            "type" : [ "string", "null" ]
          },
          "pregnancyWeek" : {
            "format" : "int32",
            "type" : [ "integer", "null" ]
          },
          "daysAfterFullPregnancyWeek" : {
            "format" : "int32",
            "type" : [ "integer", "null" ]
          },
          "fetusesVitalSigns" : {
            "items" : {
              "$ref" : "#/components/schemas/FetusVitalSignsDTO"
            },
            "type" : [ "array", "null" ]
          },
          "motherWeight" : {
            "format" : "double",
            "type" : [ "number", "null" ]
          },
          "bloodPressure" : {
            "example" : "120/80",
            "type" : [ "string", "null" ]
          },
          "proteinInUrineTestResult" : {
            "example" : "Neg",
            "type" : [ "string", "null" ]
          },
          "edema" : {
            "format" : "int32",
            "type" : [ "integer", "null" ]
          },
          "medication" : {
            "type" : [ "boolean", "null" ]
          },
          "employmentRate" : {
            "format" : "int32",
            "type" : [ "integer", "null" ]
          },
          "note" : {
            "type" : [ "string", "null" ]
          }
        },
        "required" : [ "metadata", "appointmentDate" ]
      },
      "UpdateAntenatalAppointmentDTO" : {
        "type" : "object",
        "properties" : {
          "metadata" : {
            "$ref" : "#/components/schemas/VersionMetadata"
          },
          "appointmentDate" : {
            "format" : "date",
            "example" : "2024-10-29",
            "type" : [ "string", "null" ]
          },
          "pregnancyWeek" : {
            "format" : "int32",
            "type" : [ "integer", "null" ]
          },
          "daysAfterFullPregnancyWeek" : {
            "format" : "int32",
            "type" : [ "integer", "null" ]
          },
          "fetusesVitalSigns" : {
            "items" : {
              "$ref" : "#/components/schemas/FetusVitalSignsDTO"
            },
            "type" : [ "array", "null" ]
          },
          "motherWeight" : {
            "format" : "double",
            "type" : [ "number", "null" ]
          },
          "bloodPressure" : {
            "example" : "120/80",
            "type" : [ "string", "null" ]
          },
          "proteinInUrineTestResult" : {
            "example" : "Neg",
            "type" : [ "string", "null" ]
          },
          "edema" : {
            "format" : "int32",
            "type" : [ "integer", "null" ]
          },
          "medication" : {
            "type" : [ "boolean", "null" ]
          },
          "employmentRate" : {
            "format" : "int32",
            "type" : [ "integer", "null" ]
          },
          "note" : {
            "type" : [ "string", "null" ]
          }
        },
        "required" : [ "metadata", "appointmentDate" ]
      },
      "CreateBirthStatusDTO" : {
        "type" : "object",
        "properties" : {
          "birthStatus" : {
            "items" : {
              "$ref" : "#/components/schemas/FetusBirthStatusDTO"
            },
            "type" : [ "array", "null" ]
          }
        }
      },
      "FetusBirthStatusDTO" : {
        "type" : "object",
        "properties" : {
          "fosterId" : {
            "type" : "integer",
            "format" : "int32"
          },
          "status" : {
            "$ref" : "#/components/schemas/CodeAndSystem"
          },
          "datetime" : {
            "type" : "string",
            "format" : "date-time",
            "example" : "2026-02-21T11:45:06.866Z"
          }
        },
        "required" : [ "fosterId", "status", "datetime" ]
      },
      "ReadBirthStatusDTO" : {
        "type" : "object",
        "properties" : {
          "metadata" : {
            "$ref" : "#/components/schemas/MetaAndUpdaterData"
          },
          "birthStatus" : {
            "items" : {
              "$ref" : "#/components/schemas/FetusBirthStatusDTO"
            },
            "type" : [ "array", "null" ]
          }
        },
        "required" : [ "metadata" ]
      },
      "UpdateBirthStatusDTO" : {
        "type" : "object",
        "properties" : {
          "metadata" : {
            "$ref" : "#/components/schemas/VersionMetadata"
          },
          "birthStatus" : {
            "items" : {
              "$ref" : "#/components/schemas/FetusBirthStatusDTO"
            },
            "type" : [ "array", "null" ]
          }
        },
        "required" : [ "metadata" ]
      },
      "AboRh" : {
        "type" : "object",
        "properties" : {
          "aboType" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/ABOType"
            }, {
              "type" : "null"
            } ]
          },
          "rhesusDType" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/RhesusDType"
            }, {
              "type" : "null"
            } ]
          }
        }
      },
      "CreateClinicalTestsDTO" : {
        "type" : "object",
        "properties" : {
          "hemoglobin" : {
            "format" : "double",
            "type" : [ "number", "null" ]
          },
          "hemoglobinAt3rdTrimester" : {
            "format" : "double",
            "type" : [ "number", "null" ]
          },
          "ferritin" : {
            "format" : "double",
            "type" : [ "number", "null" ]
          },
          "hbv" : {
            "type" : [ "boolean", "null" ]
          },
          "hbvCore" : {
            "type" : [ "boolean", "null" ]
          },
          "hiv" : {
            "type" : [ "boolean", "null" ]
          },
          "syphilis" : {
            "type" : [ "boolean", "null" ]
          },
          "aboRh" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/AboRh"
            }, {
              "type" : "null"
            } ]
          },
          "bloodAntibodies" : {
            "type" : [ "boolean", "null" ]
          },
          "chlamydia" : {
            "type" : [ "boolean", "null" ]
          },
          "toxoplasmosis" : {
            "type" : [ "boolean", "null" ]
          },
          "rubellaAntigen" : {
            "type" : [ "boolean", "null" ]
          },
          "hepatitisC" : {
            "type" : [ "boolean", "null" ]
          },
          "mrsaVreEsbl" : {
            "type" : [ "boolean", "null" ]
          },
          "bHbA1c" : {
            "format" : "int32",
            "type" : [ "integer", "null" ]
          },
          "glucoseTolerance" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/GlucoseTolerance"
            }, {
              "type" : "null"
            } ]
          },
          "gonorrhea" : {
            "type" : [ "boolean", "null" ]
          },
          "cytomegaloVirus" : {
            "type" : [ "boolean", "null" ]
          },
          "asymptomaticBacteriuria" : {
            "type" : [ "boolean", "null" ]
          },
          "groupBStreptococci" : {
            "type" : [ "boolean", "null" ]
          },
          "note" : {
            "type" : [ "string", "null" ]
          }
        }
      },
      "GlucoseTolerance" : {
        "type" : "object",
        "properties" : {
          "fastingGlucoseLevel" : {
            "format" : "double",
            "type" : [ "number", "null" ]
          },
          "post2hGlucoseLevel" : {
            "format" : "double",
            "type" : [ "number", "null" ]
          },
          "testDate" : {
            "format" : "date",
            "example" : "2025-01-29",
            "type" : [ "string", "null" ]
          }
        }
      },
      "PatchClinicalTestsDTO" : {
        "type" : "object",
        "properties" : {
          "metadata" : {
            "$ref" : "#/components/schemas/VersionMetadata"
          },
          "hemoglobin" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "hemoglobinAt3rdTrimester" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "ferritin" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "hbv" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "hbvCore" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "hiv" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "syphilis" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "aboRh" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "bloodAntibodies" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "chlamydia" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "toxoplasmosis" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "rubellaAntigen" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "hepatitisC" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "mrsaVreEsbl" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "bHbA1c" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "glucoseTolerance" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "gonorrhea" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "cytomegaloVirus" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "asymptomaticBacteriuria" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "groupBStreptococci" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "note" : {
            "$ref" : "#/components/schemas/Patchable"
          }
        },
        "required" : [ "metadata", "hemoglobin", "hemoglobinAt3rdTrimester", "ferritin", "hbv", "hbvCore", "hiv", "syphilis", "aboRh", "bloodAntibodies", "chlamydia", "toxoplasmosis", "rubellaAntigen", "hepatitisC", "mrsaVreEsbl", "bHbA1c", "glucoseTolerance", "gonorrhea", "cytomegaloVirus", "asymptomaticBacteriuria", "groupBStreptococci", "note" ]
      },
      "ReadClinicalTestsDTO" : {
        "type" : "object",
        "properties" : {
          "metadata" : {
            "$ref" : "#/components/schemas/MetaAndUpdaterData"
          },
          "hemoglobin" : {
            "format" : "double",
            "type" : [ "number", "null" ]
          },
          "hemoglobinAt3rdTrimester" : {
            "format" : "double",
            "type" : [ "number", "null" ]
          },
          "ferritin" : {
            "format" : "double",
            "type" : [ "number", "null" ]
          },
          "hbv" : {
            "type" : [ "boolean", "null" ]
          },
          "hbvCore" : {
            "type" : [ "boolean", "null" ]
          },
          "hiv" : {
            "type" : [ "boolean", "null" ]
          },
          "syphilis" : {
            "type" : [ "boolean", "null" ]
          },
          "aboRh" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/AboRh"
            }, {
              "type" : "null"
            } ]
          },
          "bloodAntibodies" : {
            "type" : [ "boolean", "null" ]
          },
          "chlamydia" : {
            "type" : [ "boolean", "null" ]
          },
          "toxoplasmosis" : {
            "type" : [ "boolean", "null" ]
          },
          "rubellaAntigen" : {
            "type" : [ "boolean", "null" ]
          },
          "hepatitisC" : {
            "type" : [ "boolean", "null" ]
          },
          "mrsaVreEsbl" : {
            "type" : [ "boolean", "null" ]
          },
          "bHbA1c" : {
            "format" : "int32",
            "type" : [ "integer", "null" ]
          },
          "glucoseTolerance" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/GlucoseTolerance"
            }, {
              "type" : "null"
            } ]
          },
          "gonorrhea" : {
            "type" : [ "boolean", "null" ]
          },
          "cytomegaloVirus" : {
            "type" : [ "boolean", "null" ]
          },
          "asymptomaticBacteriuria" : {
            "type" : [ "boolean", "null" ]
          },
          "groupBStreptococci" : {
            "type" : [ "boolean", "null" ]
          },
          "note" : {
            "type" : [ "string", "null" ]
          }
        },
        "required" : [ "metadata" ]
      },
      "UpdateClinicalTestsDTO" : {
        "type" : "object",
        "properties" : {
          "metadata" : {
            "$ref" : "#/components/schemas/VersionMetadata"
          },
          "hemoglobin" : {
            "format" : "double",
            "type" : [ "number", "null" ]
          },
          "hemoglobinAt3rdTrimester" : {
            "format" : "double",
            "type" : [ "number", "null" ]
          },
          "ferritin" : {
            "format" : "double",
            "type" : [ "number", "null" ]
          },
          "hbv" : {
            "type" : [ "boolean", "null" ]
          },
          "hbvCore" : {
            "type" : [ "boolean", "null" ]
          },
          "hiv" : {
            "type" : [ "boolean", "null" ]
          },
          "syphilis" : {
            "type" : [ "boolean", "null" ]
          },
          "aboRh" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/AboRh"
            }, {
              "type" : "null"
            } ]
          },
          "bloodAntibodies" : {
            "type" : [ "boolean", "null" ]
          },
          "chlamydia" : {
            "type" : [ "boolean", "null" ]
          },
          "toxoplasmosis" : {
            "type" : [ "boolean", "null" ]
          },
          "rubellaAntigen" : {
            "type" : [ "boolean", "null" ]
          },
          "hepatitisC" : {
            "type" : [ "boolean", "null" ]
          },
          "mrsaVreEsbl" : {
            "type" : [ "boolean", "null" ]
          },
          "bHbA1c" : {
            "format" : "int32",
            "type" : [ "integer", "null" ]
          },
          "glucoseTolerance" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/GlucoseTolerance"
            }, {
              "type" : "null"
            } ]
          },
          "gonorrhea" : {
            "type" : [ "boolean", "null" ]
          },
          "cytomegaloVirus" : {
            "type" : [ "boolean", "null" ]
          },
          "asymptomaticBacteriuria" : {
            "type" : [ "boolean", "null" ]
          },
          "groupBStreptococci" : {
            "type" : [ "boolean", "null" ]
          },
          "note" : {
            "type" : [ "string", "null" ]
          }
        },
        "required" : [ "metadata" ]
      },
      "AssistedConceptionDTO" : {
        "type" : "object",
        "properties" : {
          "hadAssistedConception" : {
            "type" : "boolean"
          },
          "dateAssistedConception" : {
            "format" : "date",
            "example" : "2024-10-29",
            "type" : [ "string", "null" ]
          }
        },
        "required" : [ "hadAssistedConception" ]
      },
      "CreateCurrentPregnancyDTO" : {
        "type" : "object",
        "properties" : {
          "dateLastPeriod" : {
            "format" : "date",
            "example" : "2024-10-29",
            "type" : [ "string", "null" ]
          },
          "dueDate" : {
            "format" : "date",
            "example" : "2024-10-29",
            "type" : [ "string", "null" ]
          },
          "dueDateBasedOnUltrasound" : {
            "format" : "date",
            "example" : "2024-10-29",
            "type" : [ "string", "null" ]
          },
          "dueDateCorrectedDate" : {
            "format" : "date",
            "example" : "2024-10-29",
            "type" : [ "string", "null" ]
          },
          "hasPrenatalDiagnosticsTests" : {
            "type" : [ "boolean", "null" ]
          },
          "numberOfFetuses" : {
            "format" : "int32",
            "type" : [ "integer", "null" ]
          },
          "assistedConception" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/AssistedConceptionDTO"
            }, {
              "type" : "null"
            } ]
          },
          "birthPreparationTalk" : {
            "type" : [ "boolean", "null" ]
          },
          "breastfeedingGuidance" : {
            "type" : [ "boolean", "null" ]
          }
        }
      },
      "PatchCurrentPregnancyDTO" : {
        "type" : "object",
        "properties" : {
          "metadata" : {
            "$ref" : "#/components/schemas/VersionMetadata"
          },
          "dateLastPeriod" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "dueDate" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "dueDateBasedOnUltrasound" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "dueDateCorrectedDate" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "hasPrenatalDiagnosticsTests" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "numberOfFetuses" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "assistedConception" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "birthPreparationTalk" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "breastfeedingGuidance" : {
            "$ref" : "#/components/schemas/Patchable"
          }
        },
        "required" : [ "metadata", "dateLastPeriod", "dueDate", "dueDateBasedOnUltrasound", "dueDateCorrectedDate", "hasPrenatalDiagnosticsTests", "numberOfFetuses", "assistedConception", "birthPreparationTalk", "breastfeedingGuidance" ]
      },
      "ReadCurrentPregnancyDTO" : {
        "type" : "object",
        "properties" : {
          "metadata" : {
            "$ref" : "#/components/schemas/MetaAndUpdaterData"
          },
          "dateLastPeriod" : {
            "format" : "date",
            "example" : "2024-10-29",
            "type" : [ "string", "null" ]
          },
          "dueDate" : {
            "format" : "date",
            "example" : "2024-10-29",
            "type" : [ "string", "null" ]
          },
          "dueDateBasedOnUltrasound" : {
            "format" : "date",
            "example" : "2024-10-29",
            "type" : [ "string", "null" ]
          },
          "dueDateCorrectedDate" : {
            "format" : "date",
            "example" : "2024-10-29",
            "type" : [ "string", "null" ]
          },
          "hasPrenatalDiagnosticsTests" : {
            "type" : [ "boolean", "null" ]
          },
          "numberOfFetuses" : {
            "format" : "int32",
            "type" : [ "integer", "null" ]
          },
          "assistedConception" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/AssistedConceptionDTO"
            }, {
              "type" : "null"
            } ]
          },
          "birthPreparationTalk" : {
            "type" : [ "boolean", "null" ]
          },
          "breastfeedingGuidance" : {
            "type" : [ "boolean", "null" ]
          }
        },
        "required" : [ "metadata" ]
      },
      "UpdateCurrentPregnancyDTO" : {
        "type" : "object",
        "properties" : {
          "metadata" : {
            "$ref" : "#/components/schemas/VersionMetadata"
          },
          "dateLastPeriod" : {
            "format" : "date",
            "example" : "2024-10-29",
            "type" : [ "string", "null" ]
          },
          "dueDate" : {
            "format" : "date",
            "example" : "2024-10-29",
            "type" : [ "string", "null" ]
          },
          "dueDateBasedOnUltrasound" : {
            "format" : "date",
            "example" : "2024-10-29",
            "type" : [ "string", "null" ]
          },
          "dueDateCorrectedDate" : {
            "format" : "date",
            "example" : "2024-10-29",
            "type" : [ "string", "null" ]
          },
          "hasPrenatalDiagnosticsTests" : {
            "type" : [ "boolean", "null" ]
          },
          "numberOfFetuses" : {
            "format" : "int32",
            "type" : [ "integer", "null" ]
          },
          "assistedConception" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/AssistedConceptionDTO"
            }, {
              "type" : "null"
            } ]
          },
          "birthPreparationTalk" : {
            "type" : [ "boolean", "null" ]
          },
          "breastfeedingGuidance" : {
            "type" : [ "boolean", "null" ]
          }
        },
        "required" : [ "metadata" ]
      },
      "CreateGeneticDisordersDTO" : {
        "type" : "object",
        "properties" : {
          "noneKnown" : {
            "type" : [ "boolean", "null" ]
          },
          "parentsAreRelatives" : {
            "type" : [ "boolean", "null" ]
          },
          "hipDysplasia" : {
            "type" : [ "boolean", "null" ]
          },
          "other" : {
            "type" : [ "boolean", "null" ]
          },
          "note" : {
            "type" : [ "string", "null" ]
          }
        }
      },
      "PatchGeneticDisordersDTO" : {
        "type" : "object",
        "properties" : {
          "metadata" : {
            "$ref" : "#/components/schemas/VersionMetadata"
          },
          "noneKnown" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "parentsAreRelatives" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "hipDysplasia" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "other" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "note" : {
            "$ref" : "#/components/schemas/Patchable"
          }
        },
        "required" : [ "metadata", "noneKnown", "parentsAreRelatives", "hipDysplasia", "other", "note" ]
      },
      "ReadGeneticDisordersDTO" : {
        "type" : "object",
        "properties" : {
          "metadata" : {
            "$ref" : "#/components/schemas/MetaAndUpdaterData"
          },
          "noneKnown" : {
            "type" : [ "boolean", "null" ]
          },
          "parentsAreRelatives" : {
            "type" : [ "boolean", "null" ]
          },
          "hipDysplasia" : {
            "type" : [ "boolean", "null" ]
          },
          "other" : {
            "type" : [ "boolean", "null" ]
          },
          "note" : {
            "type" : [ "string", "null" ]
          }
        },
        "required" : [ "metadata" ]
      },
      "UpdateGeneticDisordersDTO" : {
        "type" : "object",
        "properties" : {
          "metadata" : {
            "$ref" : "#/components/schemas/VersionMetadata"
          },
          "noneKnown" : {
            "type" : [ "boolean", "null" ]
          },
          "parentsAreRelatives" : {
            "type" : [ "boolean", "null" ]
          },
          "hipDysplasia" : {
            "type" : [ "boolean", "null" ]
          },
          "other" : {
            "type" : [ "boolean", "null" ]
          },
          "note" : {
            "type" : [ "string", "null" ]
          }
        },
        "required" : [ "metadata" ]
      },
      "HistoricalMaternityRecordDTO" : {
        "type" : "object",
        "properties" : {
          "metadata" : {
            "$ref" : "#/components/schemas/RecordMetadata"
          },
          "mother" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/ReadMotherDTO"
            }
          },
          "birthStatus" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/ReadBirthStatusDTO"
            }
          },
          "currentPregnancy" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/ReadCurrentPregnancyDTO"
            }
          },
          "previousPregnancies" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/ReadPreviousPregnanciesDTO"
            }
          },
          "pointsOfContact" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/ReadPointsOfContactDTO"
            }
          },
          "geneticDisorders" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/ReadGeneticDisordersDTO"
            }
          },
          "lifestyleFactors" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/ReadLifestyleFactorsDTO"
            }
          },
          "medicalConditions" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/ReadMedicalConditionsDTO"
            }
          },
          "medication" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/ReadMedicationDTO"
            }
          },
          "clinicalTests" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/ReadClinicalTestsDTO"
            }
          },
          "rhesusDNegative" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/ReadRhesusDNegativeDTO"
            }
          },
          "vitalMeasurementsBeforePregnancy" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/ReadVitalMeasurementsBeforePregnancyDTO"
            }
          },
          "symphysisFundalHeights" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/ReadSymphysisFundalHeightDTO"
            }
          },
          "antenatalAppointments" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/ReadAntenatalAppointmentDTO"
            }
          }
        },
        "required" : [ "metadata", "mother", "birthStatus", "currentPregnancy", "previousPregnancies", "pointsOfContact", "geneticDisorders", "lifestyleFactors", "medicalConditions", "medication", "clinicalTests", "rhesusDNegative", "vitalMeasurementsBeforePregnancy", "symphysisFundalHeights", "antenatalAppointments" ]
      },
      "HistoricalMaternityRecordsDTO" : {
        "type" : "object",
        "properties" : {
          "history" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/RecordMetadata"
            }
          }
        },
        "required" : [ "history" ]
      },
      "CreateLifestyleFactorsDTO" : {
        "type" : "object",
        "properties" : {
          "stimuli" : {
            "items" : {
              "$ref" : "#/components/schemas/StimuliTypeDTO"
            },
            "type" : [ "array", "null" ]
          },
          "note" : {
            "type" : [ "string", "null" ]
          }
        }
      },
      "PatchLifestyleFactorsDTO" : {
        "type" : "object",
        "properties" : {
          "metadata" : {
            "$ref" : "#/components/schemas/VersionMetadata"
          },
          "stimuli" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "note" : {
            "$ref" : "#/components/schemas/Patchable"
          }
        },
        "required" : [ "metadata", "stimuli", "note" ]
      },
      "ReadLifestyleFactorsDTO" : {
        "type" : "object",
        "properties" : {
          "metadata" : {
            "$ref" : "#/components/schemas/MetaAndUpdaterData"
          },
          "stimuli" : {
            "items" : {
              "$ref" : "#/components/schemas/StimuliTypeDTO"
            },
            "type" : [ "array", "null" ]
          },
          "note" : {
            "type" : [ "string", "null" ]
          }
        },
        "required" : [ "metadata" ]
      },
      "StimuliFrequency" : {
        "type" : "object",
        "properties" : {
          "stimuliFrequency" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/CodeAndSystem"
            }, {
              "type" : "null"
            } ]
          },
          "dailyCount" : {
            "format" : "int32",
            "type" : [ "integer", "null" ]
          }
        }
      },
      "StimuliTypeDTO" : {
        "type" : "object",
        "properties" : {
          "stimuliType" : {
            "$ref" : "#/components/schemas/CodeAndSystem"
          },
          "stimuliFrequencyFirstConsultation" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/StimuliFrequency"
            }, {
              "type" : "null"
            } ]
          },
          "stimuliFrequencyAtWeek36" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/StimuliFrequency"
            }, {
              "type" : "null"
            } ]
          }
        },
        "required" : [ "stimuliType" ]
      },
      "UpdateLifestyleFactorsDTO" : {
        "type" : "object",
        "properties" : {
          "metadata" : {
            "$ref" : "#/components/schemas/VersionMetadata"
          },
          "stimuli" : {
            "items" : {
              "$ref" : "#/components/schemas/StimuliTypeDTO"
            },
            "type" : [ "array", "null" ]
          },
          "note" : {
            "type" : [ "string", "null" ]
          }
        },
        "required" : [ "metadata" ]
      },
      "CreateMedicalConditionsDTO" : {
        "type" : "object",
        "properties" : {
          "nothingParticular" : {
            "type" : [ "boolean", "null" ]
          },
          "heartDisease" : {
            "type" : [ "boolean", "null" ]
          },
          "highBloodPressure" : {
            "type" : [ "boolean", "null" ]
          },
          "kidneyUrinaryTractDiseases" : {
            "type" : [ "boolean", "null" ]
          },
          "diabetes" : {
            "type" : [ "boolean", "null" ]
          },
          "allergiesAsthma" : {
            "type" : [ "boolean", "null" ]
          },
          "epilepsy" : {
            "type" : [ "boolean", "null" ]
          },
          "thrombosis" : {
            "type" : [ "boolean", "null" ]
          },
          "autoimmuneDisease" : {
            "type" : [ "boolean", "null" ]
          },
          "gynecologicalConditions" : {
            "type" : [ "boolean", "null" ]
          },
          "mentalHealth" : {
            "type" : [ "boolean", "null" ]
          },
          "other" : {
            "type" : [ "boolean", "null" ]
          },
          "note" : {
            "type" : [ "string", "null" ]
          }
        }
      },
      "PatchMedicalConditionsDTO" : {
        "type" : "object",
        "properties" : {
          "metadata" : {
            "$ref" : "#/components/schemas/VersionMetadata"
          },
          "nothingParticular" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "heartDisease" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "highBloodPressure" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "kidneyUrinaryTractDiseases" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "diabetes" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "allergiesAsthma" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "epilepsy" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "thrombosis" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "autoimmuneDisease" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "gynecologicalConditions" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "mentalHealth" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "other" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "note" : {
            "$ref" : "#/components/schemas/Patchable"
          }
        },
        "required" : [ "metadata", "nothingParticular", "heartDisease", "highBloodPressure", "kidneyUrinaryTractDiseases", "diabetes", "allergiesAsthma", "epilepsy", "thrombosis", "autoimmuneDisease", "gynecologicalConditions", "mentalHealth", "other", "note" ]
      },
      "ReadMedicalConditionsDTO" : {
        "type" : "object",
        "properties" : {
          "metadata" : {
            "$ref" : "#/components/schemas/MetaAndUpdaterData"
          },
          "nothingParticular" : {
            "type" : [ "boolean", "null" ]
          },
          "heartDisease" : {
            "type" : [ "boolean", "null" ]
          },
          "highBloodPressure" : {
            "type" : [ "boolean", "null" ]
          },
          "kidneyUrinaryTractDiseases" : {
            "type" : [ "boolean", "null" ]
          },
          "diabetes" : {
            "type" : [ "boolean", "null" ]
          },
          "allergiesAsthma" : {
            "type" : [ "boolean", "null" ]
          },
          "epilepsy" : {
            "type" : [ "boolean", "null" ]
          },
          "thrombosis" : {
            "type" : [ "boolean", "null" ]
          },
          "autoimmuneDisease" : {
            "type" : [ "boolean", "null" ]
          },
          "gynecologicalConditions" : {
            "type" : [ "boolean", "null" ]
          },
          "mentalHealth" : {
            "type" : [ "boolean", "null" ]
          },
          "other" : {
            "type" : [ "boolean", "null" ]
          },
          "note" : {
            "type" : [ "string", "null" ]
          }
        },
        "required" : [ "metadata" ]
      },
      "UpdateMedicalConditionsDTO" : {
        "type" : "object",
        "properties" : {
          "metadata" : {
            "$ref" : "#/components/schemas/VersionMetadata"
          },
          "nothingParticular" : {
            "type" : [ "boolean", "null" ]
          },
          "heartDisease" : {
            "type" : [ "boolean", "null" ]
          },
          "highBloodPressure" : {
            "type" : [ "boolean", "null" ]
          },
          "kidneyUrinaryTractDiseases" : {
            "type" : [ "boolean", "null" ]
          },
          "diabetes" : {
            "type" : [ "boolean", "null" ]
          },
          "allergiesAsthma" : {
            "type" : [ "boolean", "null" ]
          },
          "epilepsy" : {
            "type" : [ "boolean", "null" ]
          },
          "thrombosis" : {
            "type" : [ "boolean", "null" ]
          },
          "autoimmuneDisease" : {
            "type" : [ "boolean", "null" ]
          },
          "gynecologicalConditions" : {
            "type" : [ "boolean", "null" ]
          },
          "mentalHealth" : {
            "type" : [ "boolean", "null" ]
          },
          "other" : {
            "type" : [ "boolean", "null" ]
          },
          "note" : {
            "type" : [ "string", "null" ]
          }
        },
        "required" : [ "metadata" ]
      },
      "CreateMedicationDTO" : {
        "type" : "object",
        "properties" : {
          "medicationFrequency" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/MedicationFrequency"
            }, {
              "type" : "null"
            } ]
          },
          "drugAllergy" : {
            "type" : [ "boolean", "null" ]
          },
          "folate" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/Folate"
            }, {
              "type" : "null"
            } ]
          },
          "note" : {
            "type" : [ "string", "null" ]
          }
        }
      },
      "Folate" : {
        "type" : "object",
        "properties" : {
          "takenBefore" : {
            "type" : [ "boolean", "null" ]
          },
          "takenDuring" : {
            "type" : [ "boolean", "null" ]
          }
        }
      },
      "MedicationFrequency" : {
        "type" : "string",
        "enum" : [ "DAILY", "OCCASIONALLY", "NOT_APPLICABLE" ]
      },
      "PatchMedicationDTO" : {
        "type" : "object",
        "properties" : {
          "metadata" : {
            "$ref" : "#/components/schemas/VersionMetadata"
          },
          "medicationFrequency" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "drugAllergy" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "folate" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "note" : {
            "$ref" : "#/components/schemas/Patchable"
          }
        },
        "required" : [ "metadata", "medicationFrequency", "drugAllergy", "folate", "note" ]
      },
      "ReadMedicationDTO" : {
        "type" : "object",
        "properties" : {
          "metadata" : {
            "$ref" : "#/components/schemas/MetaAndUpdaterData"
          },
          "medicationFrequency" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/MedicationFrequency"
            }, {
              "type" : "null"
            } ]
          },
          "drugAllergy" : {
            "type" : [ "boolean", "null" ]
          },
          "folate" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/Folate"
            }, {
              "type" : "null"
            } ]
          },
          "note" : {
            "type" : [ "string", "null" ]
          }
        },
        "required" : [ "metadata" ]
      },
      "UpdateMedicationDTO" : {
        "type" : "object",
        "properties" : {
          "metadata" : {
            "$ref" : "#/components/schemas/VersionMetadata"
          },
          "medicationFrequency" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/MedicationFrequency"
            }, {
              "type" : "null"
            } ]
          },
          "drugAllergy" : {
            "type" : [ "boolean", "null" ]
          },
          "folate" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/Folate"
            }, {
              "type" : "null"
            } ]
          },
          "note" : {
            "type" : [ "string", "null" ]
          }
        },
        "required" : [ "metadata" ]
      },
      "CreateMotherDTO" : {
        "type" : "object",
        "properties" : {
          "name" : {
            "type" : [ "string", "null" ]
          },
          "address" : {
            "type" : [ "string", "null" ]
          },
          "postNumber" : {
            "type" : [ "string", "null" ]
          },
          "postName" : {
            "type" : [ "string", "null" ]
          },
          "employedLast6Months" : {
            "type" : [ "boolean", "null" ]
          },
          "employmentPercentage" : {
            "format" : "int32",
            "type" : [ "integer", "null" ]
          },
          "occupationAndIndustry" : {
            "type" : [ "string", "null" ]
          },
          "language" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/CodeAndSystem"
            }, {
              "type" : "null"
            } ]
          },
          "countryOfBirth" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/CodeAndSystem"
            }, {
              "type" : "null"
            } ]
          },
          "needsLanguageInterpreter" : {
            "type" : [ "boolean", "null" ]
          },
          "cohabitingCoparent" : {
            "type" : [ "boolean", "null" ]
          },
          "cohabitingCoparentNote" : {
            "type" : [ "string", "null" ]
          }
        }
      },
      "PatchMotherDTO" : {
        "type" : "object",
        "properties" : {
          "metadata" : {
            "$ref" : "#/components/schemas/VersionMetadata"
          },
          "name" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "address" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "postNumber" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "postName" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "employedLast6Months" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "employmentPercentage" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "occupationAndIndustry" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "language" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "countryOfBirth" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "needsLanguageInterpreter" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "cohabitingCoparent" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "cohabitingCoparentNote" : {
            "$ref" : "#/components/schemas/Patchable"
          }
        },
        "required" : [ "metadata", "name", "address", "postNumber", "postName", "employedLast6Months", "employmentPercentage", "occupationAndIndustry", "language", "countryOfBirth", "needsLanguageInterpreter", "cohabitingCoparent", "cohabitingCoparentNote" ]
      },
      "ReadMotherDTO" : {
        "type" : "object",
        "properties" : {
          "metadata" : {
            "$ref" : "#/components/schemas/MetaAndUpdaterData"
          },
          "name" : {
            "type" : [ "string", "null" ]
          },
          "address" : {
            "type" : [ "string", "null" ]
          },
          "postNumber" : {
            "type" : [ "string", "null" ]
          },
          "postName" : {
            "type" : [ "string", "null" ]
          },
          "employedLast6Months" : {
            "type" : [ "boolean", "null" ]
          },
          "employmentPercentage" : {
            "format" : "int32",
            "type" : [ "integer", "null" ]
          },
          "occupationAndIndustry" : {
            "type" : [ "string", "null" ]
          },
          "language" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/CodeAndSystem"
            }, {
              "type" : "null"
            } ]
          },
          "countryOfBirth" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/CodeAndSystem"
            }, {
              "type" : "null"
            } ]
          },
          "needsLanguageInterpreter" : {
            "type" : [ "boolean", "null" ]
          },
          "cohabitingCoparent" : {
            "type" : [ "boolean", "null" ]
          },
          "cohabitingCoparentNote" : {
            "type" : [ "string", "null" ]
          }
        },
        "required" : [ "metadata" ]
      },
      "UpdateMotherDTO" : {
        "type" : "object",
        "properties" : {
          "metadata" : {
            "$ref" : "#/components/schemas/VersionMetadata"
          },
          "name" : {
            "type" : [ "string", "null" ]
          },
          "address" : {
            "type" : [ "string", "null" ]
          },
          "postNumber" : {
            "type" : [ "string", "null" ]
          },
          "postName" : {
            "type" : [ "string", "null" ]
          },
          "employedLast6Months" : {
            "type" : [ "boolean", "null" ]
          },
          "employmentPercentage" : {
            "format" : "int32",
            "type" : [ "integer", "null" ]
          },
          "occupationAndIndustry" : {
            "type" : [ "string", "null" ]
          },
          "language" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/CodeAndSystem"
            }, {
              "type" : "null"
            } ]
          },
          "countryOfBirth" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/CodeAndSystem"
            }, {
              "type" : "null"
            } ]
          },
          "needsLanguageInterpreter" : {
            "type" : [ "boolean", "null" ]
          },
          "cohabitingCoparent" : {
            "type" : [ "boolean", "null" ]
          },
          "cohabitingCoparentNote" : {
            "type" : [ "string", "null" ]
          }
        },
        "required" : [ "metadata" ]
      },
      "CreatePreviousPregnanciesDTO" : {
        "type" : "object",
        "properties" : {
          "numberOfPreviousPregnancies" : {
            "format" : "int32",
            "type" : [ "integer", "null" ]
          },
          "numberOfPreviousLiveBirths" : {
            "format" : "int32",
            "type" : [ "integer", "null" ]
          },
          "spontaneousMiscarriages" : {
            "format" : "int32",
            "type" : [ "integer", "null" ]
          },
          "stillBirths22weeks" : {
            "format" : "int32",
            "type" : [ "integer", "null" ]
          },
          "numberOfEctopicPregnancies" : {
            "format" : "int32",
            "type" : [ "integer", "null" ]
          },
          "note" : {
            "type" : [ "string", "null" ]
          }
        }
      },
      "PatchPreviousPregnanciesDTO" : {
        "type" : "object",
        "properties" : {
          "metadata" : {
            "$ref" : "#/components/schemas/VersionMetadata"
          },
          "numberOfPreviousPregnancies" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "numberOfPreviousLiveBirths" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "spontaneousMiscarriages" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "stillBirths22weeks" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "numberOfEctopicPregnancies" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "note" : {
            "$ref" : "#/components/schemas/Patchable"
          }
        },
        "required" : [ "metadata", "numberOfPreviousPregnancies", "numberOfPreviousLiveBirths", "spontaneousMiscarriages", "stillBirths22weeks", "numberOfEctopicPregnancies", "note" ]
      },
      "ReadPreviousPregnanciesDTO" : {
        "type" : "object",
        "properties" : {
          "metadata" : {
            "$ref" : "#/components/schemas/MetaAndUpdaterData"
          },
          "numberOfPreviousPregnancies" : {
            "format" : "int32",
            "type" : [ "integer", "null" ]
          },
          "numberOfPreviousLiveBirths" : {
            "format" : "int32",
            "type" : [ "integer", "null" ]
          },
          "spontaneousMiscarriages" : {
            "format" : "int32",
            "type" : [ "integer", "null" ]
          },
          "stillBirths22weeks" : {
            "format" : "int32",
            "type" : [ "integer", "null" ]
          },
          "numberOfEctopicPregnancies" : {
            "format" : "int32",
            "type" : [ "integer", "null" ]
          },
          "note" : {
            "type" : [ "string", "null" ]
          }
        },
        "required" : [ "metadata" ]
      },
      "UpdatePreviousPregnanciesDTO" : {
        "type" : "object",
        "properties" : {
          "metadata" : {
            "$ref" : "#/components/schemas/VersionMetadata"
          },
          "numberOfPreviousPregnancies" : {
            "format" : "int32",
            "type" : [ "integer", "null" ]
          },
          "numberOfPreviousLiveBirths" : {
            "format" : "int32",
            "type" : [ "integer", "null" ]
          },
          "spontaneousMiscarriages" : {
            "format" : "int32",
            "type" : [ "integer", "null" ]
          },
          "stillBirths22weeks" : {
            "format" : "int32",
            "type" : [ "integer", "null" ]
          },
          "numberOfEctopicPregnancies" : {
            "format" : "int32",
            "type" : [ "integer", "null" ]
          },
          "note" : {
            "type" : [ "string", "null" ]
          }
        },
        "required" : [ "metadata" ]
      },
      "CreateRhesusDNegativeDTO" : {
        "type" : "object",
        "properties" : {
          "consentFetalRhesusTyping" : {
            "type" : [ "boolean", "null" ]
          },
          "fetusRhDPositiveAtWeek24" : {
            "type" : [ "boolean", "null" ]
          },
          "prophylaxisAtWeek28" : {
            "type" : [ "boolean", "null" ]
          },
          "dateForResult" : {
            "format" : "date",
            "example" : "2025-01-05",
            "type" : [ "string", "null" ]
          }
        }
      },
      "PatchRhesusDNegativeDTO" : {
        "type" : "object",
        "properties" : {
          "metadata" : {
            "$ref" : "#/components/schemas/VersionMetadata"
          },
          "consentFetalRhesusTyping" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "fetusRhDPositiveAtWeek24" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "prophylaxisAtWeek28" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "dateForResult" : {
            "$ref" : "#/components/schemas/Patchable"
          }
        },
        "required" : [ "metadata", "consentFetalRhesusTyping", "fetusRhDPositiveAtWeek24", "prophylaxisAtWeek28", "dateForResult" ]
      },
      "ReadRhesusDNegativeDTO" : {
        "type" : "object",
        "properties" : {
          "metadata" : {
            "$ref" : "#/components/schemas/MetaAndUpdaterData"
          },
          "consentFetalRhesusTyping" : {
            "type" : [ "boolean", "null" ]
          },
          "fetusRhDPositiveAtWeek24" : {
            "type" : [ "boolean", "null" ]
          },
          "prophylaxisAtWeek28" : {
            "type" : [ "boolean", "null" ]
          },
          "dateForResult" : {
            "format" : "date",
            "example" : "2025-01-05",
            "type" : [ "string", "null" ]
          }
        },
        "required" : [ "metadata" ]
      },
      "UpdateRhesusDNegativeDTO" : {
        "type" : "object",
        "properties" : {
          "metadata" : {
            "$ref" : "#/components/schemas/VersionMetadata"
          },
          "consentFetalRhesusTyping" : {
            "type" : [ "boolean", "null" ]
          },
          "fetusRhDPositiveAtWeek24" : {
            "type" : [ "boolean", "null" ]
          },
          "prophylaxisAtWeek28" : {
            "type" : [ "boolean", "null" ]
          },
          "dateForResult" : {
            "format" : "date",
            "example" : "2025-01-05",
            "type" : [ "string", "null" ]
          }
        },
        "required" : [ "metadata" ]
      },
      "CreateSymphysisFundalHeightDTO" : {
        "type" : "object",
        "properties" : {
          "pregnancyWeek" : {
            "type" : "integer",
            "format" : "int32"
          },
          "measurement" : {
            "type" : "integer",
            "format" : "int32"
          },
          "measurementDate" : {
            "format" : "date",
            "example" : "2024-10-29",
            "type" : [ "string", "null" ]
          }
        },
        "required" : [ "pregnancyWeek", "measurement" ]
      },
      "ReadSymphysisFundalHeightDTO" : {
        "type" : "object",
        "properties" : {
          "metadata" : {
            "$ref" : "#/components/schemas/MetaAndUpdaterEnteredInErrorData"
          },
          "pregnancyWeek" : {
            "type" : "integer",
            "format" : "int32"
          },
          "measurement" : {
            "type" : "integer",
            "format" : "int32"
          },
          "measurementDate" : {
            "format" : "date",
            "example" : "2024-10-29",
            "type" : [ "string", "null" ]
          }
        },
        "required" : [ "metadata", "pregnancyWeek", "measurement" ]
      },
      "UpdateSymphysisFundalHeightDTO" : {
        "type" : "object",
        "properties" : {
          "metadata" : {
            "$ref" : "#/components/schemas/VersionMetadata"
          },
          "pregnancyWeek" : {
            "type" : "integer",
            "format" : "int32"
          },
          "measurement" : {
            "type" : "integer",
            "format" : "int32"
          },
          "measurementDate" : {
            "format" : "date",
            "example" : "2024-10-29",
            "type" : [ "string", "null" ]
          }
        },
        "required" : [ "metadata", "pregnancyWeek", "measurement" ]
      },
      "CreateVitalMeasurementsBeforePregnancyDTO" : {
        "type" : "object",
        "properties" : {
          "height" : {
            "format" : "double",
            "type" : [ "number", "null" ]
          },
          "prePregnancyWeight" : {
            "format" : "double",
            "type" : [ "number", "null" ]
          },
          "bMI" : {
            "format" : "double",
            "type" : [ "number", "null" ]
          }
        }
      },
      "PatchVitalMeasurementsBeforePregnancyDTO" : {
        "type" : "object",
        "properties" : {
          "metadata" : {
            "$ref" : "#/components/schemas/VersionMetadata"
          },
          "height" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "prePregnancyWeight" : {
            "$ref" : "#/components/schemas/Patchable"
          },
          "bMI" : {
            "$ref" : "#/components/schemas/Patchable"
          }
        },
        "required" : [ "metadata", "height", "prePregnancyWeight", "bMI" ]
      },
      "ReadVitalMeasurementsBeforePregnancyDTO" : {
        "type" : "object",
        "properties" : {
          "metadata" : {
            "$ref" : "#/components/schemas/MetaAndUpdaterData"
          },
          "height" : {
            "format" : "double",
            "type" : [ "number", "null" ]
          },
          "prePregnancyWeight" : {
            "format" : "double",
            "type" : [ "number", "null" ]
          },
          "bMI" : {
            "format" : "double",
            "type" : [ "number", "null" ]
          }
        },
        "required" : [ "metadata" ]
      },
      "UpdateVitalMeasurementsBeforePregnancyDTO" : {
        "type" : "object",
        "properties" : {
          "metadata" : {
            "$ref" : "#/components/schemas/VersionMetadata"
          },
          "height" : {
            "format" : "double",
            "type" : [ "number", "null" ]
          },
          "prePregnancyWeight" : {
            "format" : "double",
            "type" : [ "number", "null" ]
          },
          "bMI" : {
            "format" : "double",
            "type" : [ "number", "null" ]
          }
        },
        "required" : [ "metadata" ]
      },
      "Patchable" : {
        "type" : "object",
        "properties" : {
          "orElse" : {
            "type" : "object"
          },
          "orNull" : {
            "type" : [ "object", "null" ]
          }
        }
      }
    }
  },
  "paths" : {
    "/history" : {
      "get" : {
        "tags" : [ "History" ],
        "summary" : "Read maternity records' metadata",
        "description" : "Reads metadata of all maternity records for a patient",
        "operationId" : "ReadMaternityRecordsHistory",
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/HistoricalMaternityRecordsDTO"
                }
              }
            }
          },
          "400" : {
            "description" : "Bad Request",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security" : [ {
          "BearerAuth" : [ ]
        } ]
      }
    },
    "/history/{recordId}" : {
      "get" : {
        "tags" : [ "History" ],
        "summary" : "Read maternity record's history",
        "description" : "Reads the maternity record with a given record ID for a patient with all changes",
        "operationId" : "ReadMaternityRecordHistory",
        "parameters" : [ {
          "name" : "recordId",
          "in" : "path",
          "description" : "The id for the maternity record",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/HistoricalMaternityRecordDTO"
                }
              }
            }
          },
          "400" : {
            "description" : "Bad Request",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security" : [ {
          "BearerAuth" : [ ]
        } ]
      }
    },
    "/record" : {
      "post" : {
        "summary" : "Create maternity record",
        "description" : "Creates a maternity record for a patient",
        "operationId" : "CreateMaternityRecord",
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/CreateMaternityRecordDTO"
              }
            }
          }
        },
        "responses" : {
          "201" : {
            "description" : "Created",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ReadMaternityRecordDTO"
                }
              }
            }
          },
          "400" : {
            "description" : "Bad Request",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security" : [ {
          "BearerAuth" : [ ]
        } ]
      }
    },
    "/record/{recordId}" : {
      "get" : {
        "summary" : "Read maternity record",
        "description" : "Reads the maternity record with a given record ID for a patient",
        "operationId" : "ReadMaternityRecord",
        "parameters" : [ {
          "name" : "recordId",
          "in" : "path",
          "description" : "The id for the maternity record",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ReadMaternityRecordDTO"
                }
              }
            }
          },
          "400" : {
            "description" : "Bad Request",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security" : [ {
          "BearerAuth" : [ ]
        } ]
      },
      "patch" : {
        "summary" : "Patch maternity record",
        "description" : "Patches a maternity record",
        "operationId" : "PatchMaternityRecord",
        "parameters" : [ {
          "name" : "recordId",
          "in" : "path",
          "description" : "The id for the maternity record",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/PatchMaternityRecordDTO"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ReadMaternityRecordDTO"
                }
              }
            }
          },
          "400" : {
            "description" : "Bad Request",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security" : [ {
          "BearerAuth" : [ ]
        } ]
      }
    },
    "/record/{recordId}/antenatalAppointments" : {
      "post" : {
        "tags" : [ "Antenatal Appointments" ],
        "summary" : "Create Antenatal Appointment",
        "description" : "Creates a new 'Antenatal Appointment' resource",
        "operationId" : "createAntenatalAppointment",
        "parameters" : [ {
          "name" : "recordId",
          "in" : "path",
          "description" : "The id for the maternity record",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/CreateAntenatalAppointmentDTO"
              }
            }
          }
        },
        "responses" : {
          "201" : {
            "description" : "Created",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ReadAntenatalAppointmentDTO"
                }
              }
            }
          },
          "400" : {
            "description" : "Bad Request",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security" : [ {
          "BearerAuth" : [ ]
        } ]
      }
    },
    "/record/{recordId}/antenatalAppointments/{resourceId}" : {
      "put" : {
        "tags" : [ "Antenatal Appointments" ],
        "summary" : "Update Antenatal Appointment",
        "description" : "Updates a 'Antenatal Appointment' resource",
        "operationId" : "updateAntenatalAppointment",
        "parameters" : [ {
          "name" : "recordId",
          "in" : "path",
          "description" : "The id for the maternity record",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "resourceId",
          "in" : "path",
          "description" : "The id for the antenatal appointment",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/UpdateAntenatalAppointmentDTO"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ReadAntenatalAppointmentDTO"
                }
              }
            }
          },
          "400" : {
            "description" : "Bad Request",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security" : [ {
          "BearerAuth" : [ ]
        } ]
      },
      "delete" : {
        "tags" : [ "Antenatal Appointments" ],
        "summary" : "Delete a Antenatal Appointment",
        "description" : "Deletes a 'Antenatal Appointment' resource",
        "operationId" : "deleteAntenatalAppointment",
        "parameters" : [ {
          "name" : "recordId",
          "in" : "path",
          "description" : "The id for the maternity record",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "resourceId",
          "in" : "path",
          "description" : "The id for the antenatal appointment",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ReadAntenatalAppointmentDTO"
                }
              }
            }
          },
          "400" : {
            "description" : "Bad Request",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security" : [ {
          "BearerAuth" : [ ]
        } ]
      }
    },
    "/record/{recordId}/birthStatus" : {
      "post" : {
        "tags" : [ "Birth status" ],
        "summary" : "Create birth status",
        "operationId" : "createBirthStatus",
        "parameters" : [ {
          "name" : "recordId",
          "in" : "path",
          "description" : "The id for the maternity record",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/CreateBirthStatusDTO"
              }
            }
          }
        },
        "responses" : {
          "201" : {
            "description" : "Created",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ReadBirthStatusDTO"
                }
              }
            }
          },
          "400" : {
            "description" : "Bad Request",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security" : [ {
          "BearerAuth" : [ ]
        } ]
      },
      "put" : {
        "tags" : [ "Birth status" ],
        "summary" : "Update birth status",
        "operationId" : "updateBirthStatus",
        "parameters" : [ {
          "name" : "recordId",
          "in" : "path",
          "description" : "The id for the maternity record",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/UpdateBirthStatusDTO"
              }
            }
          }
        },
        "responses" : {
          "201" : {
            "description" : "Created",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ReadBirthStatusDTO"
                }
              }
            }
          },
          "400" : {
            "description" : "Bad Request",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security" : [ {
          "BearerAuth" : [ ]
        } ]
      }
    },
    "/record/{recordId}/clinicalTests" : {
      "post" : {
        "tags" : [ "Clinical Tests" ],
        "summary" : "Create Clinical Tests",
        "operationId" : "createClinicalTests",
        "parameters" : [ {
          "name" : "recordId",
          "in" : "path",
          "description" : "The id for the maternity record",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/CreateClinicalTestsDTO"
              }
            }
          }
        },
        "responses" : {
          "201" : {
            "description" : "Created",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ReadClinicalTestsDTO"
                }
              }
            }
          },
          "400" : {
            "description" : "Bad Request",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security" : [ {
          "BearerAuth" : [ ]
        } ]
      },
      "put" : {
        "tags" : [ "Clinical Tests" ],
        "summary" : "Update Clinical Tests",
        "operationId" : "updateClinicalTests",
        "parameters" : [ {
          "name" : "recordId",
          "in" : "path",
          "description" : "The id for the maternity record",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/UpdateClinicalTestsDTO"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ReadClinicalTestsDTO"
                }
              }
            }
          },
          "400" : {
            "description" : "Bad Request",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security" : [ {
          "BearerAuth" : [ ]
        } ]
      },
      "patch" : {
        "tags" : [ "Clinical Tests" ],
        "summary" : "Patch Clinical Tests",
        "operationId" : "patchClinicalTests",
        "parameters" : [ {
          "name" : "recordId",
          "in" : "path",
          "description" : "The id for the maternity record",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/PatchClinicalTestsDTO"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ReadClinicalTestsDTO"
                }
              }
            }
          },
          "400" : {
            "description" : "Bad Request",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security" : [ {
          "BearerAuth" : [ ]
        } ]
      }
    },
    "/record/{recordId}/currentPregnancy" : {
      "post" : {
        "tags" : [ "Current Pregnancy" ],
        "summary" : "Create Current Pregnancy",
        "operationId" : "createCurrentPregnancy",
        "parameters" : [ {
          "name" : "recordId",
          "in" : "path",
          "description" : "The id for the maternity record",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/CreateCurrentPregnancyDTO"
              }
            }
          }
        },
        "responses" : {
          "201" : {
            "description" : "Created",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ReadCurrentPregnancyDTO"
                }
              }
            }
          },
          "400" : {
            "description" : "Bad Request",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security" : [ {
          "BearerAuth" : [ ]
        } ]
      },
      "put" : {
        "tags" : [ "Current Pregnancy" ],
        "summary" : "Update Current Pregnancy",
        "operationId" : "updateCurrentPregnancy",
        "parameters" : [ {
          "name" : "recordId",
          "in" : "path",
          "description" : "The id for the maternity record",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/UpdateCurrentPregnancyDTO"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ReadCurrentPregnancyDTO"
                }
              }
            }
          },
          "400" : {
            "description" : "Bad Request",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security" : [ {
          "BearerAuth" : [ ]
        } ]
      },
      "patch" : {
        "tags" : [ "Current Pregnancy" ],
        "summary" : "Patch Current Pregnancy",
        "operationId" : "patchCurrentPregnancy",
        "parameters" : [ {
          "name" : "recordId",
          "in" : "path",
          "description" : "The id for the maternity record",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/PatchCurrentPregnancyDTO"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ReadCurrentPregnancyDTO"
                }
              }
            }
          },
          "400" : {
            "description" : "Bad Request",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security" : [ {
          "BearerAuth" : [ ]
        } ]
      }
    },
    "/record/{recordId}/geneticDisorders" : {
      "post" : {
        "tags" : [ "Genetic Disorders" ],
        "summary" : "Create Genetic Disorders",
        "operationId" : "createGeneticDisorders",
        "parameters" : [ {
          "name" : "recordId",
          "in" : "path",
          "description" : "The id for the maternity record",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/CreateGeneticDisordersDTO"
              }
            }
          }
        },
        "responses" : {
          "201" : {
            "description" : "Created",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ReadGeneticDisordersDTO"
                }
              }
            }
          },
          "400" : {
            "description" : "Bad Request",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security" : [ {
          "BearerAuth" : [ ]
        } ]
      },
      "put" : {
        "tags" : [ "Genetic Disorders" ],
        "summary" : "Update Genetic Disorders",
        "operationId" : "updateGeneticDisorders",
        "parameters" : [ {
          "name" : "recordId",
          "in" : "path",
          "description" : "The id for the maternity record",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/UpdateGeneticDisordersDTO"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ReadGeneticDisordersDTO"
                }
              }
            }
          },
          "400" : {
            "description" : "Bad Request",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security" : [ {
          "BearerAuth" : [ ]
        } ]
      },
      "patch" : {
        "tags" : [ "Genetic Disorders" ],
        "summary" : "Patch Genetic Disorders",
        "operationId" : "PatchGeneticDisorders",
        "parameters" : [ {
          "name" : "recordId",
          "in" : "path",
          "description" : "The id for the maternity record",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/PatchGeneticDisordersDTO"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ReadGeneticDisordersDTO"
                }
              }
            }
          },
          "400" : {
            "description" : "Bad Request",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security" : [ {
          "BearerAuth" : [ ]
        } ]
      }
    },
    "/record/{recordId}/lifestyleFactors" : {
      "post" : {
        "tags" : [ "Lifestyle Factors" ],
        "summary" : "Create Lifestyle Factors",
        "operationId" : "createLifestyleFactors",
        "parameters" : [ {
          "name" : "recordId",
          "in" : "path",
          "description" : "The id for the maternity record",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/CreateLifestyleFactorsDTO"
              }
            }
          }
        },
        "responses" : {
          "201" : {
            "description" : "Created",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ReadLifestyleFactorsDTO"
                }
              }
            }
          },
          "400" : {
            "description" : "Bad Request",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security" : [ {
          "BearerAuth" : [ ]
        } ]
      },
      "put" : {
        "tags" : [ "Lifestyle Factors" ],
        "summary" : "Update Lifestyle Factors",
        "operationId" : "updateLifestyleFactors",
        "parameters" : [ {
          "name" : "recordId",
          "in" : "path",
          "description" : "The id for the maternity record",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/UpdateLifestyleFactorsDTO"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ReadLifestyleFactorsDTO"
                }
              }
            }
          },
          "400" : {
            "description" : "Bad Request",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security" : [ {
          "BearerAuth" : [ ]
        } ]
      },
      "patch" : {
        "tags" : [ "Lifestyle Factors" ],
        "summary" : "Patch Lifestyle Factors",
        "operationId" : "patchLifestyleFactors",
        "parameters" : [ {
          "name" : "recordId",
          "in" : "path",
          "description" : "The id for the maternity record",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/PatchLifestyleFactorsDTO"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ReadLifestyleFactorsDTO"
                }
              }
            }
          },
          "400" : {
            "description" : "Bad Request",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security" : [ {
          "BearerAuth" : [ ]
        } ]
      }
    },
    "/record/{recordId}/medicalConditions" : {
      "post" : {
        "tags" : [ "Medical Conditions" ],
        "summary" : "Create Medical Conditions",
        "operationId" : "createMedicalConditions",
        "parameters" : [ {
          "name" : "recordId",
          "in" : "path",
          "description" : "The id for the maternity record",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/CreateMedicalConditionsDTO"
              }
            }
          }
        },
        "responses" : {
          "201" : {
            "description" : "Created",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ReadMedicalConditionsDTO"
                }
              }
            }
          },
          "400" : {
            "description" : "Bad Request",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security" : [ {
          "BearerAuth" : [ ]
        } ]
      },
      "put" : {
        "tags" : [ "Medical Conditions" ],
        "summary" : "Update Medical Conditions",
        "operationId" : "updateMedicalConditions",
        "parameters" : [ {
          "name" : "recordId",
          "in" : "path",
          "description" : "The id for the maternity record",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/UpdateMedicalConditionsDTO"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ReadMedicalConditionsDTO"
                }
              }
            }
          },
          "400" : {
            "description" : "Bad Request",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security" : [ {
          "BearerAuth" : [ ]
        } ]
      },
      "patch" : {
        "tags" : [ "Medical Conditions" ],
        "summary" : "Patch Medical Conditions",
        "operationId" : "patchMedicalConditions",
        "parameters" : [ {
          "name" : "recordId",
          "in" : "path",
          "description" : "The id for the maternity record",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/PatchMedicalConditionsDTO"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ReadMedicalConditionsDTO"
                }
              }
            }
          },
          "400" : {
            "description" : "Bad Request",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security" : [ {
          "BearerAuth" : [ ]
        } ]
      }
    },
    "/record/{recordId}/medication" : {
      "post" : {
        "tags" : [ "Medication" ],
        "summary" : "Create Medication",
        "operationId" : "createMedication",
        "parameters" : [ {
          "name" : "recordId",
          "in" : "path",
          "description" : "The id for the maternity record",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/CreateMedicationDTO"
              }
            }
          }
        },
        "responses" : {
          "201" : {
            "description" : "Created",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ReadMedicationDTO"
                }
              }
            }
          },
          "400" : {
            "description" : "Bad Request",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security" : [ {
          "BearerAuth" : [ ]
        } ]
      },
      "put" : {
        "tags" : [ "Medication" ],
        "summary" : "Update Medication",
        "operationId" : "updateMedication",
        "parameters" : [ {
          "name" : "recordId",
          "in" : "path",
          "description" : "The id for the maternity record",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/UpdateMedicationDTO"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ReadMedicationDTO"
                }
              }
            }
          },
          "400" : {
            "description" : "Bad Request",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security" : [ {
          "BearerAuth" : [ ]
        } ]
      },
      "patch" : {
        "tags" : [ "Medication" ],
        "summary" : "Patch Medication",
        "operationId" : "patchMedication",
        "parameters" : [ {
          "name" : "recordId",
          "in" : "path",
          "description" : "The id for the maternity record",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/PatchMedicationDTO"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ReadMedicationDTO"
                }
              }
            }
          },
          "400" : {
            "description" : "Bad Request",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security" : [ {
          "BearerAuth" : [ ]
        } ]
      }
    },
    "/record/{recordId}/mother" : {
      "post" : {
        "tags" : [ "Mother" ],
        "summary" : "Create Mother",
        "operationId" : "createMother",
        "parameters" : [ {
          "name" : "recordId",
          "in" : "path",
          "description" : "The id for the maternity record",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/CreateMotherDTO"
              }
            }
          }
        },
        "responses" : {
          "201" : {
            "description" : "Created",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ReadMotherDTO"
                }
              }
            }
          },
          "400" : {
            "description" : "Bad Request",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security" : [ {
          "BearerAuth" : [ ]
        } ]
      },
      "put" : {
        "tags" : [ "Mother" ],
        "summary" : "Update Mother",
        "operationId" : "updateMother",
        "parameters" : [ {
          "name" : "recordId",
          "in" : "path",
          "description" : "The id for the maternity record",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/UpdateMotherDTO"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ReadMotherDTO"
                }
              }
            }
          },
          "400" : {
            "description" : "Bad Request",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security" : [ {
          "BearerAuth" : [ ]
        } ]
      },
      "patch" : {
        "tags" : [ "Mother" ],
        "summary" : "Patch Mother",
        "operationId" : "PatchMother",
        "parameters" : [ {
          "name" : "recordId",
          "in" : "path",
          "description" : "The id for the maternity record",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/PatchMotherDTO"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ReadMotherDTO"
                }
              }
            }
          },
          "400" : {
            "description" : "Bad Request",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security" : [ {
          "BearerAuth" : [ ]
        } ]
      }
    },
    "/record/{recordId}/pointsOfContact" : {
      "post" : {
        "tags" : [ "Points Of Contact" ],
        "summary" : "Create Points Of Contact",
        "operationId" : "createPointsOfContact",
        "parameters" : [ {
          "name" : "recordId",
          "in" : "path",
          "description" : "The id for the maternity record",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/CreatePointsOfContactDTO"
              }
            }
          }
        },
        "responses" : {
          "201" : {
            "description" : "Created",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ReadPointsOfContactDTO"
                }
              }
            }
          },
          "400" : {
            "description" : "Bad Request",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security" : [ {
          "BearerAuth" : [ ]
        } ]
      },
      "put" : {
        "tags" : [ "Points Of Contact" ],
        "summary" : "Update Points Of Contact",
        "operationId" : "updatePointsOfContact",
        "parameters" : [ {
          "name" : "recordId",
          "in" : "path",
          "description" : "The id for the maternity record",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/UpdatePointsOfContactDTO"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ReadPointsOfContactDTO"
                }
              }
            }
          },
          "400" : {
            "description" : "Bad Request",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security" : [ {
          "BearerAuth" : [ ]
        } ]
      },
      "patch" : {
        "tags" : [ "Points Of Contact" ],
        "summary" : "Patch Points Of Contact",
        "operationId" : "patchPointsOfContact",
        "parameters" : [ {
          "name" : "recordId",
          "in" : "path",
          "description" : "The id for the maternity record",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/PatchPointsOfContactDTO"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ReadPointsOfContactDTO"
                }
              }
            }
          },
          "400" : {
            "description" : "Bad Request",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security" : [ {
          "BearerAuth" : [ ]
        } ]
      }
    },
    "/record/{recordId}/previousPregnancies" : {
      "post" : {
        "tags" : [ "Previous Pregnancies" ],
        "summary" : "Create Previous Pregnancies",
        "operationId" : "createPreviousPregnancies",
        "parameters" : [ {
          "name" : "recordId",
          "in" : "path",
          "description" : "The id for the maternity record",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/CreatePreviousPregnanciesDTO"
              }
            }
          }
        },
        "responses" : {
          "201" : {
            "description" : "Created",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ReadPreviousPregnanciesDTO"
                }
              }
            }
          },
          "400" : {
            "description" : "Bad Request",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security" : [ {
          "BearerAuth" : [ ]
        } ]
      },
      "put" : {
        "tags" : [ "Previous Pregnancies" ],
        "summary" : "Update Previous Pregnancies",
        "operationId" : "updatePreviousPregnancies",
        "parameters" : [ {
          "name" : "recordId",
          "in" : "path",
          "description" : "The id for the maternity record",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/UpdatePreviousPregnanciesDTO"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ReadPreviousPregnanciesDTO"
                }
              }
            }
          },
          "400" : {
            "description" : "Bad Request",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security" : [ {
          "BearerAuth" : [ ]
        } ]
      },
      "patch" : {
        "tags" : [ "Previous Pregnancies" ],
        "summary" : "Patch Previous Pregnancies",
        "operationId" : "patchPreviousPregnancies",
        "parameters" : [ {
          "name" : "recordId",
          "in" : "path",
          "description" : "The id for the maternity record",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/PatchPreviousPregnanciesDTO"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ReadPreviousPregnanciesDTO"
                }
              }
            }
          },
          "400" : {
            "description" : "Bad Request",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security" : [ {
          "BearerAuth" : [ ]
        } ]
      }
    },
    "/record/{recordId}/rhesusDNegative" : {
      "post" : {
        "tags" : [ "Rhesus D-negative" ],
        "summary" : "Create Rhesus D-negative",
        "operationId" : "createRhesusDNegative",
        "parameters" : [ {
          "name" : "recordId",
          "in" : "path",
          "description" : "The id for the maternity record",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/CreateRhesusDNegativeDTO"
              }
            }
          }
        },
        "responses" : {
          "201" : {
            "description" : "Created",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ReadRhesusDNegativeDTO"
                }
              }
            }
          },
          "400" : {
            "description" : "Bad Request",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security" : [ {
          "BearerAuth" : [ ]
        } ]
      },
      "put" : {
        "tags" : [ "Rhesus D-negative" ],
        "summary" : "Update Rhesus D-negative",
        "operationId" : "updateRhesusDNegative",
        "parameters" : [ {
          "name" : "recordId",
          "in" : "path",
          "description" : "The id for the maternity record",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/UpdateRhesusDNegativeDTO"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ReadRhesusDNegativeDTO"
                }
              }
            }
          },
          "400" : {
            "description" : "Bad Request",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security" : [ {
          "BearerAuth" : [ ]
        } ]
      },
      "patch" : {
        "tags" : [ "Rhesus D-negative" ],
        "summary" : "Patch Rhesus D-negative",
        "operationId" : "patchRhesusDNegative",
        "parameters" : [ {
          "name" : "recordId",
          "in" : "path",
          "description" : "The id for the maternity record",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/PatchRhesusDNegativeDTO"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ReadRhesusDNegativeDTO"
                }
              }
            }
          },
          "400" : {
            "description" : "Bad Request",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security" : [ {
          "BearerAuth" : [ ]
        } ]
      }
    },
    "/record/{recordId}/symphysisFundalHeights" : {
      "post" : {
        "tags" : [ "Symphysis Fundal Heights" ],
        "summary" : "Create a Symphysis Fundal Height",
        "description" : "Creates a new 'Symphysis Fundal Height' resource",
        "operationId" : "createSymphysisFundalHeight",
        "parameters" : [ {
          "name" : "recordId",
          "in" : "path",
          "description" : "The id for the maternity record",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/CreateSymphysisFundalHeightDTO"
              }
            }
          }
        },
        "responses" : {
          "201" : {
            "description" : "Created",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ReadSymphysisFundalHeightDTO"
                }
              }
            }
          },
          "400" : {
            "description" : "Bad Request",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security" : [ {
          "BearerAuth" : [ ]
        } ]
      }
    },
    "/record/{recordId}/symphysisFundalHeights/{resourceId}" : {
      "put" : {
        "tags" : [ "Symphysis Fundal Heights" ],
        "summary" : "Update a Symphysis Fundal Height",
        "description" : "Updates a 'Symphysis Fundal Height' resource",
        "operationId" : "updateSymphysisFundalHeight",
        "parameters" : [ {
          "name" : "recordId",
          "in" : "path",
          "description" : "The id for the maternity record",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "resourceId",
          "in" : "path",
          "description" : "The id for the antenatal appointment",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/UpdateSymphysisFundalHeightDTO"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ReadSymphysisFundalHeightDTO"
                }
              }
            }
          },
          "400" : {
            "description" : "Bad Request",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security" : [ {
          "BearerAuth" : [ ]
        } ]
      },
      "delete" : {
        "tags" : [ "Symphysis Fundal Heights" ],
        "summary" : "Delete a Symphysis Fundal Height",
        "description" : "Deletes a 'Symphysis Fundal Height' resource",
        "operationId" : "deleteSymphysisFundalHeight",
        "parameters" : [ {
          "name" : "recordId",
          "in" : "path",
          "description" : "The id for the maternity record",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "resourceId",
          "in" : "path",
          "description" : "The id for the antenatal appointment",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ReadSymphysisFundalHeightDTO"
                }
              }
            }
          },
          "400" : {
            "description" : "Bad Request",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/record/{recordId}/updateStatus" : {
      "post" : {
        "summary" : "Update maternity record status",
        "description" : "Updates the status of a maternity record",
        "operationId" : "UpdateMaternityRecordStatus",
        "parameters" : [ {
          "name" : "recordId",
          "in" : "path",
          "description" : "The id for the maternity record",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/UpdateRecordStatusDTO"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ReadMaternityRecordDTO"
                }
              }
            }
          },
          "400" : {
            "description" : "Bad Request",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security" : [ {
          "BearerAuth" : [ ]
        } ]
      }
    },
    "/record/{recordId}/vitalMeasurementsBeforePregnancy" : {
      "post" : {
        "tags" : [ "Vital Measurements Before Pregnancy" ],
        "summary" : "Create Vital Measurements Before Pregnancy",
        "operationId" : "createVitalMeasurementsBeforePregnancy",
        "parameters" : [ {
          "name" : "recordId",
          "in" : "path",
          "description" : "The id for the maternity record",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/CreateVitalMeasurementsBeforePregnancyDTO"
              }
            }
          }
        },
        "responses" : {
          "201" : {
            "description" : "Created",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ReadVitalMeasurementsBeforePregnancyDTO"
                }
              }
            }
          },
          "400" : {
            "description" : "Bad Request",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security" : [ {
          "BearerAuth" : [ ]
        } ]
      },
      "put" : {
        "tags" : [ "Vital Measurements Before Pregnancy" ],
        "summary" : "Update Vital Measurements Before Pregnancy",
        "operationId" : "updateVitalMeasurementsBeforePregnancy",
        "parameters" : [ {
          "name" : "recordId",
          "in" : "path",
          "description" : "The id for the maternity record",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/UpdateVitalMeasurementsBeforePregnancyDTO"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ReadVitalMeasurementsBeforePregnancyDTO"
                }
              }
            }
          },
          "400" : {
            "description" : "Bad Request",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security" : [ {
          "BearerAuth" : [ ]
        } ]
      },
      "patch" : {
        "tags" : [ "Vital Measurements Before Pregnancy" ],
        "summary" : "Patch Vital Measurements Before Pregnancy",
        "operationId" : "patchVitalMeasurementsBeforePregnancy",
        "parameters" : [ {
          "name" : "recordId",
          "in" : "path",
          "description" : "The id for the maternity record",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/PatchVitalMeasurementsBeforePregnancyDTO"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ReadVitalMeasurementsBeforePregnancyDTO"
                }
              }
            }
          },
          "400" : {
            "description" : "Bad Request",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security" : [ {
          "BearerAuth" : [ ]
        } ]
      }
    },
    "/status" : {
      "get" : {
        "tags" : [ "Status" ],
        "summary" : "Get status",
        "description" : "Get status of patient",
        "operationId" : "getStatus",
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/StatusResponse"
                }
              }
            }
          },
          "400" : {
            "description" : "Bad Request",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security" : [ {
          "BearerAuth" : [ ]
        } ]
      }
    }
  }
}