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); }
public static Conformance AddAllCoreResources(this Conformance conformance, Boolean readhistory, Boolean updatecreate, Conformance.ResourceVersionPolicy versioning) { foreach (var resource in ModelInfo.SupportedResources) { conformance.AddSingleResourceComponent(resource, readhistory, updatecreate, versioning); } return(conformance); }
public static Conformance AddUsedResources(this Conformance conformance, IEnumerable <IFhirService> services, bool readhistory, bool updatecreate, Conformance.ResourceVersionPolicy versioning) { var totalAvailableResources = new List <string>(); foreach (var service in services) { var resourcesService = service; if (resourcesService != null) { totalAvailableResources.AddRange(resourcesService.GetSupportedResources()); } } foreach (var resource in totalAvailableResources) { conformance.AddSingleResourceComponent(resource, readhistory, updatecreate, versioning); } return(conformance); }