FHIR Chat · Fhir .Net API Simple Structure Definition · dotnet

Stream: dotnet

Topic: Fhir .Net API Simple Structure Definition


view this post on Zulip Greg Pryde (Mar 05 2020 at 22:10):

We are declaring a simple structure for SOHInUnitsusing the R4 firely api classes.
all it is a double containing the SOH for a robot
not quite sure how to define the elements correctly. Any body know of good examples on the web

private static StructureDefinition GetStructureDefinitionForMedication_SOHInUnits(Uri v_Localhost)
{
StructureDefinition Result = new StructureDefinition();
Result.Title = "Medication-SOHInUnits";
Result.Url = v_Localhost + @"/StructureDefinition/" + Result.Title;
Result.Kind = StructureDefinition.StructureDefinitionKind.ComplexType;
Result.BaseDefinition = "http://hl7.org/fhir/StructureDefinition/Extension";
Result.Type = "Extension";
Result.Differential = new StructureDefinition.DifferentialComponent();
Result.Differential.Element = new List<ElementDefinition>();
Result.Context.Add(new StructureDefinition.ContextComponent()
{
Type = StructureDefinition.ExtensionContextType.Element,
Expression = "Medication"

        });

        Result.Description = new Markdown("This is the SOH of the product in Unit of measure. If retail products then this will be the same as SOH in packs as you dont sell part packs.");

return Result;
}


Last updated: Apr 12 2022 at 19:14 UTC