angusmillar / pyro Goto Github PK
View Code? Open in Web Editor NEWFHIR Server
Home Page: https://pyrohealth.net/
License: Other
FHIR Server
Home Page: https://pyrohealth.net/
License: Other
Hi!
I'm posting this resource and getting error
ERROR DeSerialisation of a XML to FHIR Resource failed with the following message: Type checking the data: Since type CodeableConcept is not a primitive, it cannot have a value
But according to FHIR example everything looks fine
https://www.hl7.org/fhir/allergyintolerance-nka.xml.html
I am uploading a transaction bundle containing a Device resource with property elements on the R4 server available publicly. I am getting the error
DeSerialisation of a JSON to FHIR Resource failed with the following message: Encountered unknown member 'valueQuantity' while de-serializing (at path 'line 1, pos 2772'
There is no valueQuantity at that point but counting approaches may differ. The closest valueQuantity was in the Device.property element. The transaction bundle is as follows (no pretty print):
{"resourceType":"Bundle","id":"1555578973976","type":"transaction","entry":[{"fullUrl":"urn:oid:1.2.3.0","resource":{"resourceType":"Patient","meta":{"profile":["http://hl7.org/fhir/uv/phd/StructureDefinition/PhdPatient"]},"identifier":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/v2-0203","code":"MR"}],"text":"Medical record number"},"system":"urn:oid:1.2.3.4.5.6.7.8.10","value":"sisansarahId"}],"name":[{"family":"Piggy","given":["Sisansarah","Lorianthah"]}],"birthDate":"1992-11-10"},"request":{"method":"POST","url":"Patient","ifNoneExist":"identifier=urn:oid:1.2.3.4.5.6.7.8.10|sisansarahId"}},{"fullUrl":"urn:oid:1.2.3.1","resource":{"resourceType":"Device","meta":{"profile":["http://hl7.org/fhir/uv/phd/StructureDefinition/PhgDevice"]},"identifier":[{"type":{"coding":[{"system":"http://hl7.org/fhir/uv/phd/CodeSystem/ContinuaDeviceIdentifiers","code":"SYSID","display":"System Identifier"}]},"system":"urn:oid:1.2.840.10004.1.1.1.0.0.1.0.0.1.2680","value":"EC-DE-3D-4E-58-53-2D-31"}],"type":{"coding":[{"system":"urn:iso:std:iso:11073:10101","code":"531981","display":"MDC_MOC_VMS_MDS_AHD"}],"text":"MDC_MOC_VMS_MDS_AHD: Continua compliant Gateway"},"version":[{"type":{"coding":[{"system":"urn:iso:std:iso:11073:10101","code":"532352"}],"text":"MDC_REG_CERT_DATA_CONTINUA_VERSION: Continua version"},"value":"6.0"}],"property":[{"type":{"coding":[{"system":"urn:iso:std:iso:11073:10101","code":"532353"}],"text":"MDC_REG_CERT_DATA_CONTINUA_CERT_DEV_LIST: Continua certified device list"},"valueCode":[{"coding":[{"system":"http://hl7.org/fhir/uv/phd/CodeSystem/ContinuaPAN","code":"4"}]}]},{"type":{"coding":[{"system":"urn:iso:std:iso:11073:10101","code":"532355"}],"text":"MDC_REG_CERT_DATA_CONTINUA_AHD_CERT_LIST: Continua certified Health&Fitness interfaces list"},"valueCode":[{"coding":[{"system":"http://hl7.org/fhir/uv/phd/CodeSystem/ContinuaHFS","code":"0"}]},{"coding":[{"system":"http://hl7.org/fhir/uv/phd/CodeSystem/ContinuaHFS","code":"3"}]},{"coding":[{"system":"http://hl7.org/fhir/uv/phd/CodeSystem/ContinuaHFS","code":"7"}]},{"coding":[{"system":"http://hl7.org/fhir/uv/phd/CodeSystem/ContinuaHFS","code":"2"}]},{"coding":[{"system":"http://hl7.org/fhir/uv/phd/CodeSystem/ContinuaHFS","code":"6"}]}]},{"type":{"coding":[{"system":"http://hl7.org/fhir/uv/phd/CodeSystem/ASN1ToHL7","code":"532354.0","display":"regulation-status"}]},"valueCode":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/v2-0136","code":"Y"}],"text":"Device is Unregulated"}]},{"type":{"coding":[{"system":"urn:iso:std:iso:11073:10101","code":"68220"}],"text":"MDC_TIME_SYNC_PROTOCOL: null"},"valueCode":[{"coding":[{"system":"urn:iso:std:iso:11073:10101","code":"532226"}],"text":"MDC_TIME_SYNC_NTPV4: NTPV4 time synchronization"}]},{"type":{"coding":[{"system":"urn:iso:std:iso:11073:10101","code":"68221"}],"text":"MDC_TIME_SYNC_ACCURACY: null"},"valueQuantity":[{"value":120000000,"code":"us"}]}]},"request":{"method":"POST","url":"Device","ifNoneExist":"identifier=urn:oid:1.2.840.10004.1.1.1.0.0.1.0.0.1.2680|EC-DE-3D-4E-58-53-2D-31"}},{"fullUrl":"urn:oid:1.2.3.2","resource":{"resourceType":"Device","meta":{"profile":["http://hl7.org/fhir/uv/phd/StructureDefinition/PhdDevice"]},"identifier":[{"type":{"coding":[{"system":"http://hl7.org/fhir/uv/phd/CodeSystem/ContinuaDeviceIdentifiers","code":"SYSID","display":"System Identifier"}]},"system":"urn:oid:1.2.840.10004.1.1.1.0.0.1.0.0.1.2680","value":"00-00-00-00-00-00-00-00"}],"type":{"coding":[{"system":"urn:iso:std:iso:11073:10101","code":"65573","display":"MDC_MOC_VMS_MDS_SIMP"}]},"specialization":[{"systemType":{"coding":[{"system":"urn:iso:std:iso:11073:10101","code":"528392"}],"text":"MDC_DEV_SPEC_PROFILE_TEMP: Thermometer"},"version":"1"}],"property":[{"type":{"coding":[{"system":"urn:iso:std:iso:11073:10101","code":"68220"}],"text":"MDC_TIME_SYNC_PROTOCOL: null"},"valueCode":[{"coding":[{"system":"urn:iso:std:iso:11073:10101","code":"532224"}],"text":"MDC_TIME_SYNC_NONE: No time synchronization"}]}]},"request":{"method":"POST","url":"Device","ifNoneExist":"identifier=urn:oid:1.2.840.10004.1.1.1.0.0.1.0.0.1.2680|00-00-00-00-00-00-00-00"}},{"fullUrl":"urn:oid:1.0.0.1","resource":{"resourceType":"Observation","meta":{"profile":["http://hl7.org/fhir/uv/phd/StructureDefinition/PhdNumericObservation"]},"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/observation-gatewayDevice","valueReference":{"reference":"urn:oid:1.2.3.1"}}],"status":"final","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/observation-category","code":"vital-signs","display":"Vital Signs"}]}],"code":{"coding":[{"system":"urn:iso:std:iso:11073:10101","code":"150364"},{"system":"http://loinc.org","code":"8310-5"}],"text":"MDC_TEMP_BODY: Body temp"},"subject":{"reference":"urn:oid:1.2.3.0"},"effectiveDateTime":"2019-04-18T05:16:13.957-04:00","valueQuantity":{"value":99.9,"system":"http://unitsofmeasure.org","code":"Cel"},"device":{"reference":"urn:oid:1.2.3.2"}},"request":{"method":"POST","url":"Observation"}}]}
Hi Angus,
Firstly: thank you. What an awesome implementation. Really enjoying it so far.
Curious - do you allow conditional updates?
Specifically: https://www.hl7.org/fhir/http.html#upsert
Servers MAY choose to allow clients to PUT a resource to a location that does not yet exist on the server - effectively, allowing the client to define the id of the resource.
When I sent through an id, it returned a new ID for the Patient.
Reason being is we are syncing two FHIR servers and thought it may be possible to do this.
Thanks again!
Hi Angus,
Me again :-)
Been trying to fire-up the Identity side of things. Im on branch "develop-r4" although have made some adjustments.
I keep getting the following issue with the Authentication server. I am running one, but its a separate web app running on Identity Server 4.
You don't by any chance have a working copy of your auth server? (The one at https://localhost:44300/)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.