コード例 #1
0
        public static Conformance GetSparkConformance()
        {
            string      vsn         = Hl7.Fhir.Model.ModelInfo.Version;
            Conformance conformance = ConformanceBuilder.CreateServer("Spark", Settings.Version, "Furore", fhirVersion: vsn);

            conformance.AddAllCoreResources(readhistory: true, updatecreate: true, versioning: Conformance.ResourceVersionPolicy.VersionedUpdate);
            conformance.AddAllSystemInteractions().AddAllInteractionsForAllResources().AddCoreSearchParamsAllResources();
            conformance.AddSummaryForAllResources();

            conformance.AcceptUnknown = Conformance.UnknownContentCode.Both;
            conformance.Experimental  = true;
            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);
        }
コード例 #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);
        }