Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
RechtsDokumentApp
Please create a React-JS application for the RechtsDokumentModule. The application has to offer the following views for the user interface: 1. AuditLogView 2. PatientEinwilligungView 3. RechtsDokumentView The views have to be reachable for the user via a menu list at the left side of each view. The requirements for the 3 views are defined below. 1. The AuditLogView must contain the following fields: - name: Aktion type: STRING - name: Details type: STRING - name: Entitaet type: STRING - name: EntitaetSchluessel type: STRING - name: Mitarbeiter type: Mitarbeiter - name: Patient type: Patient - name: Zeitpunkt type: DATE The data source for the [Patient] select control should be loaded from the relative URL: "/PatientService/patient" (HTTP-GET) The data source for the [Mitarbeiter] select control should be loaded from the relative URL: "/MitarbeiterService/mitarbeiter" (HTTP-GET) An existing AuditLog entity should be loaded from the relative URL: "/RechtsDokumentService/auditlog/{id}" (HTTP-GET) If a new AuditLog entity has been created, the new entity should be posted to the relative URL: "/RechtsDokumentService/auditlog" (HTTP-POST) If an existing AuditLog entity has been updated, the modified entity should be sent to the relative URL: "/RechtsDokumentService/auditlog/{id}" (HTTP-PUT) If an existing AuditLog entity has to be deleted, the following relative URL should be called: "/RechtsDokumentService/auditlog/{id}" (HTTP-DELETE) 2. The PatientEinwilligungView must contain the following fields: - name: ErteiltAm type: DATE - name: Kanal type: STRING - name: Notizen type: STRING - name: Patient type: Patient - name: RechtsDokument type: RechtsDokument - name: WiderrufenAm type: DATE The data source for the [RechtsDokument] select control should be loaded from the relative URL: "/RechtsDokumentService/rechtsdokument" (HTTP-GET) The data source for the [Patient] select control should be loaded from the relative URL: "/PatientService/patient" (HTTP-GET) An existing PatientEinwilligung entity should be loaded from the relative URL: "/RechtsDokumentService/patienteinwilligung/{id}" (HTTP-GET) If a new PatientEinwilligung entity has been created, the new entity should be posted to the relative URL: "/RechtsDokumentService/patienteinwilligung" (HTTP-POST) If an existing PatientEinwilligung entity has been updated, the modified entity should be sent to the relative URL: "/RechtsDokumentService/patienteinwilligung/{id}" (HTTP-PUT) If an existing PatientEinwilligung entity has to be deleted, the following relative URL should be called: "/RechtsDokumentService/patienteinwilligung/{id}" (HTTP-DELETE) 3. The RechtsDokumentView must contain the following fields: - name: GueltigAb type: DATE - name: Inhalt type: STRING - name: IstAktiv type: BOOL - name: Slug type: STRING - name: Titel type: STRING - name: Typ type: STRING - name: Version type: STRING An existing RechtsDokument entity should be loaded from the relative URL: "/RechtsDokumentService/rechtsdokument/{id}" (HTTP-GET) If a new RechtsDokument entity has been created, the new entity should be posted to the relative URL: "/RechtsDokumentService/rechtsdokument" (HTTP-POST) If an existing RechtsDokument entity has been updated, the modified entity should be sent to the relative URL: "/RechtsDokumentService/rechtsdokument/{id}" (HTTP-PUT) If an existing RechtsDokument entity has to be deleted, the following relative URL should be called: "/RechtsDokumentService/rechtsdokument/{id}" (HTTP-DELETE) Add a HTML table to the view with the following PatientEinwilligung columns: - column: Notizen - column: ErteiltAm - column: WiderrufenAm - column: Kanal - column: Patient - column: RechtsDokument The table should have the title "PatientEinwilligungs" und the data must be loaded from the server with the following relative URL: "/RechtsDokumentService/patienteinwilligung/rechtsdokument/{id}"
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum