diff --git a/mapping-tools/README.md b/mapping-tools/README.md index 2dec5fc..bfa53c2 100644 --- a/mapping-tools/README.md +++ b/mapping-tools/README.md @@ -19,9 +19,9 @@ ```json { "packages": [ - "@ezs/core@2.1.2", - "@ezs/analytics@2.0.4", - "@ezs/basics@1.22.4" + "@ezs/core@2.5.1", + "@ezs/analytics@2.0.22", + "@ezs/basics@1.24.0" ] } ``` @@ -318,8 +318,7 @@ `value`est une adresse d'affiliation. Il renvoie un JSON avec l'hôpital correspondant dans le champ `value`. - **Remarque**: quand on ne trouve pas d'institut, la valeur est `n/a` (*not -> available*) +> **Remarque**: quand on ne trouve pas d'hôpital, la valeur est `n/a` (*not available*) #### Paramètres de v1/hospital/affiliations @@ -342,3 +341,13 @@ ``` Sortie + +```json +[ + {"id": "1","value": "APHP"}, + {"id": "2","value": "n/a"}, + {"id": "3","value": "Institut Bergonie Bordeaux"}, + {"id": "4","value": "CHU Besancon"}, + {"id": "5","value": "CHU St Etienne"} +] +``` diff --git a/mapping-tools/v1/hospital/affiliations.ini b/mapping-tools/v1/hospital/affiliations.ini index dde94e6..5d539b0 100755 --- a/mapping-tools/v1/hospital/affiliations.ini +++ b/mapping-tools/v1/hospital/affiliations.ini @@ -11,6 +11,26 @@ post.parameters.0.name = indent post.parameters.0.schema.type = boolean post.parameters.0.description = Indent or not the JSON Result +post.requestBody.content.application/json.example.0.id = 1 +post.requestBody.content.application/json.example.0.value = Hop La Pitie Salpetriere, AP HP, Serv Med Interne, Ctr Natl Reference Histiocytoses, Paris, France +post.requestBody.content.application/json.example.1.id = 2 +post.requestBody.content.application/json.example.1.value = UMR CNRS 7021, Illkirch Graffenstaden, France +post.requestBody.content.application/json.example.2.id = 3 +post.requestBody.content.application/json.example.2.value = Bergonie Inst, Dept Radiat Oncol, Bordeaux, France +post.requestBody.content.application/json.example.3.id = 4 +post.requestBody.content.application/json.example.3.value = CHU Besancon, Serv Neurol, 2 Blvd Fleming, F-25030 Besancon, France +post.requestBody.content.application/json.example.4.id = 5 +post.requestBody.content.application/json.example.4.value = CHU St Etienne, Ave Albert Raimond, F-42055 St Etienne, France +post.responses.default.content.application/json.example.0.id = 1 +post.responses.default.content.application/json.example.0.value = APHP +post.responses.default.content.application/json.example.1.id = 2 +post.responses.default.content.application/json.example.1.value = n/a +post.responses.default.content.application/json.example.2.id = 3 +post.responses.default.content.application/json.example.2.value = Institut Bergonie Bordeaux +post.responses.default.content.application/json.example.3.id = 4 +post.responses.default.content.application/json.example.3.value = CHU Besancon +post.responses.default.content.application/json.example.4.id = 5 +post.responses.default.content.application/json.example.4.value = CHU St Etienne [use] plugin = @ezs/spawn