示例#1
0
        public static Conformance GetSparkConformance()
        {
            Conformance conformance = ConformanceBuilder.CreateServer("CDS-Spark", Info.Version, "ONC", fhirVersion: "0.5.0");

            // Knowledge Modules
            conformance.AddSingleResourceComponent
            (
                "OperationDefinition",
                false,
                true,
                Conformance.ResourceVersionPolicy.NoVersion,
                new ResourceReference {
                Reference = "/fhir/StructureDefinition/knowledgemodule-cqf-cqf-knowledgemodule"
            }
            );

            // Guidance Operation
            conformance.AddOperation("guidance", new ResourceReference {
                Reference = "/fhir/OperationDefinition/Basic-guidance"
            });

            // GuidanceRequirements Operation
            conformance.AddOperation("guidanceRequirements", new ResourceReference {
                Reference = "/fhir/OperationDefinition/Basic-guidancerequirements"
            });

            conformance.AcceptUnknown = true;
            conformance.Experimental  = true;
            conformance.Format        = new string[] { "xml", "json" };
            conformance.Description   = "This FHIR SERVER is a prototype implementation of the FHIR-Based Clinical Quality Framework Implementation Guide built in C# and based on the Spark FHIR Server";

            return(conformance);
        }
示例#2
0
        public static Conformance GetSparkConformance(string sparkVersion, ILocalhost localhost)
        {
            string      vsn         = Hl7.Fhir.Model.ModelInfo.Version;
            Conformance conformance = CreateServer("Spark", sparkVersion, "Furore", fhirVersion: vsn);

            conformance.AddAllCoreResources(readhistory: true, updatecreate: true, versioning: Conformance.ResourceVersionPolicy.VersionedUpdate);
            conformance.AddAllSystemInteractions().AddAllInteractionsForAllResources().AddCoreSearchParamsAllResources();
            conformance.AddSummaryForAllResources();
            conformance.AddOperation("Fetch Patient Record", new ResourceReference()
            {
                Url = localhost.Absolute(new Uri("OperationDefinition/Patient-everything", UriKind.Relative))
            });
            conformance.AddOperation("Generate a Document", new ResourceReference()
            {
                Url = localhost.Absolute(new Uri("OperationDefinition/Composition-document", UriKind.Relative))
            });
            conformance.AcceptUnknown = Conformance.UnknownContentCode.Both;
            conformance.Experimental  = true;
            conformance.Kind          = Conformance.ConformanceStatementKind.Capability;
            conformance.Format        = new string[] { "xml", "json" };
            conformance.Description   = "This FHIR SERVER is a reference Implementation server built in C# on HL7.Fhir.Core (nuget) by Furore and others";

            return(conformance);
        }