Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
MedikationsplanApp
Please create a React-JS application for the MedikationsplanModule. The application has to offer the following views for the user interface: 1. MedikationsplanView 2. MedikationsplanEintragView 3. PflegeDokumentationView 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 MedikationsplanView must contain the following fields: - name: AktualisiertAm type: DATE - name: ErstelltAm type: DATE - name: ErstelltVonMitarbeiter type: Mitarbeiter - name: Klient type: Klient - name: VerordnenderArzt type: STRING The data source for the [Klient] select control should be loaded from the relative URL: "/KlientService/klient" (HTTP-GET) The data source for the [ErstelltVonMitarbeiter] select control should be loaded from the relative URL: "/MitarbeiterService/mitarbeiter" (HTTP-GET) An existing Medikationsplan entity should be loaded from the relative URL: "/MedikationsplanService/medikationsplan/{id}" (HTTP-GET) If a new Medikationsplan entity has been created, the new entity should be posted to the relative URL: "/MedikationsplanService/medikationsplan" (HTTP-POST) If an existing Medikationsplan entity has been updated, the modified entity should be sent to the relative URL: "/MedikationsplanService/medikationsplan/{id}" (HTTP-PUT) If an existing Medikationsplan entity has to be deleted, the following relative URL should be called: "/MedikationsplanService/medikationsplan/{id}" (HTTP-DELETE) Add a HTML table to the view with the following MedikationsplanEintrag columns: - column: Medikationsplan - column: Medikamentenname - column: Startdatum - column: Enddatum - column: Einnahmeplan - column: IstBeiBedarf - column: Dosierungsbeschreibung The table should have the title "MedikationsplanEintrags" und the data must be loaded from the server with the following relative URL: "/MedikationsplanService/medikationsplaneintrag/medikationsplan/{id}" 2. The MedikationsplanEintragView must contain the following fields: - name: Dosierungsbeschreibung type: STRING - name: Einnahmeplan type: STRING - name: Enddatum type: DATE - name: IstBeiBedarf type: BOOL - name: Medikamentenname type: STRING - name: Medikationsplan type: Medikationsplan - name: Startdatum type: DATE The data source for the [Medikationsplan] select control should be loaded from the relative URL: "/MedikationsplanService/medikationsplan" (HTTP-GET) An existing MedikationsplanEintrag entity should be loaded from the relative URL: "/MedikationsplanService/medikationsplaneintrag/{id}" (HTTP-GET) If a new MedikationsplanEintrag entity has been created, the new entity should be posted to the relative URL: "/MedikationsplanService/medikationsplaneintrag" (HTTP-POST) If an existing MedikationsplanEintrag entity has been updated, the modified entity should be sent to the relative URL: "/MedikationsplanService/medikationsplaneintrag/{id}" (HTTP-PUT) If an existing MedikationsplanEintrag entity has to be deleted, the following relative URL should be called: "/MedikationsplanService/medikationsplaneintrag/{id}" (HTTP-DELETE) 3. The PflegeDokumentationView must contain the following fields: - name: Dokumentationstyp type: STRING - name: Einsatz type: Einsatz - name: ErstelltVonMitarbeiter type: Mitarbeiter - name: Klient type: Klient - name: Textinhalt type: STRING - name: Zeitpunkt type: DATE The data source for the [Einsatz] select control should be loaded from the relative URL: "/MitarbeiterService/einsatz" (HTTP-GET) The data source for the [Klient] select control should be loaded from the relative URL: "/KlientService/klient" (HTTP-GET) The data source for the [ErstelltVonMitarbeiter] select control should be loaded from the relative URL: "/MitarbeiterService/mitarbeiter" (HTTP-GET) An existing PflegeDokumentation entity should be loaded from the relative URL: "/MedikationsplanService/pflegedokumentation/{id}" (HTTP-GET) If a new PflegeDokumentation entity has been created, the new entity should be posted to the relative URL: "/MedikationsplanService/pflegedokumentation" (HTTP-POST) If an existing PflegeDokumentation entity has been updated, the modified entity should be sent to the relative URL: "/MedikationsplanService/pflegedokumentation/{id}" (HTTP-PUT) If an existing PflegeDokumentation entity has to be deleted, the following relative URL should be called: "/MedikationsplanService/pflegedokumentation/{id}" (HTTP-DELETE)
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum