Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified csv_parser/models/model.xlsx
100644 → 100755
Binary file not shown.
Binary file modified csv_parser/out/EMSI/EMSI.schema.docx
Binary file not shown.
Binary file modified csv_parser/out/EMSI/EMSI.uml_diagram.pdf
Binary file not shown.
Binary file modified csv_parser/out/GEO-POS/GEO-POS.schema.docx
Binary file not shown.
Binary file modified csv_parser/out/GEO-POS/GEO-POS.uml_diagram.pdf
Binary file not shown.
Binary file modified csv_parser/out/GEO-REQ/GEO-REQ.schema.docx
Binary file not shown.
Binary file modified csv_parser/out/GEO-REQ/GEO-REQ.uml_diagram.pdf
Binary file not shown.
Binary file modified csv_parser/out/GEO-RES/GEO-RES.schema.docx
Binary file not shown.
Binary file modified csv_parser/out/GEO-RES/GEO-RES.uml_diagram.pdf
Binary file not shown.
Binary file modified csv_parser/out/RC-DE/RC-DE.schema.docx
Binary file not shown.
Binary file modified csv_parser/out/RC-DE/RC-DE.uml_diagram.pdf
Binary file not shown.
Binary file modified csv_parser/out/RC-EDA/RC-EDA.schema.docx
Binary file not shown.
Binary file modified csv_parser/out/RC-EDA/RC-EDA.uml_diagram.pdf
Binary file not shown.
Binary file modified csv_parser/out/RC-REF/RC-REF.schema.docx
Binary file not shown.
Binary file modified csv_parser/out/RC-REF/RC-REF.uml_diagram.pdf
Binary file not shown.
Binary file modified csv_parser/out/RC-RI/RC-RI.schema.docx
Binary file not shown.
Binary file modified csv_parser/out/RC-RI/RC-RI.uml_diagram.pdf
Binary file not shown.
Binary file modified csv_parser/out/RS-BPV/RS-BPV.schema.docx
Binary file not shown.
Binary file modified csv_parser/out/RS-BPV/RS-BPV.uml_diagram.pdf
Binary file not shown.
Binary file modified csv_parser/out/RS-DR/RS-DR.schema.docx
Binary file not shown.
Binary file modified csv_parser/out/RS-DR/RS-DR.uml_diagram.pdf
Binary file not shown.
Binary file modified csv_parser/out/RS-EDA-MAJ/RS-EDA-MAJ.schema.docx
Binary file not shown.
Binary file modified csv_parser/out/RS-EDA-MAJ/RS-EDA-MAJ.uml_diagram.pdf
Binary file not shown.
Binary file modified csv_parser/out/RS-EDA/RS-EDA.schema.docx
Binary file not shown.
Binary file modified csv_parser/out/RS-EDA/RS-EDA.uml_diagram.pdf
Binary file not shown.
Binary file modified csv_parser/out/RS-ER/RS-ER.schema.docx
Binary file not shown.
Binary file modified csv_parser/out/RS-ER/RS-ER.uml_diagram.pdf
Binary file not shown.
Binary file modified csv_parser/out/RS-ERROR/RS-ERROR.schema.docx
Binary file not shown.
Binary file modified csv_parser/out/RS-ERROR/RS-ERROR.uml_diagram.pdf
Binary file not shown.
Binary file modified csv_parser/out/RS-RI/RS-RI.schema.docx
Binary file not shown.
Binary file modified csv_parser/out/RS-RI/RS-RI.uml_diagram.pdf
Binary file not shown.
Binary file modified csv_parser/out/RS-RPIS/RS-RPIS.schema.docx
Binary file not shown.
Binary file modified csv_parser/out/RS-RPIS/RS-RPIS.uml_diagram.pdf
Binary file not shown.
Binary file modified csv_parser/out/RS-RR/RS-RR.schema.docx
Binary file not shown.
Binary file modified csv_parser/out/RS-RR/RS-RR.uml_diagram.pdf
Binary file not shown.
6 changes: 6 additions & 0 deletions csv_parser/out/RS-SAS-RDV/RS-SAS-RDV.example.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,11 @@
"organization": {
"organizationId": "334173748400020",
"name": "SOS Médecins de Rennes"
},
"regulator": {
"regulatorId": "3620100057/70326SR",
"regulatorName": "Ricart",
"regulatorFirstname": "Pauline",
"regulatorEmail": "[email protected]"
}
}
5 changes: 5 additions & 0 deletions csv_parser/out/RS-SAS-RDV/RS-SAS-RDV.input.csv
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,8 @@ Professionnel de santé,,,,,,Représente le professionnel de santé associé au
Structure,,,,,,Représente la structure du PS ou la structure associée au rendez-vous si le PS n'est pas connu,,organization,0..1,X,organization,
,Identifiant national de la structure,,,,,Indique l'identifiant national de la structure,334173748400020,organizationId,1..1,,string,
,Nom de la structure,,,,,Indique le nom de la structure,SOS Médecins de Rennes,name,1..1,,string,
Régulateur,,,,,,Représente le régulateur ayant pris le RDV,,regulator,1..1,X,regulator,
,Identifiant régulateur,,,,,Identifiant du régulateur ayant pris le RDV,3620100057/70326SR,regulatorId,0..1,,string,
,Nom du régulateur,,,,,Nom du régulateur ayant pris le RDV,Ricart,regulatorName,1..1,,string,
,Prénom du régulateur,,,,,Prénom du régulateur ayant pris le RDV,Pauline,regulatorFirstname,1..1,,string,
,Email du régulateur,,,,,Adresse mail du régulateur ayant pris le RDV,[email protected],regulatorEmail,1..1,,string,
Binary file modified csv_parser/out/RS-SAS-RDV/RS-SAS-RDV.schema.docx
Binary file not shown.
7 changes: 7 additions & 0 deletions csv_parser/out/RS-SAS-RDV/RS-SAS-RDV.uml_diagram
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ strict digraph {
<TR><TD BORDER="0"><I>objet organization</I></TD></TR><TR><TD BORDER="0" >organizationId <I>string</I> : [1..1] </TD></TR><TR><TD BORDER="0" >name <I>string</I> : [1..1] </TD></TR>
</TABLE>>]
organization -> appointment [headlabel=1 taillabel="0..1"]
regulator [label=<<TABLE>
<TR>
<TD ><B>regulator</B></TD>
</TR>
<TR><TD BORDER="0"><I>objet regulator</I></TD></TR><TR><TD BORDER="0" >regulatorId <I>string</I> : [0..1] </TD></TR><TR><TD BORDER="0" >regulatorName <I>string</I> : [1..1] </TD></TR><TR><TD BORDER="0" >regulatorFirstname <I>string</I> : [1..1] </TD></TR><TR><TD BORDER="0" >regulatorEmail <I>string</I> : [1..1] </TD></TR>
</TABLE>>]
regulator -> appointment [headlabel=1 taillabel=1]
appointment [label=<<TABLE>
<TR>
<TD ><B>appointment</B></TD>
Expand Down
Binary file modified csv_parser/out/RS-SAS-RDV/RS-SAS-RDV.uml_diagram.pdf
Binary file not shown.
Binary file modified csv_parser/out/RS-SR/RS-SR.schema.docx
Binary file not shown.
Binary file modified csv_parser/out/RS-SR/RS-SR.uml_diagram.pdf
Binary file not shown.
Binary file modified csv_parser/out/RS-URL/RS-URL.schema.docx
Binary file not shown.
Binary file modified csv_parser/out/RS-URL/RS-URL.uml_diagram.pdf
Binary file not shown.
Binary file modified csv_parser/out/TECHNICAL/TECHNICAL.schema.docx
Binary file not shown.
Binary file modified csv_parser/out/TECHNICAL/TECHNICAL.uml_diagram.pdf
Binary file not shown.
Binary file modified csv_parser/out/TECHNICAL_NOREQ/TECHNICAL_NOREQ.schema.docx
Binary file not shown.
Binary file modified csv_parser/out/TECHNICAL_NOREQ/TECHNICAL_NOREQ.uml_diagram.pdf
Binary file not shown.
Binary file modified csv_parser/out/customContent/customContent.schema.docx
Binary file not shown.
Binary file modified csv_parser/out/customContent/customContent.uml_diagram.pdf
Binary file not shown.
56 changes: 56 additions & 0 deletions csv_parser/out/hubsante.asyncapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7238,6 +7238,7 @@ components:
- created
- start
- status
- regulator
properties:
appointmentId:
type: string
Expand Down Expand Up @@ -7332,6 +7333,8 @@ components:
$ref: '#/components/schemas/practitioner'
organization:
$ref: '#/components/schemas/organization'
regulator:
$ref: '#/components/schemas/regulator'
additionalProperties: false
practitioner:
type: object
Expand Down Expand Up @@ -7449,6 +7452,59 @@ components:
examples:
- organizationId: '334173748400020'
name: "SOS M\xE9decins de Rennes"
regulator:
type: object
title: "R\xE9gulateur"
x-display: expansion-panels
x-health-only: false
required:
- regulatorName
- regulatorFirstname
- regulatorEmail
properties:
regulatorId:
type: string
title: "Identifiant r\xE9gulateur"
x-health-only: false
x-cols: 6
example: example.json#/regulator/regulatorId
description: "Identifiant du r\xE9gulateur ayant pris le RDV"
examples:
- 3620100057/70326SR
regulatorName:
type: string
title: "Nom du r\xE9gulateur"
x-health-only: false
x-cols: 6
example: example.json#/regulator/regulatorName
description: "Nom du r\xE9gulateur ayant pris le RDV"
examples:
- Ricart
regulatorFirstname:
type: string
title: "Pr\xE9nom du r\xE9gulateur"
x-health-only: false
x-cols: 6
example: example.json#/regulator/regulatorFirstname
description: "Pr\xE9nom du r\xE9gulateur ayant pris le RDV"
examples:
- Pauline
regulatorEmail:
type: string
title: "Email du r\xE9gulateur"
x-health-only: false
x-cols: 6
example: example.json#/regulator/regulatorEmail
description: "Adresse mail du r\xE9gulateur ayant pris le RDV"
examples:
- [email protected]
additionalProperties: false
example: example.json#/regulator
examples:
- regulatorId: 3620100057/70326SR
regulatorName: Ricart
regulatorFirstname: Pauline
regulatorEmail: [email protected]
error:
$id: classpath:/json-schema/schema#
x-id: RS-ERROR.schema.json#
Expand Down
56 changes: 56 additions & 0 deletions generator/input/RS-SAS-RDV.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ components:
- created
- start
- status
- regulator
properties:
appointmentId:
type: string
Expand Down Expand Up @@ -114,6 +115,8 @@ components:
$ref: '#/components/schemas/practitioner'
organization:
$ref: '#/components/schemas/organization'
regulator:
$ref: '#/components/schemas/regulator'
additionalProperties: false
practitioner:
type: object
Expand Down Expand Up @@ -231,3 +234,56 @@ components:
examples:
- organizationId: '334173748400020'
name: "SOS M\xE9decins de Rennes"
regulator:
type: object
title: "R\xE9gulateur"
x-display: expansion-panels
x-health-only: false
required:
- regulatorName
- regulatorFirstname
- regulatorEmail
properties:
regulatorId:
type: string
title: "Identifiant r\xE9gulateur"
x-health-only: false
x-cols: 6
example: example.json#/regulator/regulatorId
description: "Identifiant du r\xE9gulateur ayant pris le RDV"
examples:
- 3620100057/70326SR
regulatorName:
type: string
title: "Nom du r\xE9gulateur"
x-health-only: false
x-cols: 6
example: example.json#/regulator/regulatorName
description: "Nom du r\xE9gulateur ayant pris le RDV"
examples:
- Ricart
regulatorFirstname:
type: string
title: "Pr\xE9nom du r\xE9gulateur"
x-health-only: false
x-cols: 6
example: example.json#/regulator/regulatorFirstname
description: "Pr\xE9nom du r\xE9gulateur ayant pris le RDV"
examples:
- Pauline
regulatorEmail:
type: string
title: "Email du r\xE9gulateur"
x-health-only: false
x-cols: 6
example: example.json#/regulator/regulatorEmail
description: "Adresse mail du r\xE9gulateur ayant pris le RDV"
examples:
- [email protected]
additionalProperties: false
example: example.json#/regulator
examples:
- regulatorId: 3620100057/70326SR
regulatorName: Ricart
regulatorFirstname: Pauline
regulatorEmail: [email protected]
39 changes: 36 additions & 3 deletions src/main/java/com/hubsante/model/sas/Appointment.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
import com.fasterxml.jackson.dataformat.xml.annotation.*;
import com.hubsante.model.sas.Organization;
import com.hubsante.model.sas.Practitioner;
import com.hubsante.model.sas.Regulator;
import java.time.OffsetDateTime;
import java.util.Arrays;
import java.util.Arrays;
Expand All @@ -50,7 +51,8 @@
Appointment.JSON_PROPERTY_END, Appointment.JSON_PROPERTY_STATUS,
Appointment.JSON_PROPERTY_ORIENTATION_CATEGORY,
Appointment.JSON_PROPERTY_PRACTITIONER,
Appointment.JSON_PROPERTY_ORGANIZATION})
Appointment.JSON_PROPERTY_ORGANIZATION,
Appointment.JSON_PROPERTY_REGULATOR})
@JsonTypeName("appointment")
@JsonInclude(JsonInclude.Include.NON_EMPTY)

