Hmm, this is strange, in the article "How to earn points" it says that a post on the French community gives 400 pints, and here it is just 200. And for translation, it is 150 vs 50.
Another way to do it would be the following. Make TypeOfTest an array:
Class My.Test extends%Persistent
{
Property PatientName;Property TypeOfTest as array of %String; //%Numeric maybe?Property OrderID;
}
ObjectScript
ObjectScript
In the array, each element is a pair of key and value. In this case, you add a key with the name of type of test and with value the result of test. And if the "Name" is "Thyroid", then you add the rest of the elements. For example:
do test.TypeOfTest.SetAt("10", "Thyriod")
do test.TypefTest.SetAt("148", Tsh)
ObjectScript
ObjectScript
This way, for your array in SQL you will get a separate table, the name of it will be a combination of class name and property name.
You can actually write a select just to query results of the tests and then find the name of the order using the primary key (which is a link to the main table My.Test)
go to post
Wow! It's awesome! Great to see that the Community is growing!
go to post
I love it! It's so much more informative right now! Of course, it would be nice to have the same in other supported languages, French for example

go to post
This is a great question because I run out of licenses very quickly!
go to post
Great! I'll look forward to reading it!
go to post
OK it's good and interesting but is it possible to also realize RESTfull service based on Django?
go to post
Good question, would've been nice!
go to post
Come join us! We're looking forward to your comments, likes, questions and articles 😘
go to post
Awesome! Thanks, now I can share this info on French Community
go to post
Hmm, this is strange, in the article "How to earn points" it says that a post on the French community gives 400 pints, and here it is just 200. And for translation, it is 150 vs 50.
go to post
Ok, and here I thought a folder will be dossier...
go to post
Good thing to know :) And useful with the contest of articles!
go to post
Another way to do it would be the following. Make TypeOfTest an array:
Class My.Test extends %Persistent { Property PatientName; Property TypeOfTest as array of %String; //%Numeric maybe? Property OrderID; }
In the array, each element is a pair of key and value. In this case, you add a key with the name of type of test and with value the result of test. And if the "Name" is "Thyroid", then you add the rest of the elements. For example:
do test.TypeOfTest.SetAt("10", "Thyriod") do test.TypefTest.SetAt("148", Tsh)
This way, for your array in SQL you will get a separate table, the name of it will be a combination of class name and property name.
You can actually write a select just to query results of the tests and then find the name of the order using the primary key (which is a link to the main table My.Test)
go to post
Hello,
I would suggest you do the following.
I understand you have a class something like:
Class My.Test extends %Persistent { Property PatientName; Property TypeOfTest as My.TestType; Property OrderID; }
Make TypeOfTest an instance of another class My.TestType:
Class My.TestType extends %SerialObject { Property Name As %String(VALUELIST = ",Sugar,Urine,Thyroid"); Property Tsh; ... }
In this case, as Robert has mentioned, you will be able to write a query like
go to post
Thanks guys! I definitely will
go to post
Scheduled post is the best feature ever! Super useful!
go to post
@Esther Sanchez I'll do my best! And thanks for your advice!
go to post
Welcome!
go to post
C'est super!
Bienvenue!!!