# EHRBase/OpenEHR implementation in .Net **Category:** [Implementation](https://discourse.openehr.org/c/implem/39) **Created:** 2024-03-13 08:18 UTC **Views:** 840 **Replies:** 8 **URL:** https://discourse.openehr.org/t/ehrbase-openehr-implementation-in-net/5017 --- ## Post #1 by @DanielBaumert Hi there! I'm searching for a EHRBase/OpenEHR implementation in .Net. Does anyone know of one? --- ## Post #2 by @birger.haarbrandt Hi @DanielBaumert, the ones I know are both closed source (DIPS and Ocean Health). A long time ago there was an openEHR Reference Model implementation in C# and some early systems created by @Koray_Atalag and @Seref. There is no masterplan behind this, but nearly all relevant open source components from vitagroup, Better, Nedap and Cabolabs are using the JVM ecosystem with Groovy, Kolin and well, Java. --- ## Post #3 by @Koray_Atalag Hi, we've used openEHR RM .Net implementation by Ocean which was made open source through Microsoft CodePlex back in the day. Our whole implementation of an endoscopy reporting system is here: https://sourceforge.net/projects/gastros/ I'd suggest contacting Ocean to see where it is at. Happy to help in any way I can. Good luck! --- ## Post #4 by @joostholslag This sounds like interesting work. On sourcforge I can only find text documents. Is the source code or executable also available. Ping @Seref regarding open source parts of oceans CDR. --- ## Post #5 by @Koray_Atalag Hi, Apologies, been a while. I've actually put in on [https://github.com/atalagk/GastrOS](https://github.com/atalagk/GastrOS) You'll find everything there including source code. Also see below prezo [https://openehr.atlassian.net/wiki/spaces/resources/pages/4554763?preview=/4554763/4489226/3_GastrOS_Atalag.pdf](https://openehr.atlassian.net/wiki/spaces/resources/pages/4554763?preview=/4554763/4489226/3_GastrOS_Atalag.pdf) Please contact me directly if you have any questions and I'd be happy to help. My colleague Dr Hong Yul Yang has built the app. CCd [hongyul.yang@gmail.com](mailto:hongyul.yang@gmail.com) Cheers, Koray --- ## Post #6 by @DanielBaumert Hii, @Koray_Atalag I found the project and could not find the source code for the OpenEHR.dll. Do you have a link or anything else to the source code or can I reverse engineer it? (ref: https://github.com/atalagk/GastrOS/issues/1) Daniel --- ## Post #7 by @Koray_Atalag Hi Daniel, It belongs to Ocean health systems. I suggest you contact them to see what's licensing conditions. It was open source through codeplex but seemingly not anymore. [@Sam Heard](mailto:samuel.r.heard@gmail.com) [@Hong Yul Yang](mailto:hongyul.yang@gmail.com) Cheers, Koray --- ## Post #8 by @DanielBaumert @borut.jures > ref https://discourse.openehr.org/t/c-libraries-for-canonical-apis/5050/5 You can use attributes (in java annotations). e.g. for Json: ``` const string JSON = @"{ ""name"": ""xyz-class"" }"; // from json to object Xyz? xyz = JsonSerializer.Deserialize(JSON); // from object to json string jsonString = JsonSerializer.Serialize(xyz); class Xyz { // hint: the suffix Attribute is optional [JsonPropertyName("name")] // mapping public string Name {get; set;} } ``` --- ## Post #9 by @borut.jures @DanielBaumert Thank you. The code in the [linked post](https://discourse.openehr.org/t/c-libraries-for-canonical-apis/5050/5) is updated with serialization and other improvements to the code. --- **Canonical:** https://discourse.openehr.org/t/ehrbase-openehr-implementation-in-net/5017 **Original content:** https://discourse.openehr.org/t/ehrbase-openehr-implementation-in-net/5017