Expand Down Expand Up @@ -198,6 +200,9 @@ public static OrientationCategoryEnum fromValue(String value) {
public static final String JSON_PROPERTY_ORGANIZATION = "organization";
private Organization organization;

public static final String JSON_PROPERTY_REGULATOR = "regulator";
private Regulator regulator;

public Appointment() {}

public Appointment appointmentId(String appointmentId) {
Expand Down Expand Up @@ -412,6 +417,29 @@ public void setOrganization(Organization organization) {
this.organization = organization;
}

public Appointment regulator(Regulator regulator) {

this.regulator = regulator;
return this;
}

/**
* Get regulator
* @return regulator
**/
@JsonProperty(JSON_PROPERTY_REGULATOR)
@JsonInclude(value = JsonInclude.Include.ALWAYS)

public Regulator getRegulator() {
return regulator;
}

@JsonProperty(JSON_PROPERTY_REGULATOR)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setRegulator(Regulator regulator) {
this.regulator = regulator;
}

@Override
public boolean equals(Object o) {
if (this == o) {
Expand All @@ -430,13 +458,15 @@ public boolean equals(Object o) {
Objects.equals(this.orientationCategory,
appointment.orientationCategory) &&
Objects.equals(this.practitioner, appointment.practitioner) &&
Objects.equals(this.organization, appointment.organization);
Objects.equals(this.organization, appointment.organization) &&
Objects.equals(this.regulator, appointment.regulator);
}

@Override
public int hashCode() {
return Objects.hash(appointmentId, method, created, start, end, status,
orientationCategory, practitioner, organization);
orientationCategory, practitioner, organization,
regulator);
}

@Override
Expand All @@ -460,6 +490,9 @@ public String toString() {
sb.append(" organization: ")
.append(toIndentedString(organization))
.append("\n");
sb.append(" regulator: ")
.append(toIndentedString(regulator))
.append("\n");
sb.append("}");
return sb.toString();
}
Expand Down
Loading