예제 #1
0
        internal static TerminologyCapabilities.CodeSystemComponent GetCapabilities()
        {
            TerminologyCapabilities.CodeSystemComponent csc = new TerminologyCapabilities.CodeSystemComponent
            {
                Uri = NzMt.URI
            };

            TerminologyCapabilities.VersionComponent vc = new TerminologyCapabilities.VersionComponent
            {
                Code          = NzMt.CURRENT_VERSION,
                IsDefault     = true,
                Compositional = false
            };

            vc.LanguageElement.Add(new Code("en-NZ"));

            TerminologyCapabilities.FilterComponent filt_1 = new TerminologyCapabilities.FilterComponent
            {
                CodeElement = new Code("TermType")
            };

            filt_1.OpElement.Add(new Code("ValueSet-expand"));
            vc.Filter.Add(filt_1);

            vc.PropertyElement.Add(new Code("code"));
            vc.PropertyElement.Add(new Code("system"));
            vc.PropertyElement.Add(new Code("version"));
            vc.PropertyElement.Add(new Code("definition"));
            vc.PropertyElement.Add(new Code("designation"));
            vc.PropertyElement.Add(new Code("substance"));

            csc.Version.Add(vc);

            return(csc);
        }
예제 #2
0
        internal static TerminologyCapabilities.CodeSystemComponent GetCapabilities()
        {
            TerminologyCapabilities.CodeSystemComponent csc = new TerminologyCapabilities.CodeSystemComponent();
            csc.Uri = FhirLoinc.URI;

            TerminologyCapabilities.VersionComponent vc = new TerminologyCapabilities.VersionComponent();
            vc.Code          = FhirLoinc.CURRENT_VERSION;
            vc.IsDefault     = true;
            vc.Compositional = false;
            vc.LanguageElement.Add(new Code("en-US"));

            TerminologyCapabilities.FilterComponent filt_1 = new TerminologyCapabilities.FilterComponent();
            filt_1.CodeElement = new Code("property");
            filt_1.OpElement.Add(new Code("ValueSet-expand"));
            vc.Filter.Add(filt_1);

            vc.PropertyElement.Add(new Code("code"));
            vc.PropertyElement.Add(new Code("system"));
            vc.PropertyElement.Add(new Code("version"));
            vc.PropertyElement.Add(new Code("definition"));
            vc.PropertyElement.Add(new Code("designation"));
            vc.PropertyElement.Add(new Code("COMPONENT"));
            vc.PropertyElement.Add(new Code("PROPERTY"));
            vc.PropertyElement.Add(new Code("TIME_ASPCT"));
            vc.PropertyElement.Add(new Code("SYSTEM"));
            vc.PropertyElement.Add(new Code("SCALE_TYP"));
            vc.PropertyElement.Add(new Code("METHOD_TYP"));
            vc.PropertyElement.Add(new Code("CLASS"));
            //vc.PropertyElement.Add(new Code("CONSUMER_NAME"));
            vc.PropertyElement.Add(new Code("CLASSTYPE"));
            vc.PropertyElement.Add(new Code("ORDER_OBS"));

            csc.Version.Add(vc);

            return(csc);
        }