diff --git a/api/bro_upload/templates/registration_GMW.html b/api/bro_upload/templates/registration_GMW.html index dada770..504c9b7 100644 --- a/api/bro_upload/templates/registration_GMW.html +++ b/api/bro_upload/templates/registration_GMW.html @@ -5,6 +5,7 @@ {{ metadata.requestReference }} {{ metadata.deliveryAccountableParty }} {{ metadata.qualityRegime }} + {{ metadata.underPrivilege }} {{ sourcedocs_data.objectIdAccountableParty }} @@ -59,15 +60,15 @@ {{ monitoringtube.sedimentSumpLength }} -{% for geoogmcable in monitoringtube.geoogmcables %} +{% for geoohmcable in monitoringtube.geoohmcables %} - {{ geoogmcable.cableNumber }} -{% for electrode in geoogmcable.electrodes %} + {{ geoohmcable.cableNumber }} +{% for electrode in geoohmcable.electrodes %} - {{ geoogmcable.electrodeNumber }} - {{ geoogmcable.electrodePackingMaterial }} - {{ geoogmcable.electrodeStatus }} - {{ geoogmcable.electrodePosition }} + {{ electrode.electrodeNumber }} + {{ electrode.electrodePackingMaterial }} + {{ electrode.electrodeStatus }} + {{ electrode.electrodePosition }} {% endfor %} diff --git a/upload_examples.ipynb b/upload_examples.ipynb index de1b9e2..93abbbb 100644 --- a/upload_examples.ipynb +++ b/upload_examples.ipynb @@ -100,9 +100,172 @@ "metadata": {}, "source": [ "Input per berichttype\n", - "---------------------\n", + "---------------------\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "GMW \n", + "####" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "metadata = {\n", + " \"requestReference\":\"\",\n", + " \"deliveryAccountableParty\":\"\",\n", + " \"qualityRegime\":\"\",\n", + " \"underPrivilege\":\"\"\n", + "}\n", + "\n", + "sourcedocument_data = {\n", + " \"objectIdAccountableParty\": \"\",\n", + " \"deliveryContext\": \"\",\n", + " \"constructionStandard\": \"\",\n", + " \"initialFunction\": \"\",\n", + " \"numberOfMonitoringTubes\": \"\",\n", + " \"groundLevelStable\": \"\",\n", + " \"owner\": \"\",\n", + " \"maintenanceResponsibleParty\": \"\",\n", + " \"wellHeadProtector\": \"\",\n", + " \"wellConstructionDate\": \"\",\n", + " \"deliveredLocation\": \"\",\n", + " \"horizontalPositioningMethod\": \"\",\n", + " \"localVerticalReferencePoint\": \"\",\n", + " \"offset\": \"\",\n", + " \"verticalDatum\": \"\",\n", + " \"groundLevelPosition\": \"\",\n", + " \"groundLevelPositioningMethod\": \"\",\n", + " \"monitoringTubes\": [\n", + " {\n", + " \"tubeNumber\": \"\",\n", + " \"tubeType\": \"\",\n", + " \"artesianWellCapPresent\": \"\",\n", + " \"sedimentSumpPresent\": \"\",\n", + " \"numberOfGeoOhmCables\": \"\",\n", + " \"tubeTopDiameter\": \"\",\n", + " \"variableDiameter\": \"\",\n", + " \"tubeStatus\": \"\",\n", + " \"tubeTopPosition\": \"\",\n", + " \"tubeTopPositioningMethod\": \"\",\n", + " \"tubePackingMaterial\": \"\",\n", + " \"tubeMaterial\": \"\",\n", + " \"glue\": \"\",\n", + " \"screenLength\": \"\",\n", + " \"sockMaterial\": \"\",\n", + " \"plainTubePartLength\": \"\",\n", + " \"sedimentSumpLength\": \"\",\n", + " \"geoohmcables\": [\n", + " {\n", + " \"cableNumber\": \"\",\n", + " \"electrodes\": [\n", + " {\n", + " \"electrodeNumber\": \"\",\n", + " \"electrodePackingMaterial\": \"\",\n", + " \"electrodeStatus\": \"\",\n", + " \"electrodePosition\": \"\"\n", + " },\n", + " {\n", + " \"electrodeNumber\": \"\",\n", + " \"electrodePackingMaterial\": \"\",\n", + " \"electrodeStatus\": \"\",\n", + " \"electrodePosition\": \"\"\n", + " }\n", + " ]\n", + " }\n", + " ]\n", + " }\n", + " ]\n", + "}" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "GMN\n", + "####" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "#########################\n", + "## metadata ##\n", + "#########################\n", + "\n", + "# Registration requests:\n", + "metadata = {\n", + " \"requestReference\":\"\",\n", + " \"deliveryAccountableParty\":\"\",\n", + " \"qualityRegime\":\"\"\n", + "}\n", + "\n", + "# All other request types:\n", + "metadata = {\n", + " \"requestReference\":\"\",\n", + " \"deliveryAccountableParty\":\"\",\n", + " \"qualityRegime\":\"\",\n", + " \"correctionReason\":\"\"\n", + "}\n", + "\n", + "#########################\n", + "## sourcedocument_data ##\n", + "#########################\n", + "\n", + "# GMN_StartRegistration:\n", + "\n", + "sourcedocument_data = {\n", + " \"objectIdAccountableParty\":\"\",\n", + " \"name\":\"\",\n", + " \"deliveryContext\":\"\",\n", + " \"monitoringPurpose\":\"\",\n", + " \"groundwaterAspect\":\"\",\n", + " \"startDateMonitoring\":\"\",\n", + " \"measuringPoints\":[\n", + " {\n", + " \"measuringPointCode\":\"\",\n", + " \"broId\":\"\",\n", + " \"tubeNumber\":\"\"\n", + " }\n", + " ]\n", + "}\n", + "\n", + "# GMN_MeasuringPoint\n", + "sourcedocument_data = {\n", + " \"eventDate\":\"\",\n", + " \"measuringPointCode\":\"\",\n", + " \"broId\":\"\",\n", + " \"tubeNumber\":\"\"\n", + "}\n", "\n", - "**GMW**\n" + "# GMN_TubeReference\n", + "sourcedocument_data = {\n", + " \"eventDate\":\"\",\n", + " \"measuringPointCode\":\"\",\n", + " \"broId\":\"\",\n", + " \"tubeNumber\":\"\"\n", + "}\n", + "\n", + "# GMN_MeasuringPointEndDate\n", + "sourcedocument_data = {\n", + " \"eventDate\":\"\",\n", + " \"measuringPointCode\":\"\"\n", + "}\n", + "\n", + "# GMN_Closure\n", + "sourcedocument_data = {\n", + " \"endDateMonitoring\":\"\"\n", + "}" ] } ],