diff --git a/Release Candidate Messages/exampleUrlScheme.json b/Release Candidate Messages/exampleUrlScheme.json index 17e777a..806df24 100644 --- a/Release Candidate Messages/exampleUrlScheme.json +++ b/Release Candidate Messages/exampleUrlScheme.json @@ -43,10 +43,18 @@ "release-candidate-milk" ], "parameters": [ - { "$ref": "#/components/parameters/location-scheme" }, - { "$ref": "#/components/parameters/location-id" }, - { "$ref": "#/components/parameters/start-date-time" }, - { "$ref": "#/components/parameters/end-date-time" } + { + "$ref": "#/components/parameters/location-scheme" + }, + { + "$ref": "#/components/parameters/location-id" + }, + { + "$ref": "#/components/parameters/start-date-time" + }, + { + "$ref": "#/components/parameters/end-date-time" + } ], "responses": { "200": { @@ -82,10 +90,18 @@ "release-candidate-milk" ], "parameters": [ - { "$ref": "#/components/parameters/location-scheme" }, - { "$ref": "#/components/parameters/location-id" }, - { "$ref": "#/components/parameters/start-date-time" }, - { "$ref": "#/components/parameters/end-date-time" } + { + "$ref": "#/components/parameters/location-scheme" + }, + { + "$ref": "#/components/parameters/location-id" + }, + { + "$ref": "#/components/parameters/start-date-time" + }, + { + "$ref": "#/components/parameters/end-date-time" + } ], "responses": { "200": { @@ -121,10 +137,18 @@ "release-candidate-registration" ], "parameters": [ - { "$ref": "#/components/parameters/location-scheme" }, - { "$ref": "#/components/parameters/location-id" }, - { "$ref": "#/components/parameters/start-date-time" }, - { "$ref": "#/components/parameters/end-date-time" } + { + "$ref": "#/components/parameters/location-scheme" + }, + { + "$ref": "#/components/parameters/location-id" + }, + { + "$ref": "#/components/parameters/start-date-time" + }, + { + "$ref": "#/components/parameters/end-date-time" + } ], "responses": { "200": { @@ -155,10 +179,18 @@ "release-candidate-registration" ], "parameters": [ - { "$ref": "#/components/parameters/location-scheme" }, - { "$ref": "#/components/parameters/location-id" }, - { "$ref": "#/components/parameters/start-date-time" }, - { "$ref": "#/components/parameters/end-date-time" } + { + "$ref": "#/components/parameters/location-scheme" + }, + { + "$ref": "#/components/parameters/location-id" + }, + { + "$ref": "#/components/parameters/start-date-time" + }, + { + "$ref": "#/components/parameters/end-date-time" + } ], "responses": { "200": { @@ -189,10 +221,18 @@ "release-candidate-registration" ], "parameters": [ - { "$ref": "#/components/parameters/location-scheme" }, - { "$ref": "#/components/parameters/location-id" }, - { "$ref": "#/components/parameters/start-date-time" }, - { "$ref": "#/components/parameters/end-date-time" } + { + "$ref": "#/components/parameters/location-scheme" + }, + { + "$ref": "#/components/parameters/location-id" + }, + { + "$ref": "#/components/parameters/start-date-time" + }, + { + "$ref": "#/components/parameters/end-date-time" + } ], "responses": { "200": { @@ -228,10 +268,18 @@ "release-candidate-registration" ], "parameters": [ - { "$ref": "#/components/parameters/location-scheme" }, - { "$ref": "#/components/parameters/location-id" }, - { "$ref": "#/components/parameters/start-date-time" }, - { "$ref": "#/components/parameters/end-date-time" } + { + "$ref": "#/components/parameters/location-scheme" + }, + { + "$ref": "#/components/parameters/location-id" + }, + { + "$ref": "#/components/parameters/start-date-time" + }, + { + "$ref": "#/components/parameters/end-date-time" + } ], "responses": { "200": { @@ -262,8 +310,12 @@ "release-candidate-registration" ], "parameters": [ - { "$ref": "#/components/parameters/location-scheme" }, - { "$ref": "#/components/parameters/location-id" } + { + "$ref": "#/components/parameters/location-scheme" + }, + { + "$ref": "#/components/parameters/location-id" + } ], "responses": { "200": { @@ -285,7 +337,6 @@ } } }, - "/locations/{location-scheme}/{location-id}/pregnancy-checks": { "get": { "operationId": "get-pregnancy-checks", @@ -295,10 +346,18 @@ "release-candidate-reproduction" ], "parameters": [ - { "$ref": "#/components/parameters/location-scheme" }, - { "$ref": "#/components/parameters/location-id" }, - { "$ref": "#/components/parameters/start-date-time" }, - { "$ref": "#/components/parameters/end-date-time" } + { + "$ref": "#/components/parameters/location-scheme" + }, + { + "$ref": "#/components/parameters/location-id" + }, + { + "$ref": "#/components/parameters/start-date-time" + }, + { + "$ref": "#/components/parameters/end-date-time" + } ], "responses": { "200": { @@ -310,6 +369,11 @@ "items": { "$ref": "#/components/schemas/pregnancy-check" } + }, + "examples": { + "finland": { + "$ref": "#/components/examples/pregnancy-check-finland" + } } } } @@ -329,10 +393,18 @@ "release-candidate-reproduction" ], "parameters": [ - { "$ref": "#/components/parameters/location-scheme" }, - { "$ref": "#/components/parameters/location-id" }, - { "$ref": "#/components/parameters/start-date-time" }, - { "$ref": "#/components/parameters/end-date-time" } + { + "$ref": "#/components/parameters/location-scheme" + }, + { + "$ref": "#/components/parameters/location-id" + }, + { + "$ref": "#/components/parameters/start-date-time" + }, + { + "$ref": "#/components/parameters/end-date-time" + } ], "responses": { "200": { @@ -363,10 +435,18 @@ "release-candidate-reproduction" ], "parameters": [ - { "$ref": "#/components/parameters/location-scheme" }, - { "$ref": "#/components/parameters/location-id" }, - { "$ref": "#/components/parameters/start-date-time" }, - { "$ref": "#/components/parameters/end-date-time" } + { + "$ref": "#/components/parameters/location-scheme" + }, + { + "$ref": "#/components/parameters/location-id" + }, + { + "$ref": "#/components/parameters/start-date-time" + }, + { + "$ref": "#/components/parameters/end-date-time" + } ], "responses": { "200": { @@ -378,6 +458,11 @@ "items": { "$ref": "#/components/schemas/insemination" } + }, + "examples": { + "finland": { + "$ref": "#/components/examples/insemination-finland" + } } } } @@ -397,10 +482,18 @@ "release-candidate-reproduction" ], "parameters": [ - { "$ref": "#/components/parameters/location-scheme" }, - { "$ref": "#/components/parameters/location-id" }, - { "$ref": "#/components/parameters/start-date-time" }, - { "$ref": "#/components/parameters/end-date-time" } + { + "$ref": "#/components/parameters/location-scheme" + }, + { + "$ref": "#/components/parameters/location-id" + }, + { + "$ref": "#/components/parameters/start-date-time" + }, + { + "$ref": "#/components/parameters/end-date-time" + } ], "responses": { "200": { @@ -412,6 +505,14 @@ "items": { "$ref": "#/components/schemas/drying-off" } + }, + "examples": { + "finland": { + "$ref": "#/components/examples/drying-off-finland" + }, + "sweden": { + "$ref": "#/components/examples/drying-off-sweden" + } } } } @@ -431,10 +532,18 @@ "release-candidate-reproduction" ], "parameters": [ - { "$ref": "#/components/parameters/location-scheme" }, - { "$ref": "#/components/parameters/location-id" }, - { "$ref": "#/components/parameters/start-date-time" }, - { "$ref": "#/components/parameters/end-date-time" } + { + "$ref": "#/components/parameters/location-scheme" + }, + { + "$ref": "#/components/parameters/location-id" + }, + { + "$ref": "#/components/parameters/start-date-time" + }, + { + "$ref": "#/components/parameters/end-date-time" + } ], "responses": { "200": { @@ -465,10 +574,18 @@ "release-candidate-reproduction" ], "parameters": [ - { "$ref": "#/components/parameters/location-scheme" }, - { "$ref": "#/components/parameters/location-id" }, - { "$ref": "#/components/parameters/start-date-time" }, - { "$ref": "#/components/parameters/end-date-time" } + { + "$ref": "#/components/parameters/location-scheme" + }, + { + "$ref": "#/components/parameters/location-id" + }, + { + "$ref": "#/components/parameters/start-date-time" + }, + { + "$ref": "#/components/parameters/end-date-time" + } ], "responses": { "200": { @@ -499,10 +616,18 @@ "release-candidate-reproduction" ], "parameters": [ - { "$ref": "#/components/parameters/location-scheme" }, - { "$ref": "#/components/parameters/location-id" }, - { "$ref": "#/components/parameters/start-date-time" }, - { "$ref": "#/components/parameters/end-date-time" } + { + "$ref": "#/components/parameters/location-scheme" + }, + { + "$ref": "#/components/parameters/location-id" + }, + { + "$ref": "#/components/parameters/start-date-time" + }, + { + "$ref": "#/components/parameters/end-date-time" + } ], "responses": { "200": { @@ -805,7 +930,31 @@ ] } ] + }, + "insemination-finland": { + "value": { + "summary": "Example of insemination event messages from finnish milk recording organization", + "externalValue": "./examples/exampleInseminationEventResources_Finland.json" + } + }, + "pregnancy-check-finland": { + "value": { + "summary": "Example of pregnancy check event messages from finnish milk recording organization", + "externalValue": "./examples/examplePregnancyCheckEventResources_Finland.json" + } + }, + "drying-off-finland": { + "value": { + "summary": "Example of drying off event messages from finnish milk recording organization", + "externalValue": "./examples/exampleDryOffEventResources_Finland.json" + } + }, + "drying-off-sweden": { + "value": { + "summary": "Example of drying off event messages from swedish milk recording organization", + "externalValue": "./examples/exampleDryOffEventResources_Sweden.json" + } } } } -} +} \ No newline at end of file diff --git a/Release Candidate Messages/examples/exampleDryOffEventResources_Finland.json b/Release Candidate Messages/examples/exampleDryOffEventResources_Finland.json new file mode 100644 index 0000000..b18ee26 --- /dev/null +++ b/Release Candidate Messages/examples/exampleDryOffEventResources_Finland.json @@ -0,0 +1,42 @@ +[ + { + "id": "4bd700b2-4f8b-4ab8-8cbf-7bb62d4e2bc3", + "animal": { + "id": "FI000010065148-2", + "scheme": "fi.animal-id" + }, + "eventDateTime": "2017-03-19T00:00:00", + "location": { + "id": "990000001", + "scheme": "fi.herd-id" + }, + "meta": { + "source": "fi.mro", + "creator": "v990000001", + "modified": "2017-03-29T08:49:06.0421042+00:00", + "created": "2017-03-29T08:49:06.0421042+00:00", + "validFrom": null, + "validTo": null + } + }, + { + "id": "85ec425d-f079-437e-801b-88756c912102", + "animal": { + "id": "FI000010065150-1", + "scheme": "fi.animal-id" + }, + "eventDateTime": "2017-01-29T08:00:00", + "location": { + "id": "990000001", + "scheme": "fi.herd-id" + }, + "meta": { + "source": "fi.mro", + "creator": "v990000001", + "modified": "2017-01-29T08:49:06.1314223+00:00", + "created": "2017-01-29T08:49:06.1314223+00:00", + "validFrom": null, + "validTo": null + } + } +] \ No newline at end of file diff --git a/Release Candidate Messages/examples/exampleDryOffEventResources_Sweden.json b/Release Candidate Messages/examples/exampleDryOffEventResources_Sweden.json new file mode 100644 index 0000000..b034deb --- /dev/null +++ b/Release Candidate Messages/examples/exampleDryOffEventResources_Sweden.json @@ -0,0 +1,42 @@ +[ + { + "id": "1", + "animal": { + "id": "SE-801-2137-4", + "scheme": "se.animal-id" + }, + "eventDateTime": "2020-03-19T00:00:00", + "location": { + "id": "801", + "scheme": "se.herd-id" + }, + "meta": { + "source": "vxa.mro", + "creator": "bza632", + "modified": "2020-01-29T08:49:06.0421042+00:00", + "created": "2020-01-19T10:20:00.0421042+00:00", + "validFrom": null, + "validTo": null + } + }, + { + "id": "2", + "animal": { + "id": "SE-801-4259-5", + "scheme": "se.animal-id" + }, + "eventDateTime": "2020-01-03T00:00:00", + "location": { + "id": "801", + "scheme": "se.herd-id" + }, + "meta": { + "source": "vxa.mro", + "creator": "bza632", + "modified": "2020-01-18T08:49:06.1314223+00:00", + "created": "2020-01-03T10:29:00.0421042+00:00", + "validFrom": null, + "validTo": null + } + } +] \ No newline at end of file diff --git a/Release Candidate Messages/examples/exampleInseminationEventResources_Finland.json b/Release Candidate Messages/examples/exampleInseminationEventResources_Finland.json new file mode 100644 index 0000000..a7418bc --- /dev/null +++ b/Release Candidate Messages/examples/exampleInseminationEventResources_Finland.json @@ -0,0 +1,35 @@ +[ + { + "id": "4bd700b2-4f8b-4ab8-8cbf-7bb62d4e2bc3", + "animal": { + "id": "FI000010065148-2", + "scheme": "fi.animal-id" + }, + "eventDateTime": "2017-03-19T00:00:00", + "location": { + "id": "990000001", + "scheme": "fi.herd-id" + }, + "inseminationType": "Insemination", + "sireIdentifiers": [ + { + "id": "FI000013718337-8", + "scheme": "fi.animal-id" + } + ], + "sireOfficialName": "3-95890", + "sireURI": null, + "semenFromFarmStocks": true, + "farmContainer": 6202, + "straw": null, + "embryo": null, + "meta": { + "source": "fi.mro", + "creator": "v990000001", + "modified": "2017-03-29T08:49:06.0421042+00:00", + "created": "2017-03-29T08:49:06.0421042+00:00", + "validFrom": null, + "validTo": null + } + } +] \ No newline at end of file diff --git a/Release Candidate Messages/examples/examplePregnancyCheckEventResources_Finland.json b/Release Candidate Messages/examples/examplePregnancyCheckEventResources_Finland.json new file mode 100644 index 0000000..fe96f25 --- /dev/null +++ b/Release Candidate Messages/examples/examplePregnancyCheckEventResources_Finland.json @@ -0,0 +1,56 @@ +[ + { + "id": "4bd700b2-4f8b-4ab8-8cbf-7bb62d4e2bc3", + "animal": { + "id": "FI000010773604-2", + "scheme": "fi.animal-id" + }, + "eventDateTime": "2018-03-19T00:00:00", + "location": { + "id": "9900001", + "scheme": "fi.herd-id" + }, + "method": "Palpation", + "result": "Unknown", + "foetalAge": null, + "foetusCount": null, + "foetusCountMale": null, + "foetusCountFemale": null, + "exceptions": null, + "meta": { + "source": "fi.mro", + "creator": "v9900001", + "modified": "2018-03-29T08:49:06.0421042+00:00", + "created": "2018-03-19T08:49:06.0421042+00:00", + "validFrom": null, + "validTo": null + } + }, + { + "id": "85ec425d-f079-437e-801b-88756c912102", + "animal": { + "id": "FI000010065148-1", + "scheme": "fi.animal-id" + }, + "eventDateTime": "2018-04-03T00:00:00", + "location": { + "id": "9900001", + "scheme": "fi.herd-id" + }, + "method": "Palpation", + "result": "Pregnant", + "foetalAge": null, + "foetusCount": null, + "foetusCountMale": null, + "foetusCountFemale": null, + "exceptions": null, + "meta": { + "source": "fi.mro", + "creator": "v9900001", + "modified": "2018-04-29T08:49:06.0421042+00:00", + "created": "2018-04-19T08:49:06.0421042+00:00", + "validFrom": null, + "validTo": null + } + } +] \ No newline at end of file