Stream: implementers
Topic: What is this error in CapabilityStatement?
lychenus (Dec 04 2020 at 07:17):
- Rule: The set of documents must be unique by the combination of profile and mode.
But I had profile and mode already the test server does not let me pass?
https://www.hl7.org/fhir/capabilitystatement.html
http://test.fhir.org/r4
lychenus (Dec 04 2020 at 07:20):
sample work
{
"resourceType": "CapabilityStatement",
"id": "XXXXXXX-FHIR",
"name": "XXXXXXX server",
"status": "draft",
"date": "2020-12-03T15:39:01+00:00",
"publisher": "XXXXXXXXXX",
"kind": "instance",
"experimental": true,
"software": {
"name": "HAPI FHIR Server",
"version": "5.3.0-SNAPSHOT/35f4d48eee/2020-12-03"
},
"implementation": {
"description": "UHN Test Server (R4 Resources)",
"url": "http://hapi.fhir.org/baseR4"
},
"fhirVersion": "4.0.1",
"format": ["application/fhir+json"],
"rest": [{
"extension": [{
"url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-websocket",
"valueUri": "/websocketR4"
}],
"mode": "server",
"resource": [{
"extension": [{
"url": "http://hl7api.sourceforge.net/hapi-fhir/res/extdefs.html#resourceCount",
"valueDecimal": 536
}],
"type": "Observation",
"profile": "https://www.hl7.org/fhir/observation.html",
"interaction": [{
"code": "read"
}, {
"code": "vread"
}],
"versioning": "versioned-update",
"searchInclude": ["*"],
"searchParam": [{
"name": "_id",
"type": "string",
"documentation": "The exact id of the observation"
},
{
"name": "starting date",
"type": "date",
"documentation": "The starting date of the observation"
},
{
"name": "device id",
"type": "string",
"documentation": "Return array of observation that fits searched id"
}
]
}]
}]
}
lychenus (Dec 04 2020 at 07:49):
it seems like it is missing in the last part with a element of
"document": {
"mode": "producer",
"documentation": "forwards data from XXXXX database into FHIR format",
"profile": "http://hapi.fhir.org/baseR4"
}
but i dunno what to write! there was no examples anywhere and it looks like at the 'demo' server they do not even have this part in their capability statement.
lychenus (Dec 04 2020 at 08:34):
just put it here i tried to put the example JSON in to the test server and then similar errors come up.
https://build.fhir.org/ehrsrle/conformance-ehrs-rle.json.html
http://test.fhir.org/r4
looks like it is the same for https://hapi.fhir.org/baseR4/metadata
it seems like integrity wasn't the most important as long as the meaning is delivered. i guess thats the way to go for the moment.
Lloyd McKenzie (Dec 04 2020 at 14:21):
@Grahame Grieve
Yunwei Wang (Dec 04 2020 at 14:21):
Are you trying to POST/PUT CapabilityStatement to http://test.fhir.org/r4?
lychenus (Dec 07 2020 at 02:57):
eh no i just post it in the HTML form on validation to see if they are valid.
Grahame Grieve (Dec 07 2020 at 03:12):
so the validation on test.fhir.org is running a little behind at the moment. I'm working on it, but not there yet.
Grahame Grieve (Dec 07 2020 at 03:12):
use the validation method here: https://confluence.hl7.org/display/FHIR/Using+the+FHIR+Validator
Yunwei Wang (Dec 07 2020 at 14:35):
You can try https://inferno.healthit.gov/validator/ which is web service wrapping around HL7 FHIR validator
Last updated: Apr 12 2022 at 19:14 UTC