kristiank / gf-midwife Goto Github PK
View Code? Open in Web Editor NEWA small phrasebook for midwifes travelling in Snomed.
A small phrasebook for midwifes travelling in Snomed.
All works when only Estonian language is imported
> i MidwifeEst.gf
> Midwife
> p "patsient tunneb hästi looteliigutusi"
FeelsFetalMovements Strong
But after importing Snomedish it works, but the somehow parser fails
> i MidwifeSno.gf
> p "patsient tunneb hästi looteliigutusi"
FeelsFetalMovements Strong
The parser failed at token 1: "patsient"
All still works, but I can't understand why the parser fails. Before restarting the gf environment and re-importing the grammars for writing this issue, then the subject (patsient) simply vanished and I could only parse "tunneb hästi looteliigutusi".
I have the abstract
abstract ClinicalSituation = {
flags startcat = Statement ;
cat
Statement ;
ClinicalFinding ;
Person ;
data
-- A situation consists of
Situation : Person -> ClinicalFinding -> Statement ;
SCT444295003_Father_of_subject_person,
SCT444301002_Mother_of_subject_person : Person ;
SCT77176002_Smoker_finding : ClinicalFinding ;
}
and a concrete
concrete ClinicalSituationSno of ClinicalSituation =
open Prelude in {
lincat
Statement = {s : Str} ;
ClinicalFinding = {s : Str} ;
Person = {s : Str} ;
lin
-- A situation consists of
-- Situation : SubjectRelationshipContext -> AssociatedFinding -> Statement ;
Situation person clinicalfinding = {s = "243796009 |Situation with explicit context (situation)|"
++ " : "
++ "408732007 |Subject relationship context (attribute)|" ++ " = " ++ person.s " , "
++ "246090004 |Associated finding (attribute)|" ++ " = " ++ clinicalfinding.s
};
SCT444295003_Father_of_subject_person = {s = "SCT444295003_Father_of_subject_person"} ;
SCT444301002_Mother_of_subject_person = {s = "SCT444301002_Mother_of_subject_person"} ;
SCT77176002_Smoker_finding = {s = "SCT77176002_Smoker_finding"} ;
}
and the compiler says to me:
> i ClinicalSituationSno.gf
- compiling ClinicalSituationSno.gf...
ClinicalSituationSno.gf:
ClinicalSituationSno.gf:14-18:
Happened in linearization of Situation
A function type is expected for person.s instead of type Str
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.