1 / 17

Developing a FHIR Server

Ewout Kramer, Furore (e.kramer@furore.com). Developing a FHIR Server. Using C# and MongoDb, Xml and Json. Architectural context. FHIR. HIS. LIMS. PACS. PHR. v3. v2. Comm . Service. ETL. FHIR Msg. FHIR REST. FHIR. CDR. VNA. Comm . Service. DB. Solution scenarios.

Download Presentation

Developing a FHIR Server

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Ewout Kramer, Furore (e.kramer@furore.com) Developing a FHIR Server Using C# and MongoDb, Xml and Json

  2. Architectural context FHIR HIS LIMS PACS PHR v3 v2 Comm. Service ETL FHIR Msg FHIR REST FHIR CDR VNA Comm. Service DB

  3. Solution scenarios FHIR Resource JSON/XML JSON/XML JSON/XML JSON/XML FHIR REST FHIR Parser FHIR Parser FHIR Validator FHIR Validator Processing JSON/XML XML POCO/POJO POCO/POJO ORM Storage DBMS NoSql(Xml/Json) NoSql(Json/Xml) NoSql(Json)

  4. Json and Xml Roundtrip? <XXX xmlns=“urn:foo”> <B a=“c” /> <C>One</C> <C>Two</C> <D>One</D> <div>Not <b>so</b></div> </XXX> { “B”: { “@a” : “c” }, “C”: [ “One”, “Two” ], “D” : “One”, “div” : { “#text” : “Not ”, “b” : “so” } }

  5. FHIR Xml and JSon guidelines <Person xmlns="http://www.hl7.org/fhir"> <identifiers> <identifier> <type> <code>MR</code> <system>urn:hl7-org:sid/v2-0203</system> </type> <identifier> <system>oid:1.2.36.146.595.217.0.1</system> <id>12345</id> </identifier> <assigner> <text>Acme Healthcare</text> </assigner> <period> <low>2001-05-06</low> </period> </identifier> </identifiers> <text> <status>generated</status> <xhtml xmlns="http://www.w3.org/1999/xhtml"> <table> <tbody> <tr> "Person" : { "identifiers" : [ { "identifier" : { "type" : { "code" : "MR", "system" : "urn:hl7-org:sid/v2-0203“ } } } ], "text" : { "status" : "generated", "xhtml" : "<table><tbody><tr><td>Name</td> <td>Peter James <b>Chalmers</b> </table></tbody></table>" } }

  6. Two ways of storing in MongoDb var database = server.GetDatabase("test"); var collection = database.GetCollection<Entity>("entities"); var entity = new Entity { Name = "Tom" }; collection.Insert(entity); var id = entity.Id; BsonDocument nested = new BsonDocument { { "name", "John Doe" }, { "address", new BsonDocument { { "street", "123 Main St." }, { "city", "Centerville" }, { "zip", 12345 } } } }; collection.Insert(nested);

  7. What a detour…. Json -> XML -> Json -> Bson

  8. Storing a resource as a record • ResourceRecord • RecordId, Version • State • CreationDate, Author • ResourceRecord • RecordId, Version • State • CreationDate, Author • ResourceRecord • RecordId, Version • State • CreationDate, Author • ResourceInstance • AsJson(), ToJson(), … • GetElement(), ReplaceElement() • ResourceId, Location, Type FHIR Resource Data (XML)

  9. How do I do transactions/locking? MongoDB does not use traditional locking or complex transactions with rollback, as it is designed to be lightweight and fast and predictable in its performance.  It can be thought of as analogous to the MySQL MyISAM autocommit model.  By keeping transaction support extremely simple, performance is enhanced, especially in a system that may run across many servers.

  10. C Brewer’s CAP theorem Consistency, Availability and Partition tolerance Pick any two… A P

  11. http://fhir.apphb.com/fhir/help

  12. 26th Annual Plenary & Working Group Meeting Sep 9, 2012 to Sep 14, 2012 - Baltimore, MD (Dutchies take note: September 12th general elections!) SATURDAY SEPTEMBER 8th FIRST FHIR CONNECTATHON

More Related